diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js index eb07ac59aa336..dcd46543b9e77 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js @@ -74,6 +74,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "strict": false, "outDir": "./dist", "inlineSourceMap": true, "declaration": true, @@ -101,6 +102,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "strict": false, "outDir": "/home/src/workspaces/project/dist", "inlineSourceMap": true, "declaration": true, @@ -181,7 +183,7 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" ../../tslibs/TS/Lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js index 480e1e508a840..71bbf699cbc86 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js @@ -74,6 +74,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "strict": false, "outDir": "./dist", "inlineSourceMap": true, "inlineSources": true, @@ -102,6 +103,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "strict": false, "outDir": "/home/src/workspaces/project/dist", "inlineSourceMap": true, "inlineSources": true, @@ -183,7 +185,7 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"inlineSources\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"inlineSources\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" ../../tslibs/TS/Lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js index 0c52562888559..4907cd179b0ef 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js @@ -74,6 +74,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "strict": false, "outDir": "./dist", "declaration": true, "declarationMap": true, @@ -100,6 +101,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "strict": false, "outDir": "/home/src/workspaces/project/dist", "declaration": true, "declarationMap": true, @@ -179,7 +181,7 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" ../../tslibs/TS/Lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js index 0a128672df8d2..6c21a0f30ecfc 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js @@ -77,6 +77,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "strict": false, "outDir": "./dist", "sourceMap": true, "sourceRoot": "/home/src/workspaces/project/", @@ -105,6 +106,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "strict": false, "outDir": "/home/src/workspaces/project/dist", "sourceMap": true, "sourceRoot": "/home/src/workspaces/project/", @@ -186,7 +188,7 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"sourceMap\": true,\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceMap\": true,\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" ../../tslibs/TS/Lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js index f2510620bae4e..f9eb0e669e997 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js @@ -74,6 +74,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "strict": false, "outDir": "./dist", "sourceRoot": "/home/src/workspaces/project/", "declaration": true, @@ -101,6 +102,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "strict": false, "outDir": "/home/src/workspaces/project/dist", "sourceRoot": "/home/src/workspaces/project/", "declaration": true, @@ -167,11 +169,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 4, + "line": 5, "offset": 9 }, "end": { - "line": 4, + "line": 5, "offset": 21 }, "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", @@ -196,7 +198,7 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" ../../tslibs/TS/Lib/lib.d.ts @@ -442,11 +444,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 4, + "line": 5, "offset": 9 }, "end": { - "line": 4, + "line": 5, "offset": 21 }, "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js index 54549f1652405..2a550391e6684 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js @@ -65,6 +65,7 @@ class Button extends Control { "$schema": "http://json.schemastore.org/tsconfig", "compileOnSave": true, "compilerOptions": { + "strict": false, "sourceMap": true, "declaration": true, "declarationMap": true @@ -201,6 +202,7 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/buttonClass/tscon "/tests/cases/fourslash/server/BaseClass/Source.d.ts" ], "options": { + "strict": false, "sourceMap": true, "declaration": true, "declarationMap": true, diff --git a/tests/cases/compiler/ClassDeclaration10.ts b/tests/cases/compiler/ClassDeclaration10.ts index 5dbbdbaca85c3..8aa2e7918068e 100644 --- a/tests/cases/compiler/ClassDeclaration10.ts +++ b/tests/cases/compiler/ClassDeclaration10.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(); foo(); diff --git a/tests/cases/compiler/ClassDeclaration13.ts b/tests/cases/compiler/ClassDeclaration13.ts index f58340bc491da..bbc057e4bb478 100644 --- a/tests/cases/compiler/ClassDeclaration13.ts +++ b/tests/cases/compiler/ClassDeclaration13.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); bar() { } diff --git a/tests/cases/compiler/ClassDeclaration14.ts b/tests/cases/compiler/ClassDeclaration14.ts index a91f34253fa11..ad7333d9bb42a 100644 --- a/tests/cases/compiler/ClassDeclaration14.ts +++ b/tests/cases/compiler/ClassDeclaration14.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); constructor(); diff --git a/tests/cases/compiler/ClassDeclaration15.ts b/tests/cases/compiler/ClassDeclaration15.ts index 6b28c5200893b..78caec37b2f4d 100644 --- a/tests/cases/compiler/ClassDeclaration15.ts +++ b/tests/cases/compiler/ClassDeclaration15.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); constructor() { } diff --git a/tests/cases/compiler/ClassDeclaration21.ts b/tests/cases/compiler/ClassDeclaration21.ts index c9a54f97ef598..eeff13aebe850 100644 --- a/tests/cases/compiler/ClassDeclaration21.ts +++ b/tests/cases/compiler/ClassDeclaration21.ts @@ -1,3 +1,4 @@ +// @strict: false class C { 0(); 1() { } diff --git a/tests/cases/compiler/ClassDeclaration22.ts b/tests/cases/compiler/ClassDeclaration22.ts index ec6da6d269c7c..ba9c8ab0552f1 100644 --- a/tests/cases/compiler/ClassDeclaration22.ts +++ b/tests/cases/compiler/ClassDeclaration22.ts @@ -1,3 +1,4 @@ +// @strict: false class C { "foo"(); "bar"() { } diff --git a/tests/cases/compiler/ClassDeclaration26.ts b/tests/cases/compiler/ClassDeclaration26.ts index 0adcbc470e0b9..d947fba3cf21e 100644 --- a/tests/cases/compiler/ClassDeclaration26.ts +++ b/tests/cases/compiler/ClassDeclaration26.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public const var export foo = 10; diff --git a/tests/cases/compiler/ClassDeclaration9.ts b/tests/cases/compiler/ClassDeclaration9.ts index 620dc45a4df52..84d4d63da65c3 100644 --- a/tests/cases/compiler/ClassDeclaration9.ts +++ b/tests/cases/compiler/ClassDeclaration9.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); } \ No newline at end of file diff --git a/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts index fe90dded9e3c8..ae07e82ff02a1 100644 --- a/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts +++ b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { const x = 10; diff --git a/tests/cases/compiler/accessorDeclarationEmitJs.ts b/tests/cases/compiler/accessorDeclarationEmitJs.ts index b729ec9209ebe..890f284e12d26 100644 --- a/tests/cases/compiler/accessorDeclarationEmitJs.ts +++ b/tests/cases/compiler/accessorDeclarationEmitJs.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/accessorParameterAccessibilityModifier.ts b/tests/cases/compiler/accessorParameterAccessibilityModifier.ts index 9d6ec6870f175..baa5841fbfe3b 100644 --- a/tests/cases/compiler/accessorParameterAccessibilityModifier.ts +++ b/tests/cases/compiler/accessorParameterAccessibilityModifier.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { diff --git a/tests/cases/compiler/accessorWithInitializer.ts b/tests/cases/compiler/accessorWithInitializer.ts index cdb63475adf60..867dc097c2043 100644 --- a/tests/cases/compiler/accessorWithInitializer.ts +++ b/tests/cases/compiler/accessorWithInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { diff --git a/tests/cases/compiler/accessorWithRestParam.ts b/tests/cases/compiler/accessorWithRestParam.ts index 015846a4aaa96..677bc1fc3c25b 100644 --- a/tests/cases/compiler/accessorWithRestParam.ts +++ b/tests/cases/compiler/accessorWithRestParam.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { diff --git a/tests/cases/compiler/accessorWithoutBody1.ts b/tests/cases/compiler/accessorWithoutBody1.ts index 2cf246affbae0..617afe2c8bf1d 100644 --- a/tests/cases/compiler/accessorWithoutBody1.ts +++ b/tests/cases/compiler/accessorWithoutBody1.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: ES5 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 11ece4b4d96ae..be30eacaad66b 100644 --- a/tests/cases/compiler/accessorWithoutBody2.ts +++ b/tests/cases/compiler/accessorWithoutBody2.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: ES5 var v = { set foo(a) } \ No newline at end of file diff --git a/tests/cases/compiler/accessorsEmit.ts b/tests/cases/compiler/accessorsEmit.ts index dd96c63b7a7a9..98f2287722be1 100644 --- a/tests/cases/compiler/accessorsEmit.ts +++ b/tests/cases/compiler/accessorsEmit.ts @@ -1,3 +1,4 @@ +// @strict: false class Result { } class Test { diff --git a/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts b/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts index 90f9869d94d63..49f3bc814ec19 100644 --- a/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts +++ b/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @outDir: ./dist diff --git a/tests/cases/compiler/allowSyntheticDefaultImports10.ts b/tests/cases/compiler/allowSyntheticDefaultImports10.ts index 6b50bae96d8fe..020e3e0c60cc4 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports10.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports10.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowSyntheticDefaultImports: true // @module: commonjs // @Filename: b.d.ts diff --git a/tests/cases/compiler/allowSyntheticDefaultImports7.ts b/tests/cases/compiler/allowSyntheticDefaultImports7.ts index 2da05e4678c7f..8d0540208e726 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports7.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports7.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @Filename: b.d.ts export function foo(); diff --git a/tests/cases/compiler/allowSyntheticDefaultImports8.ts b/tests/cases/compiler/allowSyntheticDefaultImports8.ts index 3a213ad80235f..6460befbc2dff 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports8.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports8.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowSyntheticDefaultImports: false // @module: system // @Filename: b.d.ts diff --git a/tests/cases/compiler/allowSyntheticDefaultImports9.ts b/tests/cases/compiler/allowSyntheticDefaultImports9.ts index 8da66f33adf56..b5f877a0d35c7 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports9.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports9.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowSyntheticDefaultImports: true // @module: commonjs // @Filename: b.d.ts diff --git a/tests/cases/compiler/ambientClassDeclarationWithExtends.ts b/tests/cases/compiler/ambientClassDeclarationWithExtends.ts index ca26f1b2a4415..8cbfa323448ea 100644 --- a/tests/cases/compiler/ambientClassDeclarationWithExtends.ts +++ b/tests/cases/compiler/ambientClassDeclarationWithExtends.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: ambientClassDeclarationExtends_singleFile.ts declare class A { } declare class B extends A { } diff --git a/tests/cases/compiler/ambientClassOverloadForFunction.ts b/tests/cases/compiler/ambientClassOverloadForFunction.ts index 83b089dffbb8d..583f9c9468239 100644 --- a/tests/cases/compiler/ambientClassOverloadForFunction.ts +++ b/tests/cases/compiler/ambientClassOverloadForFunction.ts @@ -1,2 +1,3 @@ +// @strict: false declare class foo{}; function foo() { return null; } diff --git a/tests/cases/compiler/ambientFundule.ts b/tests/cases/compiler/ambientFundule.ts index 772ae088eb1c0..1dcb40706b9ad 100644 --- a/tests/cases/compiler/ambientFundule.ts +++ b/tests/cases/compiler/ambientFundule.ts @@ -1,3 +1,4 @@ +// @strict: false declare function f(); declare namespace f { var x } declare function f(x); \ No newline at end of file diff --git a/tests/cases/compiler/ambientWithStatements.ts b/tests/cases/compiler/ambientWithStatements.ts index d4dcc3a5b7d67..467bb3da80c94 100644 --- a/tests/cases/compiler/ambientWithStatements.ts +++ b/tests/cases/compiler/ambientWithStatements.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace M { break; continue; diff --git a/tests/cases/compiler/ambiguousGenericAssertion1.ts b/tests/cases/compiler/ambiguousGenericAssertion1.ts index 2d0df6debae71..48a81890a9057 100644 --- a/tests/cases/compiler/ambiguousGenericAssertion1.ts +++ b/tests/cases/compiler/ambiguousGenericAssertion1.ts @@ -1,3 +1,4 @@ +// @strict: false function f(x: T): T { return null; } var r = (x: T) => x; var r2 = < (x: T) => T>f; // valid diff --git a/tests/cases/compiler/ambiguousOverload.ts b/tests/cases/compiler/ambiguousOverload.ts index 2a69c48b0034b..18fecf5e3f22d 100644 --- a/tests/cases/compiler/ambiguousOverload.ts +++ b/tests/cases/compiler/ambiguousOverload.ts @@ -1,3 +1,4 @@ +// @strict: false function foof(bar: string, y): number; function foof(bar: string, x): string; function foof(bar: any): any { return bar }; diff --git a/tests/cases/compiler/ambiguousOverloadResolution.ts b/tests/cases/compiler/ambiguousOverloadResolution.ts index cb4ae158cc325..076ba2aa46cca 100644 --- a/tests/cases/compiler/ambiguousOverloadResolution.ts +++ b/tests/cases/compiler/ambiguousOverloadResolution.ts @@ -1,3 +1,4 @@ +// @strict: false class A { } class B extends A { x: number; } diff --git a/tests/cases/compiler/amdLikeInputDeclarationEmit.ts b/tests/cases/compiler/amdLikeInputDeclarationEmit.ts index 91cb244525027..c122b7a11e085 100644 --- a/tests/cases/compiler/amdLikeInputDeclarationEmit.ts +++ b/tests/cases/compiler/amdLikeInputDeclarationEmit.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @declarationDir: definitions // @emitDeclarationOnly: true diff --git a/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts b/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts index 4f909241f9509..741b120b009f8 100644 --- a/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts +++ b/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts @@ -1,3 +1,4 @@ +// @strict: false function Point(x, y) { this.x = x; diff --git a/tests/cases/compiler/anyIdenticalToItself.ts b/tests/cases/compiler/anyIdenticalToItself.ts index a94389e6e3377..a47004a758b00 100644 --- a/tests/cases/compiler/anyIdenticalToItself.ts +++ b/tests/cases/compiler/anyIdenticalToItself.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x: any); function foo(x: any); function foo(x: any, y: number) { } diff --git a/tests/cases/compiler/argumentsAsPropertyName.ts b/tests/cases/compiler/argumentsAsPropertyName.ts index ffecdaa1301de..570d8b9e05f48 100644 --- a/tests/cases/compiler/argumentsAsPropertyName.ts +++ b/tests/cases/compiler/argumentsAsPropertyName.ts @@ -1,3 +1,4 @@ +// @strict: false // target: es5 type MyType = { arguments: Array diff --git a/tests/cases/compiler/argumentsAsPropertyName2.ts b/tests/cases/compiler/argumentsAsPropertyName2.ts index 4c17a8a96a690..fb98f9bd2129c 100644 --- a/tests/cases/compiler/argumentsAsPropertyName2.ts +++ b/tests/cases/compiler/argumentsAsPropertyName2.ts @@ -1,3 +1,4 @@ +// @strict: false // target: es5 function foo() { diff --git a/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts b/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts index 9a8a8fe4d8fbe..e5332a2d44561 100644 --- a/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts +++ b/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts @@ -1,3 +1,4 @@ +// @strict: false var arguments = 10; function foo(a) { arguments = 10; /// This shouldnt be of type number and result in error. diff --git a/tests/cases/compiler/argumentsObjectCreatesRestForJs.ts b/tests/cases/compiler/argumentsObjectCreatesRestForJs.ts index 4c3ca335d1df1..e941fc098fbbd 100644 --- a/tests/cases/compiler/argumentsObjectCreatesRestForJs.ts +++ b/tests/cases/compiler/argumentsObjectCreatesRestForJs.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @Filename: main.js diff --git a/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts b/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts index fdf74c8b9a230..43ce80ca04987 100644 --- a/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts +++ b/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts b/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts index 11515ea74a1b6..aa76126db8eff 100644 --- a/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts +++ b/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts b/tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts index 92fadcd6001b8..559edba66c28a 100644 --- a/tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts +++ b/tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @target: es6 diff --git a/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts b/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts index c82b8c493cc3e..948d6276dd9c7 100644 --- a/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts +++ b/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(a, b, {c}): void {} function bar(a, b, [c]): void {} diff --git a/tests/cases/compiler/arrayAssignmentTest2.ts b/tests/cases/compiler/arrayAssignmentTest2.ts index 88ad2a1fb47d9..b86fa90a7b48c 100644 --- a/tests/cases/compiler/arrayAssignmentTest2.ts +++ b/tests/cases/compiler/arrayAssignmentTest2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I1 { IM1():void[]; } diff --git a/tests/cases/compiler/arrayAssignmentTest4.ts b/tests/cases/compiler/arrayAssignmentTest4.ts index 81db959e8f653..d35d8d7ff7298 100644 --- a/tests/cases/compiler/arrayAssignmentTest4.ts +++ b/tests/cases/compiler/arrayAssignmentTest4.ts @@ -1,3 +1,4 @@ +// @strict: false class C3 { diff --git a/tests/cases/compiler/arrayFromAsync.ts b/tests/cases/compiler/arrayFromAsync.ts index 55c34d7b66468..2b6dfa154684c 100644 --- a/tests/cases/compiler/arrayFromAsync.ts +++ b/tests/cases/compiler/arrayFromAsync.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: esnext // @target: esnext diff --git a/tests/cases/compiler/arrayIndexWithArrayFails.ts b/tests/cases/compiler/arrayIndexWithArrayFails.ts index 242e1ff333443..aca5407d5ba6c 100644 --- a/tests/cases/compiler/arrayIndexWithArrayFails.ts +++ b/tests/cases/compiler/arrayIndexWithArrayFails.ts @@ -1,3 +1,4 @@ +// @strict: false declare const arr1: (string | string[])[]; declare const arr2: number[]; const j = arr2[arr1[0]]; // should error \ No newline at end of file diff --git a/tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts b/tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts index d621cf460bcb1..a6d034f4e66de 100644 --- a/tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts +++ b/tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts @@ -1,3 +1,4 @@ +// @strict: false class A { a } class B extends A { b } class C extends Array { c } diff --git a/tests/cases/compiler/arrowFunctionErrorSpan.ts b/tests/cases/compiler/arrowFunctionErrorSpan.ts index 4c7fff88a9394..93c400db54c82 100644 --- a/tests/cases/compiler/arrowFunctionErrorSpan.ts +++ b/tests/cases/compiler/arrowFunctionErrorSpan.ts @@ -1,3 +1,4 @@ +// @strict: false function f(a: () => number) { } // oneliner diff --git a/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts b/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts index f5c1a86f296e2..227e9f4044a75 100644 --- a/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts +++ b/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: es6 var v = a => {} \ No newline at end of file diff --git a/tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts b/tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts index 33fe8439ebed9..43439bda39e32 100644 --- a/tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts +++ b/tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: es6 var v = a => {} \ No newline at end of file diff --git a/tests/cases/compiler/arrowFunctionsMissingTokens.ts b/tests/cases/compiler/arrowFunctionsMissingTokens.ts index 13b17343c672c..069f9dd6b22a2 100644 --- a/tests/cases/compiler/arrowFunctionsMissingTokens.ts +++ b/tests/cases/compiler/arrowFunctionsMissingTokens.ts @@ -1,3 +1,4 @@ +// @strict: false namespace missingArrowsWithCurly { var a = () { }; diff --git a/tests/cases/compiler/asiAbstract.ts b/tests/cases/compiler/asiAbstract.ts index f9f36b12001ef..062d68e96e5d4 100644 --- a/tests/cases/compiler/asiAbstract.ts +++ b/tests/cases/compiler/asiAbstract.ts @@ -1,3 +1,4 @@ +// @strict: false abstract class NonAbstractClass { abstract s(); diff --git a/tests/cases/compiler/asiPublicPrivateProtected.ts b/tests/cases/compiler/asiPublicPrivateProtected.ts index 4ccd4c1c01bdd..5ea44460799f7 100644 --- a/tests/cases/compiler/asiPublicPrivateProtected.ts +++ b/tests/cases/compiler/asiPublicPrivateProtected.ts @@ -1,3 +1,4 @@ +// @strict: false public class NonPublicClass { public s() { diff --git a/tests/cases/compiler/assertInWrapSomeTypeParameter.ts b/tests/cases/compiler/assertInWrapSomeTypeParameter.ts index d2ffbb6d775ad..c646bbc781ab2 100644 --- a/tests/cases/compiler/assertInWrapSomeTypeParameter.ts +++ b/tests/cases/compiler/assertInWrapSomeTypeParameter.ts @@ -1,3 +1,4 @@ +// @strict: false class C> { foo>(x: U) { return null; diff --git a/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts b/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts index 59d76564bc118..69728a300d8d5 100644 --- a/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts +++ b/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts @@ -1,3 +1,4 @@ +// @strict: false interface IResultCallback extends Function { x: number; } diff --git a/tests/cases/compiler/assignmentCompatForEnums.ts b/tests/cases/compiler/assignmentCompatForEnums.ts index 3426d934be403..dff22949701cc 100644 --- a/tests/cases/compiler/assignmentCompatForEnums.ts +++ b/tests/cases/compiler/assignmentCompatForEnums.ts @@ -1,3 +1,4 @@ +// @strict: false enum TokenType { One, Two }; var list = {}; diff --git a/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts b/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts index bebba88fbf52b..642101d2b8d70 100644 --- a/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts +++ b/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts @@ -1,3 +1,4 @@ +// @strict: false interface IHandler { (e): boolean; } diff --git a/tests/cases/compiler/assignmentCompatability37.ts b/tests/cases/compiler/assignmentCompatability37.ts index 418f096ca897c..e55686b596c73 100644 --- a/tests/cases/compiler/assignmentCompatability37.ts +++ b/tests/cases/compiler/assignmentCompatability37.ts @@ -1,3 +1,4 @@ +// @strict: false namespace __test1__ { export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; export var __val__obj4 = obj4; diff --git a/tests/cases/compiler/assignmentCompatability38.ts b/tests/cases/compiler/assignmentCompatability38.ts index 6d8f0d79a8707..6dc81cd4a8c1b 100644 --- a/tests/cases/compiler/assignmentCompatability38.ts +++ b/tests/cases/compiler/assignmentCompatability38.ts @@ -1,3 +1,4 @@ +// @strict: false namespace __test1__ { export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; export var __val__obj4 = obj4; diff --git a/tests/cases/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.ts b/tests/cases/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.ts index 35d07b2542c9c..823d28e3a6188 100644 --- a/tests/cases/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.ts +++ b/tests/cases/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.ts @@ -1,3 +1,4 @@ +// @strict: false // 3.8.4 Assignment Compatibility interface Applicable { diff --git a/tests/cases/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.ts b/tests/cases/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.ts index 155659fcead10..8f53d3eda834f 100644 --- a/tests/cases/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.ts +++ b/tests/cases/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.ts @@ -1,3 +1,4 @@ +// @strict: false // 3.8.4 Assignment Compatibility interface Callable { diff --git a/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts b/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts index b68fad48e8ec1..2699c916017fe 100644 --- a/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts +++ b/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts @@ -1,3 +1,4 @@ +// @strict: false const enum E { A, B, C } function foo(x: T) { diff --git a/tests/cases/compiler/assignmentToObjectAndFunction.ts b/tests/cases/compiler/assignmentToObjectAndFunction.ts index 4e53cfabc6cd1..256b16b78ff57 100644 --- a/tests/cases/compiler/assignmentToObjectAndFunction.ts +++ b/tests/cases/compiler/assignmentToObjectAndFunction.ts @@ -1,3 +1,4 @@ +// @strict: false var errObj: Object = { toString: 0 }; // Error, incompatible toString var goodObj: Object = { toString(x?) { diff --git a/tests/cases/compiler/assignmentToReferenceTypes.ts b/tests/cases/compiler/assignmentToReferenceTypes.ts index 876039a28fb7b..86e5fe024dd81 100644 --- a/tests/cases/compiler/assignmentToReferenceTypes.ts +++ b/tests/cases/compiler/assignmentToReferenceTypes.ts @@ -1,3 +1,4 @@ +// @strict: false // Should all be allowed namespace M { diff --git a/tests/cases/compiler/asyncFunctionTempVariableScoping.ts b/tests/cases/compiler/asyncFunctionTempVariableScoping.ts index c1d52d6da17f6..99c51276d0a35 100644 --- a/tests/cases/compiler/asyncFunctionTempVariableScoping.ts +++ b/tests/cases/compiler/asyncFunctionTempVariableScoping.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @lib: es2015 // https://github.com/Microsoft/TypeScript/issues/19187 diff --git a/tests/cases/compiler/augmentExportEquals1.ts b/tests/cases/compiler/augmentExportEquals1.ts index d814bfdcc71b2..25d22f59f1e9f 100644 --- a/tests/cases/compiler/augmentExportEquals1.ts +++ b/tests/cases/compiler/augmentExportEquals1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: file1.ts var x = 1; diff --git a/tests/cases/compiler/augmentExportEquals1_1.ts b/tests/cases/compiler/augmentExportEquals1_1.ts index 6afc6e70910ba..8f3cecefe1ace 100644 --- a/tests/cases/compiler/augmentExportEquals1_1.ts +++ b/tests/cases/compiler/augmentExportEquals1_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentExportEquals2.ts b/tests/cases/compiler/augmentExportEquals2.ts index b037249645ac9..bc6c3c0a45ecd 100644 --- a/tests/cases/compiler/augmentExportEquals2.ts +++ b/tests/cases/compiler/augmentExportEquals2.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals2_1.ts b/tests/cases/compiler/augmentExportEquals2_1.ts index b6aeb21efd051..0de8a0647e24a 100644 --- a/tests/cases/compiler/augmentExportEquals2_1.ts +++ b/tests/cases/compiler/augmentExportEquals2_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentExportEquals3.ts b/tests/cases/compiler/augmentExportEquals3.ts index e8585aba26d56..08bff0dc27ce2 100644 --- a/tests/cases/compiler/augmentExportEquals3.ts +++ b/tests/cases/compiler/augmentExportEquals3.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals3_1.ts b/tests/cases/compiler/augmentExportEquals3_1.ts index ad329643fa57c..a4f5fc3d6f3f0 100644 --- a/tests/cases/compiler/augmentExportEquals3_1.ts +++ b/tests/cases/compiler/augmentExportEquals3_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.d.ts declare module "file1" { diff --git a/tests/cases/compiler/augmentExportEquals4.ts b/tests/cases/compiler/augmentExportEquals4.ts index 5e0f28ce963ed..4bf93068a6c1f 100644 --- a/tests/cases/compiler/augmentExportEquals4.ts +++ b/tests/cases/compiler/augmentExportEquals4.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals4_1.ts b/tests/cases/compiler/augmentExportEquals4_1.ts index 467d0af38ef39..46cd24844656f 100644 --- a/tests/cases/compiler/augmentExportEquals4_1.ts +++ b/tests/cases/compiler/augmentExportEquals4_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentExportEquals6.ts b/tests/cases/compiler/augmentExportEquals6.ts index 4b10586779a64..e0bdf98cf3745 100644 --- a/tests/cases/compiler/augmentExportEquals6.ts +++ b/tests/cases/compiler/augmentExportEquals6.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals6_1.ts b/tests/cases/compiler/augmentExportEquals6_1.ts index aaee43bae746f..3d172335e4fc4 100644 --- a/tests/cases/compiler/augmentExportEquals6_1.ts +++ b/tests/cases/compiler/augmentExportEquals6_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts b/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts index f3881804c46d0..a5061440fee43 100644 --- a/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts +++ b/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace m { var f; var prototype; // This should be error since prototype would be static property on class m diff --git a/tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts b/tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts index 4eeb56e6e757e..0673bd1e3d011 100644 --- a/tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts +++ b/tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts @@ -1,3 +1,4 @@ +// @strict: false interface Object { data: number; } diff --git a/tests/cases/compiler/avoid.ts b/tests/cases/compiler/avoid.ts index 5ffa4a214ed22..abd5e02c3f08d 100644 --- a/tests/cases/compiler/avoid.ts +++ b/tests/cases/compiler/avoid.ts @@ -1,3 +1,4 @@ +// @strict: false function f() { var x=1; } diff --git a/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts b/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts index 4bc72303fb0f5..2e3d1fe68a2ba 100644 --- a/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts +++ b/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false interface Dog { barkable: true } diff --git a/tests/cases/compiler/awaitInNonAsyncFunction.ts b/tests/cases/compiler/awaitInNonAsyncFunction.ts index 5ebf37dc7ed04..1e619d9fe54fb 100644 --- a/tests/cases/compiler/awaitInNonAsyncFunction.ts +++ b/tests/cases/compiler/awaitInNonAsyncFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // https://github.com/Microsoft/TypeScript/issues/26586 diff --git a/tests/cases/compiler/awaitedTypeCrash.ts b/tests/cases/compiler/awaitedTypeCrash.ts index b90f32363210e..f048404a1dc3a 100644 --- a/tests/cases/compiler/awaitedTypeCrash.ts +++ b/tests/cases/compiler/awaitedTypeCrash.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // https://github.com/microsoft/TypeScript/issues/51984 diff --git a/tests/cases/compiler/awaitedTypeJQuery.ts b/tests/cases/compiler/awaitedTypeJQuery.ts index a477b7719e4da..4b8b66eda6a42 100644 --- a/tests/cases/compiler/awaitedTypeJQuery.ts +++ b/tests/cases/compiler/awaitedTypeJQuery.ts @@ -1,3 +1,4 @@ +// @strict: false /// interface Thenable extends PromiseLike { } diff --git a/tests/cases/compiler/badArraySyntax.ts b/tests/cases/compiler/badArraySyntax.ts index 6a19a1504ac38..d39bc5f34998f 100644 --- a/tests/cases/compiler/badArraySyntax.ts +++ b/tests/cases/compiler/badArraySyntax.ts @@ -1,3 +1,4 @@ +// @strict: false class Z { public x = ""; } diff --git a/tests/cases/compiler/baseConstraintOfDecorator.ts b/tests/cases/compiler/baseConstraintOfDecorator.ts index 9419974a04ff4..d85d0d51326aa 100644 --- a/tests/cases/compiler/baseConstraintOfDecorator.ts +++ b/tests/cases/compiler/baseConstraintOfDecorator.ts @@ -1,3 +1,4 @@ +// @strict: false export function classExtender(superClass: TFunction, _instanceModifier: (instance: any, args: any[]) => void): TFunction { return class decoratorFunc extends superClass { constructor(...args: any[]) { diff --git a/tests/cases/compiler/bases.ts b/tests/cases/compiler/bases.ts index 9bfc2e56caf5a..0565d7660c060 100644 --- a/tests/cases/compiler/bases.ts +++ b/tests/cases/compiler/bases.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { x; } diff --git a/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts b/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts index d44fe15d9e45f..135e73829e78a 100644 --- a/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts +++ b/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts @@ -1,3 +1,4 @@ +// @strict: false interface Contextual { dummy; p?: number; diff --git a/tests/cases/compiler/bigintIndex.ts b/tests/cases/compiler/bigintIndex.ts index cb70721f464a3..e4c32e53281e6 100644 --- a/tests/cases/compiler/bigintIndex.ts +++ b/tests/cases/compiler/bigintIndex.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2020 // @filename: a.ts diff --git a/tests/cases/compiler/bigintWithLib.ts b/tests/cases/compiler/bigintWithLib.ts index a4701496550e5..1cbbcc63e67e9 100644 --- a/tests/cases/compiler/bigintWithLib.ts +++ b/tests/cases/compiler/bigintWithLib.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2020 // @declaration: true diff --git a/tests/cases/compiler/binopAssignmentShouldHaveType.ts b/tests/cases/compiler/binopAssignmentShouldHaveType.ts index 9c4fc068f84e0..ca9c44b17c9ea 100644 --- a/tests/cases/compiler/binopAssignmentShouldHaveType.ts +++ b/tests/cases/compiler/binopAssignmentShouldHaveType.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 declare var console; "use strict"; diff --git a/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts b/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts index c0b803df6e890..ad6bf0c4625a8 100644 --- a/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts +++ b/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts @@ -1,3 +1,4 @@ +// @strict: false // 1: for (let {[a]: a} of [{ }]) continue; diff --git a/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts b/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts index 4a9fe4a2a859a..c6e303314b24d 100644 --- a/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts +++ b/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @outFile: out.js // @module: amd diff --git a/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts b/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts index 7cf893e2a7436..97bc54a28b1a0 100644 --- a/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts +++ b/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: esnext, dom function foo0() { diff --git a/tests/cases/compiler/callOverloads1.ts b/tests/cases/compiler/callOverloads1.ts index e2ce278eec004..516fd4cac4ae2 100644 --- a/tests/cases/compiler/callOverloads1.ts +++ b/tests/cases/compiler/callOverloads1.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { // error bar1() { /*WScript.Echo("bar1");*/ } diff --git a/tests/cases/compiler/callOverloads2.ts b/tests/cases/compiler/callOverloads2.ts index e18815fd46b76..652dcddffc06c 100644 --- a/tests/cases/compiler/callOverloads2.ts +++ b/tests/cases/compiler/callOverloads2.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { // error diff --git a/tests/cases/compiler/callOverloads5.ts b/tests/cases/compiler/callOverloads5.ts index 212b68b168a43..2e9319f379bcc 100644 --- a/tests/cases/compiler/callOverloads5.ts +++ b/tests/cases/compiler/callOverloads5.ts @@ -1,3 +1,4 @@ +// @strict: false function Foo():Foo; // error function Foo(s:string):Foo; // error class Foo { // error diff --git a/tests/cases/compiler/callbackArgsDifferByOptionality.ts b/tests/cases/compiler/callbackArgsDifferByOptionality.ts index d0bab4d84a7b7..e2899813b22d3 100644 --- a/tests/cases/compiler/callbackArgsDifferByOptionality.ts +++ b/tests/cases/compiler/callbackArgsDifferByOptionality.ts @@ -1,3 +1,4 @@ +// @strict: false function x3(callback: (x?: 'hi') => number); function x3(callback: (x: string) => number); function x3(callback: (x: any) => number) { diff --git a/tests/cases/compiler/capturedLetConstInLoop1.ts b/tests/cases/compiler/capturedLetConstInLoop1.ts index 4919429eec706..d48ac08ac6f29 100644 --- a/tests/cases/compiler/capturedLetConstInLoop1.ts +++ b/tests/cases/compiler/capturedLetConstInLoop1.ts @@ -1,3 +1,4 @@ +// @strict: false declare function use(x: any): any; //==== let diff --git a/tests/cases/compiler/capturedLetConstInLoop10.ts b/tests/cases/compiler/capturedLetConstInLoop10.ts index 47eee6d6a7d47..b389edac6b87f 100644 --- a/tests/cases/compiler/capturedLetConstInLoop10.ts +++ b/tests/cases/compiler/capturedLetConstInLoop10.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() { for (let x of [0]) { diff --git a/tests/cases/compiler/capturedLetConstInLoop10_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop10_ES6.ts index 21c58e3aa3d49..4f32b828e82cc 100644 --- a/tests/cases/compiler/capturedLetConstInLoop10_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop10_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 class A { foo() { diff --git a/tests/cases/compiler/capturedLetConstInLoop11.ts b/tests/cases/compiler/capturedLetConstInLoop11.ts index bda0cec9d6912..cc0568e677931 100644 --- a/tests/cases/compiler/capturedLetConstInLoop11.ts +++ b/tests/cases/compiler/capturedLetConstInLoop11.ts @@ -1,3 +1,4 @@ +// @strict: false for (;;) { let x = 1; () => x; diff --git a/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts index 24005ed4833a3..2ffc9e0728ffa 100644 --- a/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 for (;;) { let x = 1; diff --git a/tests/cases/compiler/capturedLetConstInLoop12.ts b/tests/cases/compiler/capturedLetConstInLoop12.ts index 5540f75635e00..73d90f74525f1 100644 --- a/tests/cases/compiler/capturedLetConstInLoop12.ts +++ b/tests/cases/compiler/capturedLetConstInLoop12.ts @@ -1,3 +1,4 @@ +// @strict: false (function() { "use strict"; diff --git a/tests/cases/compiler/capturedLetConstInLoop13.ts b/tests/cases/compiler/capturedLetConstInLoop13.ts index 0aa00b0e1a0f1..ff428b856d66a 100644 --- a/tests/cases/compiler/capturedLetConstInLoop13.ts +++ b/tests/cases/compiler/capturedLetConstInLoop13.ts @@ -1,3 +1,4 @@ +// @strict: false class Main { constructor() { diff --git a/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts index 314fc4a9919fd..a5fa1ca9d3073 100644 --- a/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 //==== let for (let x in {}) { diff --git a/tests/cases/compiler/capturedLetConstInLoop2.ts b/tests/cases/compiler/capturedLetConstInLoop2.ts index 7dbd5d01f9371..c3b57efcfd32a 100644 --- a/tests/cases/compiler/capturedLetConstInLoop2.ts +++ b/tests/cases/compiler/capturedLetConstInLoop2.ts @@ -1,3 +1,4 @@ +// @strict: false // ========let diff --git a/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts index 00aed7121885d..27548cd8e05cd 100644 --- a/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // ========let diff --git a/tests/cases/compiler/capturedLetConstInLoop3.ts b/tests/cases/compiler/capturedLetConstInLoop3.ts index dc5eef6dd3491..9496d8d7bc257 100644 --- a/tests/cases/compiler/capturedLetConstInLoop3.ts +++ b/tests/cases/compiler/capturedLetConstInLoop3.ts @@ -1,3 +1,4 @@ +// @strict: false ///=========let declare function use(a: any); function foo0(x) { diff --git a/tests/cases/compiler/capturedLetConstInLoop3_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop3_ES6.ts index 657c519047370..54af999e71b29 100644 --- a/tests/cases/compiler/capturedLetConstInLoop3_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop3_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 ///=========let diff --git a/tests/cases/compiler/capturedLetConstInLoop4.ts b/tests/cases/compiler/capturedLetConstInLoop4.ts index 58f05876f89d1..58d25ab141844 100644 --- a/tests/cases/compiler/capturedLetConstInLoop4.ts +++ b/tests/cases/compiler/capturedLetConstInLoop4.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system //======let diff --git a/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts index e65c01e90e2d3..924b2708e67c8 100644 --- a/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 //======let diff --git a/tests/cases/compiler/capturedLetConstInLoop5.ts b/tests/cases/compiler/capturedLetConstInLoop5.ts index 5eedd5aac85b7..86b9617812f0f 100644 --- a/tests/cases/compiler/capturedLetConstInLoop5.ts +++ b/tests/cases/compiler/capturedLetConstInLoop5.ts @@ -1,3 +1,4 @@ +// @strict: false declare function use(a: any); //====let diff --git a/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts index 224ffa823bf32..b217af85f49f9 100644 --- a/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 declare function use(a: any); diff --git a/tests/cases/compiler/capturedLetConstInLoop6.ts b/tests/cases/compiler/capturedLetConstInLoop6.ts index a854be4619527..d7d1ce21acc83 100644 --- a/tests/cases/compiler/capturedLetConstInLoop6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop6.ts @@ -1,3 +1,4 @@ +// @strict: false // ====let for (let x of []) { (function() { return x}); diff --git a/tests/cases/compiler/capturedLetConstInLoop6_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop6_ES6.ts index ad10f1fcb74f7..a6261e1aa8864 100644 --- a/tests/cases/compiler/capturedLetConstInLoop6_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop6_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // ====let for (let x of []) { diff --git a/tests/cases/compiler/capturedLetConstInLoop7.ts b/tests/cases/compiler/capturedLetConstInLoop7.ts index 12805411f969f..9680b13d21980 100644 --- a/tests/cases/compiler/capturedLetConstInLoop7.ts +++ b/tests/cases/compiler/capturedLetConstInLoop7.ts @@ -1,3 +1,4 @@ +// @strict: false //===let l0: for (let x of []) { diff --git a/tests/cases/compiler/capturedLetConstInLoop7_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop7_ES6.ts index 2e2784f9a16c0..d1191bff608b8 100644 --- a/tests/cases/compiler/capturedLetConstInLoop7_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop7_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 //===let l0: diff --git a/tests/cases/compiler/capturedLetConstInLoop9.ts b/tests/cases/compiler/capturedLetConstInLoop9.ts index 4b67349690d6f..137664203f268 100644 --- a/tests/cases/compiler/capturedLetConstInLoop9.ts +++ b/tests/cases/compiler/capturedLetConstInLoop9.ts @@ -1,3 +1,4 @@ +// @strict: false for (let x = 0; x < 1; ++x) { let x; (function() { return x }); diff --git a/tests/cases/compiler/capturedLetConstInLoop9_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop9_ES6.ts index 25c696ff7e641..03e38e4b83716 100644 --- a/tests/cases/compiler/capturedLetConstInLoop9_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop9_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 for (let x = 0; x < 1; ++x) { diff --git a/tests/cases/compiler/capturedParametersInInitializers1.ts b/tests/cases/compiler/capturedParametersInInitializers1.ts index be989e92f8bcf..00a2a20606423 100644 --- a/tests/cases/compiler/capturedParametersInInitializers1.ts +++ b/tests/cases/compiler/capturedParametersInInitializers1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // ok - usage is deferred function foo1(y = class {c = x}, x = 1) { diff --git a/tests/cases/compiler/capturedVarInLoop.ts b/tests/cases/compiler/capturedVarInLoop.ts index 65cc5620f8374..59ba79dbe92e9 100644 --- a/tests/cases/compiler/capturedVarInLoop.ts +++ b/tests/cases/compiler/capturedVarInLoop.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 for (var i = 0; i < 10; i++) { var str = 'x', len = str.length; diff --git a/tests/cases/compiler/castExpressionParentheses.ts b/tests/cases/compiler/castExpressionParentheses.ts index 4d70b9a777723..ba6b13a563da6 100644 --- a/tests/cases/compiler/castExpressionParentheses.ts +++ b/tests/cases/compiler/castExpressionParentheses.ts @@ -1,3 +1,4 @@ +// @strict: false declare var a; // parentheses should be omitted diff --git a/tests/cases/compiler/chainedAssignment1.ts b/tests/cases/compiler/chainedAssignment1.ts index 963a1fbea7e5c..e1f65458502f6 100644 --- a/tests/cases/compiler/chainedAssignment1.ts +++ b/tests/cases/compiler/chainedAssignment1.ts @@ -1,3 +1,4 @@ +// @strict: false class X { constructor(public z) { } a: number; diff --git a/tests/cases/compiler/chainedAssignmentChecking.ts b/tests/cases/compiler/chainedAssignmentChecking.ts index efc16cc7c3c37..ccff32d35664f 100644 --- a/tests/cases/compiler/chainedAssignmentChecking.ts +++ b/tests/cases/compiler/chainedAssignmentChecking.ts @@ -1,3 +1,4 @@ +// @strict: false class X { constructor(public z) { } a: number; diff --git a/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts b/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts index 66ed33cf11368..b065e6a3df6f2 100644 --- a/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts +++ b/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts @@ -1,3 +1,4 @@ +// @strict: false class Chain { constructor(public value: T) { } then(cb: (x: T) => S): Chain { diff --git a/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts b/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts index a22bf10a38ccc..21ccf862b06f2 100644 --- a/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts +++ b/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts @@ -1,3 +1,4 @@ +// @strict: false class Chain { constructor(public value: T) { } then(cb: (x: T) => S): Chain { diff --git a/tests/cases/compiler/checkInfiniteExpansionTermination.ts b/tests/cases/compiler/checkInfiniteExpansionTermination.ts index 8514ebce96606..f21b95f275444 100644 --- a/tests/cases/compiler/checkInfiniteExpansionTermination.ts +++ b/tests/cases/compiler/checkInfiniteExpansionTermination.ts @@ -1,3 +1,4 @@ +// @strict: false // Regression test for #1002 // Before fix this code would cause infinite loop diff --git a/tests/cases/compiler/checkInfiniteExpansionTermination2.ts b/tests/cases/compiler/checkInfiniteExpansionTermination2.ts index f30499ba5403c..d4d400c0ad9ab 100644 --- a/tests/cases/compiler/checkInfiniteExpansionTermination2.ts +++ b/tests/cases/compiler/checkInfiniteExpansionTermination2.ts @@ -1,3 +1,4 @@ +// @strict: false // Regression test for #1002 // Before fix this code would cause infinite loop diff --git a/tests/cases/compiler/checkJsxNotSetError.ts b/tests/cases/compiler/checkJsxNotSetError.ts index 824a68d4ff1d7..a3d7795354581 100644 --- a/tests/cases/compiler/checkJsxNotSetError.ts +++ b/tests/cases/compiler/checkJsxNotSetError.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true diff --git a/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts b/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts index 525d7b1feb4fe..af09f841fdf3b 100644 --- a/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts +++ b/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/classExpressionWithStaticProperties2.ts b/tests/cases/compiler/classExpressionWithStaticProperties2.ts index 353926e7abdbd..52cd5927b713a 100644 --- a/tests/cases/compiler/classExpressionWithStaticProperties2.ts +++ b/tests/cases/compiler/classExpressionWithStaticProperties2.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: es5 var v = class C { static a = 1; diff --git a/tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts b/tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts index afb87b10de96a..49e1bc1d1336f 100644 --- a/tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts +++ b/tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: es6 var v = class C { static a = 1; diff --git a/tests/cases/compiler/classImplementingInterfaceIndexer.ts b/tests/cases/compiler/classImplementingInterfaceIndexer.ts index 89b1f2094cf66..0de0e9be8f0eb 100644 --- a/tests/cases/compiler/classImplementingInterfaceIndexer.ts +++ b/tests/cases/compiler/classImplementingInterfaceIndexer.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [index: string]: { prop } } diff --git a/tests/cases/compiler/classImplementsImportedInterface.ts b/tests/cases/compiler/classImplementsImportedInterface.ts index 88750e1dd3ccd..7c07f9fd63bc2 100644 --- a/tests/cases/compiler/classImplementsImportedInterface.ts +++ b/tests/cases/compiler/classImplementsImportedInterface.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M1 { export interface I { foo(); diff --git a/tests/cases/compiler/classMemberInitializerScoping.ts b/tests/cases/compiler/classMemberInitializerScoping.ts index bb8ca637da660..f5aef9a63eaff 100644 --- a/tests/cases/compiler/classMemberInitializerScoping.ts +++ b/tests/cases/compiler/classMemberInitializerScoping.ts @@ -1,3 +1,4 @@ +// @strict: false var aaa = 1; class CCC { y: number = aaa; diff --git a/tests/cases/compiler/classMemberInitializerScoping2.ts b/tests/cases/compiler/classMemberInitializerScoping2.ts index 583d9f03aae21..8ebf2cb7a63ca 100644 --- a/tests/cases/compiler/classMemberInitializerScoping2.ts +++ b/tests/cases/compiler/classMemberInitializerScoping2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017,esnext // @useDefineForClassFields: true,false diff --git a/tests/cases/compiler/classMemberWithMissingIdentifier.ts b/tests/cases/compiler/classMemberWithMissingIdentifier.ts index 01ba223f4c49c..ceb4f985d1d71 100644 --- a/tests/cases/compiler/classMemberWithMissingIdentifier.ts +++ b/tests/cases/compiler/classMemberWithMissingIdentifier.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public {}; } \ No newline at end of file diff --git a/tests/cases/compiler/classMemberWithMissingIdentifier2.ts b/tests/cases/compiler/classMemberWithMissingIdentifier2.ts index e16186597970a..0d08c0c06038f 100644 --- a/tests/cases/compiler/classMemberWithMissingIdentifier2.ts +++ b/tests/cases/compiler/classMemberWithMissingIdentifier2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public {[name:string]:VariableDeclaration}; } \ No newline at end of file diff --git a/tests/cases/compiler/classUpdateTests.ts b/tests/cases/compiler/classUpdateTests.ts index f71aa994eda62..2775cc2a679bd 100644 --- a/tests/cases/compiler/classUpdateTests.ts +++ b/tests/cases/compiler/classUpdateTests.ts @@ -1,3 +1,4 @@ +// @strict: false // // test codegen for instance properties // diff --git a/tests/cases/compiler/classWithMultipleBaseClasses.ts b/tests/cases/compiler/classWithMultipleBaseClasses.ts index dd9a3a5fe7ee1..8aa8c1cff1c1f 100644 --- a/tests/cases/compiler/classWithMultipleBaseClasses.ts +++ b/tests/cases/compiler/classWithMultipleBaseClasses.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() { } } diff --git a/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts b/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts index 2fc58bae0bf8e..295191867a383 100644 --- a/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts +++ b/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(): string; foo(x): number; diff --git a/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts b/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts index 2f67cd1a66e0e..753145b46953b 100644 --- a/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts +++ b/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(): string; bar(x): any { } diff --git a/tests/cases/compiler/classdecl.ts b/tests/cases/compiler/classdecl.ts index 3005d77d496fa..e8ce495898f75 100644 --- a/tests/cases/compiler/classdecl.ts +++ b/tests/cases/compiler/classdecl.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @target: es5 class a { diff --git a/tests/cases/compiler/cloduleTest2.ts b/tests/cases/compiler/cloduleTest2.ts index 0a4403ec30a6c..a1add252cfb64 100644 --- a/tests/cases/compiler/cloduleTest2.ts +++ b/tests/cases/compiler/cloduleTest2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace T1 { namespace m3d { export var y = 2; } declare class m3d { constructor(foo); foo(): void ; static bar(); } diff --git a/tests/cases/compiler/cloduleWithDuplicateMember2.ts b/tests/cases/compiler/cloduleWithDuplicateMember2.ts index acb019f0d305f..5545ad85f245d 100644 --- a/tests/cases/compiler/cloduleWithDuplicateMember2.ts +++ b/tests/cases/compiler/cloduleWithDuplicateMember2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { set x(y) { } static set y(z) { } diff --git a/tests/cases/compiler/collisionArgumentsArrowFunctions.ts b/tests/cases/compiler/collisionArgumentsArrowFunctions.ts index e4d9215862d57..49fdb036ac573 100644 --- a/tests/cases/compiler/collisionArgumentsArrowFunctions.ts +++ b/tests/cases/compiler/collisionArgumentsArrowFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false var f1 = (i: number, ...arguments) => { //arguments is error var arguments: any[]; // no error } diff --git a/tests/cases/compiler/collisionArgumentsClassConstructor.ts b/tests/cases/compiler/collisionArgumentsClassConstructor.ts index c06a108c77b28..3f966191f7a83 100644 --- a/tests/cases/compiler/collisionArgumentsClassConstructor.ts +++ b/tests/cases/compiler/collisionArgumentsClassConstructor.ts @@ -1,3 +1,4 @@ +// @strict: false // Constructors class c1 { constructor(i: number, ...arguments) { // error diff --git a/tests/cases/compiler/collisionArgumentsClassMethod.ts b/tests/cases/compiler/collisionArgumentsClassMethod.ts index dba2c31293cb2..dc15cdba02c41 100644 --- a/tests/cases/compiler/collisionArgumentsClassMethod.ts +++ b/tests/cases/compiler/collisionArgumentsClassMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class c1 { public foo(i: number, ...arguments) { //arguments is error var arguments: any[]; // no error diff --git a/tests/cases/compiler/collisionArgumentsFunction.ts b/tests/cases/compiler/collisionArgumentsFunction.ts index b90dee9ec1142..d2d6938080ea0 100644 --- a/tests/cases/compiler/collisionArgumentsFunction.ts +++ b/tests/cases/compiler/collisionArgumentsFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // Functions function f1(arguments: number, ...restParameters) { //arguments is error var arguments = 10; // no error diff --git a/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts b/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts index a5a39b09c5495..b6bda566dd798 100644 --- a/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts +++ b/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false function foo() { function f1(arguments: number, ...restParameters) { //arguments is error var arguments = 10; // no error diff --git a/tests/cases/compiler/collisionArgumentsInType.ts b/tests/cases/compiler/collisionArgumentsInType.ts index c9354ba0baec9..9c09f883de57e 100644 --- a/tests/cases/compiler/collisionArgumentsInType.ts +++ b/tests/cases/compiler/collisionArgumentsInType.ts @@ -1,3 +1,4 @@ +// @strict: false var v1: (i: number, ...arguments) => void; // no error - no code gen var v12: (arguments: number, ...restParameters) => void; // no error - no code gen var v2: { diff --git a/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts b/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts index bfb280116e4b1..a0a5d28de5ccd 100644 --- a/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts +++ b/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts @@ -1,3 +1,4 @@ +// @strict: false // call interface i1 { (i: number, ...arguments); // no error - no code gen diff --git a/tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts b/tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts index a16306a5a1b28..97a3346c1c7e9 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export var x = 3; class c { diff --git a/tests/cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts b/tests/cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts index 1eb8d3c79a82b..a31ccfe6c5b03 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export var x = 3; class c { diff --git a/tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts b/tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts index 96f8d86be2449..1ee5e4517a296 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export var x = 3; function fn(M, p = x) { } diff --git a/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts b/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts index c4919a158e8d8..51a0328b65a58 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export var x = 3; class c { diff --git a/tests/cases/compiler/collisionRestParameterArrowFunctions.ts b/tests/cases/compiler/collisionRestParameterArrowFunctions.ts index 0fb46590d10b8..d32afdd186671 100644 --- a/tests/cases/compiler/collisionRestParameterArrowFunctions.ts +++ b/tests/cases/compiler/collisionRestParameterArrowFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false var f1 = (_i: number, ...restParameters) => { //_i is error var _i = 10; // no error } diff --git a/tests/cases/compiler/collisionRestParameterClassConstructor.ts b/tests/cases/compiler/collisionRestParameterClassConstructor.ts index 2269f57e99218..02def8435e59a 100644 --- a/tests/cases/compiler/collisionRestParameterClassConstructor.ts +++ b/tests/cases/compiler/collisionRestParameterClassConstructor.ts @@ -1,3 +1,4 @@ +// @strict: false // Constructors class c1 { constructor(_i: number, ...restParameters) { //_i is error diff --git a/tests/cases/compiler/collisionRestParameterClassMethod.ts b/tests/cases/compiler/collisionRestParameterClassMethod.ts index 507c8d3779259..67117f042d024 100644 --- a/tests/cases/compiler/collisionRestParameterClassMethod.ts +++ b/tests/cases/compiler/collisionRestParameterClassMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class c1 { public foo(_i: number, ...restParameters) { //_i is error var _i = 10; // no error diff --git a/tests/cases/compiler/collisionRestParameterFunction.ts b/tests/cases/compiler/collisionRestParameterFunction.ts index c31e6ab8f9b70..a3d85ac052723 100644 --- a/tests/cases/compiler/collisionRestParameterFunction.ts +++ b/tests/cases/compiler/collisionRestParameterFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // Functions function f1(_i: number, ...restParameters) { //_i is error var _i = 10; // no error diff --git a/tests/cases/compiler/collisionRestParameterFunctionExpressions.ts b/tests/cases/compiler/collisionRestParameterFunctionExpressions.ts index 7e54c24ec660e..817c0a1c263e8 100644 --- a/tests/cases/compiler/collisionRestParameterFunctionExpressions.ts +++ b/tests/cases/compiler/collisionRestParameterFunctionExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false function foo() { function f1(_i: number, ...restParameters) { //_i is error var _i = 10; // no error diff --git a/tests/cases/compiler/collisionRestParameterInType.ts b/tests/cases/compiler/collisionRestParameterInType.ts index 62e3809a546e0..f1671d4743209 100644 --- a/tests/cases/compiler/collisionRestParameterInType.ts +++ b/tests/cases/compiler/collisionRestParameterInType.ts @@ -1,3 +1,4 @@ +// @strict: false var v1: (_i: number, ...restParameters) => void; // no error - no code gen var v2: { (_i: number, ...restParameters); // no error - no code gen diff --git a/tests/cases/compiler/collisionRestParameterInterfaceMembers.ts b/tests/cases/compiler/collisionRestParameterInterfaceMembers.ts index 80041e667b637..192a963576b59 100644 --- a/tests/cases/compiler/collisionRestParameterInterfaceMembers.ts +++ b/tests/cases/compiler/collisionRestParameterInterfaceMembers.ts @@ -1,3 +1,4 @@ +// @strict: false // call interface i1 { (_i: number, ...restParameters); // no error - no code gen diff --git a/tests/cases/compiler/collisionSuperAndNameResolution.ts b/tests/cases/compiler/collisionSuperAndNameResolution.ts index 4e08fe96982f6..2354ea582fe6c 100644 --- a/tests/cases/compiler/collisionSuperAndNameResolution.ts +++ b/tests/cases/compiler/collisionSuperAndNameResolution.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 var console: { log(message: any); diff --git a/tests/cases/compiler/collisionSuperAndParameter.ts b/tests/cases/compiler/collisionSuperAndParameter.ts index 88c0235a5b599..ccbbde0482781 100644 --- a/tests/cases/compiler/collisionSuperAndParameter.ts +++ b/tests/cases/compiler/collisionSuperAndParameter.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { a() { diff --git a/tests/cases/compiler/collisionSuperAndParameter1.ts b/tests/cases/compiler/collisionSuperAndParameter1.ts index 9c42472fff8cc..0ac8272fb5222 100644 --- a/tests/cases/compiler/collisionSuperAndParameter1.ts +++ b/tests/cases/compiler/collisionSuperAndParameter1.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { } diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts index d3546733e101b..1f5384d53fa8a 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class class1 { get a(): number { diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts index 380fb783a4f14..7a20477239ba4 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts @@ -1,3 +1,4 @@ +// @strict: false class class1 { constructor() { var x2 = { diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts index feb3fe25379b3..ad932a00c26a9 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 var console: { log(val: any); diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts index 99b13763d3136..22d660bb91eac 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts @@ -1,3 +1,4 @@ +// @strict: false declare function alert(message?: any): void; var x = { diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts index b8c13a215ec0a..53f42be707173 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class a { method1() { return { diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts index 9146c9b2d930b..89b46198decaa 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class class1 { public prop1 = { doStuff: (callback) => () => { diff --git a/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts b/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts index d479498e2256a..7fb17c7df3c7c 100644 --- a/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts +++ b/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 var console : { log(message: any); diff --git a/tests/cases/compiler/collisionThisExpressionAndParameter.ts b/tests/cases/compiler/collisionThisExpressionAndParameter.ts index fc7410bcf7d99..3d6be204aec16 100644 --- a/tests/cases/compiler/collisionThisExpressionAndParameter.ts +++ b/tests/cases/compiler/collisionThisExpressionAndParameter.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 class Foo { x() { diff --git a/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts b/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts index 0bd9be4e72098..9dcbf559150c2 100644 --- a/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts +++ b/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo2 { constructor(_this: number) { //Error var lambda = () => { diff --git a/tests/cases/compiler/commentOnAmbientModule.ts b/tests/cases/compiler/commentOnAmbientModule.ts index d878760fa2df5..f025ea9e917ad 100644 --- a/tests/cases/compiler/commentOnAmbientModule.ts +++ b/tests/cases/compiler/commentOnAmbientModule.ts @@ -1,3 +1,4 @@ +// @strict: false //@filename: a.ts /*!========= Keep this pinned comment diff --git a/tests/cases/compiler/commentOnAmbientfunction.ts b/tests/cases/compiler/commentOnAmbientfunction.ts index 51f3b6194b59a..e38f80b42a73d 100644 --- a/tests/cases/compiler/commentOnAmbientfunction.ts +++ b/tests/cases/compiler/commentOnAmbientfunction.ts @@ -1,3 +1,4 @@ +// @strict: false //@filename: a.ts /*!========= Keep this pinned comment diff --git a/tests/cases/compiler/commentOnSignature1.ts b/tests/cases/compiler/commentOnSignature1.ts index e8d2d831e8b1f..f13d9622fd6b5 100644 --- a/tests/cases/compiler/commentOnSignature1.ts +++ b/tests/cases/compiler/commentOnSignature1.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: a.ts /*!================= Keep this pinned diff --git a/tests/cases/compiler/commentsAfterFunctionExpression1.ts b/tests/cases/compiler/commentsAfterFunctionExpression1.ts index 04fb0aec3b1a8..9a93fbf1596cb 100644 --- a/tests/cases/compiler/commentsAfterFunctionExpression1.ts +++ b/tests/cases/compiler/commentsAfterFunctionExpression1.ts @@ -1,3 +1,4 @@ +// @strict: false // @removeComments: false var v = { f: a => 0 /*t1*/, diff --git a/tests/cases/compiler/commentsAfterSpread.ts b/tests/cases/compiler/commentsAfterSpread.ts index d517ddbab1d5e..ec92a06824798 100644 --- a/tests/cases/compiler/commentsAfterSpread.ts +++ b/tests/cases/compiler/commentsAfterSpread.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ESNEXT const identity = (a) => a; diff --git a/tests/cases/compiler/commentsBeforeFunctionExpression1.ts b/tests/cases/compiler/commentsBeforeFunctionExpression1.ts index d3b21c1847591..27fb182db04e4 100644 --- a/tests/cases/compiler/commentsBeforeFunctionExpression1.ts +++ b/tests/cases/compiler/commentsBeforeFunctionExpression1.ts @@ -1,3 +1,4 @@ +// @strict: false // @removeComments: false var v = { f: /**own f*/ (a) => 0 diff --git a/tests/cases/compiler/commentsCommentParsing.ts b/tests/cases/compiler/commentsCommentParsing.ts index a1fbf50c61fdb..cffdad17fa9ec 100644 --- a/tests/cases/compiler/commentsCommentParsing.ts +++ b/tests/cases/compiler/commentsCommentParsing.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsInterface.ts b/tests/cases/compiler/commentsInterface.ts index 2e35a95f207a0..c2438e198a918 100644 --- a/tests/cases/compiler/commentsInterface.ts +++ b/tests/cases/compiler/commentsInterface.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsOnObjectLiteral2.ts b/tests/cases/compiler/commentsOnObjectLiteral2.ts index 952df7ed96973..c38785a71059e 100644 --- a/tests/cases/compiler/commentsOnObjectLiteral2.ts +++ b/tests/cases/compiler/commentsOnObjectLiteral2.ts @@ -1,3 +1,4 @@ +// @strict: false // @removeComments: false var Person = makeClass( { diff --git a/tests/cases/compiler/commentsOverloads.ts b/tests/cases/compiler/commentsOverloads.ts index efb5d73df8f2c..502c54ce10345 100644 --- a/tests/cases/compiler/commentsOverloads.ts +++ b/tests/cases/compiler/commentsOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsdoNotEmitComments.ts b/tests/cases/compiler/commentsdoNotEmitComments.ts index af831c74d4891..cc9dda1fa50c2 100644 --- a/tests/cases/compiler/commentsdoNotEmitComments.ts +++ b/tests/cases/compiler/commentsdoNotEmitComments.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true // @removeComments: true diff --git a/tests/cases/compiler/commentsemitComments.ts b/tests/cases/compiler/commentsemitComments.ts index 449bacec8af7a..06c7d4db7c251 100644 --- a/tests/cases/compiler/commentsemitComments.ts +++ b/tests/cases/compiler/commentsemitComments.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commonMissingSemicolons.ts b/tests/cases/compiler/commonMissingSemicolons.ts index 197177c9f4bb5..0e27ea677007e 100644 --- a/tests/cases/compiler/commonMissingSemicolons.ts +++ b/tests/cases/compiler/commonMissingSemicolons.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @noTypesAndSymbols: true diff --git a/tests/cases/compiler/complexNarrowingWithAny.ts b/tests/cases/compiler/complexNarrowingWithAny.ts index 746e2ef031f19..4951ee7a6e45d 100644 --- a/tests/cases/compiler/complexNarrowingWithAny.ts +++ b/tests/cases/compiler/complexNarrowingWithAny.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro from #10869 /** diff --git a/tests/cases/compiler/complicatedPrivacy.ts b/tests/cases/compiler/complicatedPrivacy.ts index ec86b63660907..dc748c4832632 100644 --- a/tests/cases/compiler/complicatedPrivacy.ts +++ b/tests/cases/compiler/complicatedPrivacy.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 namespace m1 { export namespace m2 { diff --git a/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts b/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts index 42eb602989dfe..f4817ae707c1d 100644 --- a/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts +++ b/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: es5 const b = ({ [`key`]: renamed }) => renamed; \ No newline at end of file diff --git a/tests/cases/compiler/conditionalExpressions2.ts b/tests/cases/compiler/conditionalExpressions2.ts index ece002d7778fc..5307093240272 100644 --- a/tests/cases/compiler/conditionalExpressions2.ts +++ b/tests/cases/compiler/conditionalExpressions2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true var a = false ? 1 : null; diff --git a/tests/cases/compiler/constDeclarations-access.ts b/tests/cases/compiler/constDeclarations-access.ts index 665d6753a6df6..10804d8ab020c 100644 --- a/tests/cases/compiler/constDeclarations-access.ts +++ b/tests/cases/compiler/constDeclarations-access.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @Filename: file1.ts diff --git a/tests/cases/compiler/constDeclarations-access2.ts b/tests/cases/compiler/constDeclarations-access2.ts index e3f83940d1de0..153a003df7bd7 100644 --- a/tests/cases/compiler/constDeclarations-access2.ts +++ b/tests/cases/compiler/constDeclarations-access2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 const x = 0 diff --git a/tests/cases/compiler/constDeclarations-access3.ts b/tests/cases/compiler/constDeclarations-access3.ts index 344af8229320f..1e94dd75c9a70 100644 --- a/tests/cases/compiler/constDeclarations-access3.ts +++ b/tests/cases/compiler/constDeclarations-access3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations-access4.ts b/tests/cases/compiler/constDeclarations-access4.ts index 3ea4f54e8dfd3..17884add67679 100644 --- a/tests/cases/compiler/constDeclarations-access4.ts +++ b/tests/cases/compiler/constDeclarations-access4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations-access5.ts b/tests/cases/compiler/constDeclarations-access5.ts index 769e72c266a76..a20fb76cd367a 100644 --- a/tests/cases/compiler/constDeclarations-access5.ts +++ b/tests/cases/compiler/constDeclarations-access5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @module: commonjs diff --git a/tests/cases/compiler/constDeclarations-ambient-errors.ts b/tests/cases/compiler/constDeclarations-ambient-errors.ts index ecc6521c208b7..d37e90b2d576e 100644 --- a/tests/cases/compiler/constDeclarations-ambient-errors.ts +++ b/tests/cases/compiler/constDeclarations-ambient-errors.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // error: no intialization expected in ambient declarations diff --git a/tests/cases/compiler/constDeclarations-ambient.ts b/tests/cases/compiler/constDeclarations-ambient.ts index e9fdab5faabb6..83fd24529aa84 100644 --- a/tests/cases/compiler/constDeclarations-ambient.ts +++ b/tests/cases/compiler/constDeclarations-ambient.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // No error diff --git a/tests/cases/compiler/constDeclarations-errors.ts b/tests/cases/compiler/constDeclarations-errors.ts index 1c3ef8848b0b9..71a8c33706e66 100644 --- a/tests/cases/compiler/constDeclarations-errors.ts +++ b/tests/cases/compiler/constDeclarations-errors.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // error, missing intialicer diff --git a/tests/cases/compiler/constDeclarations-es5.ts b/tests/cases/compiler/constDeclarations-es5.ts index 0da824a7396d8..12da20e233fb9 100644 --- a/tests/cases/compiler/constDeclarations-es5.ts +++ b/tests/cases/compiler/constDeclarations-es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 const z7 = false; diff --git a/tests/cases/compiler/constDeclarations-invalidContexts.ts b/tests/cases/compiler/constDeclarations-invalidContexts.ts index 6d21ee31ec243..bf7d290befb4d 100644 --- a/tests/cases/compiler/constDeclarations-invalidContexts.ts +++ b/tests/cases/compiler/constDeclarations-invalidContexts.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations-scopes.ts b/tests/cases/compiler/constDeclarations-scopes.ts index 3fe6bf707fd2c..b2cd4416e43d7 100644 --- a/tests/cases/compiler/constDeclarations-scopes.ts +++ b/tests/cases/compiler/constDeclarations-scopes.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // global diff --git a/tests/cases/compiler/constDeclarations-scopes2.ts b/tests/cases/compiler/constDeclarations-scopes2.ts index fe0ab16409a98..b8e5378129c40 100644 --- a/tests/cases/compiler/constDeclarations-scopes2.ts +++ b/tests/cases/compiler/constDeclarations-scopes2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // global diff --git a/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts b/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts index ec793fda4846f..f5e2c25077772 100644 --- a/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts +++ b/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 { diff --git a/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts b/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts index 2f9def647d060..a4f53512e9307 100644 --- a/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts +++ b/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @outFile: out.js diff --git a/tests/cases/compiler/constDeclarations-validContexts.ts b/tests/cases/compiler/constDeclarations-validContexts.ts index 323eba564505a..7806fd34534d4 100644 --- a/tests/cases/compiler/constDeclarations-validContexts.ts +++ b/tests/cases/compiler/constDeclarations-validContexts.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations.ts b/tests/cases/compiler/constDeclarations.ts index 2b8563b340a21..0aba63c3cf758 100644 --- a/tests/cases/compiler/constDeclarations.ts +++ b/tests/cases/compiler/constDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @declaration: true diff --git a/tests/cases/compiler/constDeclarations2.ts b/tests/cases/compiler/constDeclarations2.ts index 75d39f8eb81bf..f55a175efc656 100644 --- a/tests/cases/compiler/constDeclarations2.ts +++ b/tests/cases/compiler/constDeclarations2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @declaration: true diff --git a/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts b/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts index f576e2a43025c..1d605c1e3f07a 100644 --- a/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts +++ b/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts @@ -1,3 +1,4 @@ +// @strict: false // used to be valid, now an error to do this interface IComparable { diff --git a/tests/cases/compiler/constructorOverloads7.ts b/tests/cases/compiler/constructorOverloads7.ts index 59efbbd619cae..db0feced24fde 100644 --- a/tests/cases/compiler/constructorOverloads7.ts +++ b/tests/cases/compiler/constructorOverloads7.ts @@ -1,3 +1,4 @@ +// @strict: false declare class Point { x: number; diff --git a/tests/cases/compiler/constructorOverloads8.ts b/tests/cases/compiler/constructorOverloads8.ts index 448d6f476c503..2df340c3dc32b 100644 --- a/tests/cases/compiler/constructorOverloads8.ts +++ b/tests/cases/compiler/constructorOverloads8.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(x) { } constructor(y, x) { } // illegal, 2 constructor implementations diff --git a/tests/cases/compiler/constructorStaticParamName.ts b/tests/cases/compiler/constructorStaticParamName.ts index 3edd36cdad141..053bd8e978887 100644 --- a/tests/cases/compiler/constructorStaticParamName.ts +++ b/tests/cases/compiler/constructorStaticParamName.ts @@ -1,3 +1,4 @@ +// @strict: false // static as constructor parameter name should only give error if 'use strict' class test { diff --git a/tests/cases/compiler/constructorStaticParamNameErrors.ts b/tests/cases/compiler/constructorStaticParamNameErrors.ts index 1fbbf6b48f6ad..ca7d4ed260d12 100644 --- a/tests/cases/compiler/constructorStaticParamNameErrors.ts +++ b/tests/cases/compiler/constructorStaticParamNameErrors.ts @@ -1,3 +1,4 @@ +// @strict: false 'use strict' // static as constructor parameter name should give error if 'use strict' class test { diff --git a/tests/cases/compiler/constructorsWithSpecializedSignatures.ts b/tests/cases/compiler/constructorsWithSpecializedSignatures.ts index 49af660fee19a..c769e22379ef9 100644 --- a/tests/cases/compiler/constructorsWithSpecializedSignatures.ts +++ b/tests/cases/compiler/constructorsWithSpecializedSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // errors declare class C { constructor(x: "hi"); diff --git a/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts b/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts index 0e442028706c6..2a487b74a07d0 100644 --- a/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts +++ b/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts @@ -1,3 +1,4 @@ +// @strict: false interface Animal { x } interface Giraffe extends Animal { y } interface Elephant extends Animal { y2 } diff --git a/tests/cases/compiler/contextualSignatureInstatiationCovariance.ts b/tests/cases/compiler/contextualSignatureInstatiationCovariance.ts index ec4a8bc236d1f..b72bf9a81e4df 100644 --- a/tests/cases/compiler/contextualSignatureInstatiationCovariance.ts +++ b/tests/cases/compiler/contextualSignatureInstatiationCovariance.ts @@ -1,3 +1,4 @@ +// @strict: false interface Animal { x } interface TallThing { x2 } interface Giraffe extends Animal, TallThing { y } diff --git a/tests/cases/compiler/contextualTyping.ts b/tests/cases/compiler/contextualTyping.ts index 5a962e16381a2..46b663cc94098 100644 --- a/tests/cases/compiler/contextualTyping.ts +++ b/tests/cases/compiler/contextualTyping.ts @@ -1,3 +1,4 @@ +// @strict: false // @sourcemap: true // DEFAULT INTERFACES interface IFoo { diff --git a/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts b/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts index f52b3e7fecaf8..4d31238a176ed 100644 --- a/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts +++ b/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts @@ -1,3 +1,4 @@ +// @strict: false type I = { a: "a" }; let [ c0 = {a: "a"} ]: [I?] = []; let [ x1, c1 = {a: "a"} ]: [number, I?] = [1]; diff --git a/tests/cases/compiler/contextualTypingArrayOfLambdas.ts b/tests/cases/compiler/contextualTypingArrayOfLambdas.ts index 4d86031d1fa2d..8a8d4dcfda3ac 100644 --- a/tests/cases/compiler/contextualTypingArrayOfLambdas.ts +++ b/tests/cases/compiler/contextualTypingArrayOfLambdas.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo: string; } diff --git a/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts b/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts index 556f42f7eb505..57c3da6f2b722 100644 --- a/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts +++ b/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { a(s: string): void; b(): (n: number) => void; diff --git a/tests/cases/compiler/contextualTypingFunctionReturningFunction2.ts b/tests/cases/compiler/contextualTypingFunctionReturningFunction2.ts index 9bcd34e4c0f0f..fdaf7f0571d10 100644 --- a/tests/cases/compiler/contextualTypingFunctionReturningFunction2.ts +++ b/tests/cases/compiler/contextualTypingFunctionReturningFunction2.ts @@ -1,3 +1,4 @@ +// @strict: false declare function f(n: number): void; declare function f(cb: () => (n: number) => number): void; diff --git a/tests/cases/compiler/contextualTypingOfAccessors.ts b/tests/cases/compiler/contextualTypingOfAccessors.ts index f8e20d5c4eff3..09345eebb1949 100644 --- a/tests/cases/compiler/contextualTypingOfAccessors.ts +++ b/tests/cases/compiler/contextualTypingOfAccessors.ts @@ -1,3 +1,4 @@ +// @strict: false // not contextually typing accessors var x: { diff --git a/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts b/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts index 475bdbacc44e4..3a6f2dc324e36 100644 --- a/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts +++ b/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [x: number]: Date; } diff --git a/tests/cases/compiler/contextualTypingOfConditionalExpression.ts b/tests/cases/compiler/contextualTypingOfConditionalExpression.ts index eaa48aca6b108..4fe6391e0b114 100644 --- a/tests/cases/compiler/contextualTypingOfConditionalExpression.ts +++ b/tests/cases/compiler/contextualTypingOfConditionalExpression.ts @@ -1,3 +1,4 @@ +// @strict: false var x: (a: number) => void = true ? (a) => a.toExponential() : (b) => b.toFixed(); class A { diff --git a/tests/cases/compiler/contextualTypingOfConditionalExpression2.ts b/tests/cases/compiler/contextualTypingOfConditionalExpression2.ts index eb3d534cbb338..9790b1e035731 100644 --- a/tests/cases/compiler/contextualTypingOfConditionalExpression2.ts +++ b/tests/cases/compiler/contextualTypingOfConditionalExpression2.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo: number; } diff --git a/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts b/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts index 9c483595a7618..32e307331ebd3 100644 --- a/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts +++ b/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts @@ -1,3 +1,4 @@ +// @strict: false interface Collection { length: number; add(x: T): void; diff --git a/tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts b/tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts index d23a2e9e57bdd..2b22f603654b2 100644 --- a/tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts +++ b/tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts @@ -1,3 +1,4 @@ +// @strict: false function callb(lam: (l: number) => void); function callb(lam: (n: string) => void); function callb(a) { } diff --git a/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts b/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts index a06f715014778..dfd8a8e1b0f9f 100644 --- a/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts +++ b/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false interface Foo { getFoo(n: number): void; getFoo(s: string): void; diff --git a/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts b/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts index 2fd03ef4d4cb1..84c2bb6532b23 100644 --- a/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts +++ b/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts @@ -1,3 +1,4 @@ +// @strict: false var f: { (x: string): string; (x: number): string diff --git a/tests/cases/compiler/contextualTypingOfObjectLiterals.ts b/tests/cases/compiler/contextualTypingOfObjectLiterals.ts index b7f57ab3caa53..353e24cf53e38 100644 --- a/tests/cases/compiler/contextualTypingOfObjectLiterals.ts +++ b/tests/cases/compiler/contextualTypingOfObjectLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false var obj1: { [x: string]: string; }; var obj2 = {x: ""}; obj1 = {}; // Ok diff --git a/tests/cases/compiler/contextualTypingOfObjectLiterals2.ts b/tests/cases/compiler/contextualTypingOfObjectLiterals2.ts index 2cc7da7bc2b87..d7169244c58b1 100644 --- a/tests/cases/compiler/contextualTypingOfObjectLiterals2.ts +++ b/tests/cases/compiler/contextualTypingOfObjectLiterals2.ts @@ -1,3 +1,4 @@ +// @strict: false interface Foo { foo: (t: string) => string; } diff --git a/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts b/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts index cbc0769bd6661..a39874bccb18d 100644 --- a/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts +++ b/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 // small repro from #11875 var use: Overload; diff --git a/tests/cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts b/tests/cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts index 86cbe8d5d5a49..235dd46e45824 100644 --- a/tests/cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts +++ b/tests/cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts @@ -1,3 +1,4 @@ +// @strict: false function f6(x: (a: T) => T) { return null; } diff --git a/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts b/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts index 3da3fa407c504..b8457bcf86a8f 100644 --- a/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts +++ b/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts @@ -1,3 +1,4 @@ +// @strict: false declare var f10: (x: T, b: () => (a: T) => void, y: T) => T; f10('', () => a => a.foo, ''); // a is "" var r9 = f10('', () => (a => a.foo), 1); // error \ No newline at end of file diff --git a/tests/cases/compiler/contextuallyTypingOrOperator.ts b/tests/cases/compiler/contextuallyTypingOrOperator.ts index c1d8f5e6bad19..e390c116e8025 100644 --- a/tests/cases/compiler/contextuallyTypingOrOperator.ts +++ b/tests/cases/compiler/contextuallyTypingOrOperator.ts @@ -1,3 +1,4 @@ +// @strict: false var v: { a: (_: string) => number } = { a: s => s.length } || { a: s => 1 }; var v2 = (s: string) => s.length || function (s) { s.length }; diff --git a/tests/cases/compiler/contextuallyTypingOrOperator2.ts b/tests/cases/compiler/contextuallyTypingOrOperator2.ts index a430fad56da6e..65e20539e3e95 100644 --- a/tests/cases/compiler/contextuallyTypingOrOperator2.ts +++ b/tests/cases/compiler/contextuallyTypingOrOperator2.ts @@ -1,3 +1,4 @@ +// @strict: false var v: { a: (_: string) => number } = { a: s => s.length } || { a: s => 1 }; var v2 = (s: string) => s.length || function (s) { s.aaa }; \ No newline at end of file diff --git a/tests/cases/compiler/contextuallyTypingOrOperator3.ts b/tests/cases/compiler/contextuallyTypingOrOperator3.ts index e1522d4607c29..acc3331d1deec 100644 --- a/tests/cases/compiler/contextuallyTypingOrOperator3.ts +++ b/tests/cases/compiler/contextuallyTypingOrOperator3.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(u: U) { var x3: U = u || u; } \ No newline at end of file diff --git a/tests/cases/compiler/controlFlowPropertyDeclarations.ts b/tests/cases/compiler/controlFlowPropertyDeclarations.ts index 5a5e9fb96bfa0..ef6830df7e7da 100644 --- a/tests/cases/compiler/controlFlowPropertyDeclarations.ts +++ b/tests/cases/compiler/controlFlowPropertyDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro from ##8913 declare var require:any; diff --git a/tests/cases/compiler/convertKeywordsYes.ts b/tests/cases/compiler/convertKeywordsYes.ts index feb273bb688fa..bd4dcda355217 100644 --- a/tests/cases/compiler/convertKeywordsYes.ts +++ b/tests/cases/compiler/convertKeywordsYes.ts @@ -1,3 +1,4 @@ +// @strict: false // reserved ES5 future in strict mode var constructor = 0; diff --git a/tests/cases/compiler/crashInEmitTokenWithComment.ts b/tests/cases/compiler/crashInEmitTokenWithComment.ts index 41d2ca1892933..407063f2fb63f 100644 --- a/tests/cases/compiler/crashInEmitTokenWithComment.ts +++ b/tests/cases/compiler/crashInEmitTokenWithComment.ts @@ -1,3 +1,4 @@ +// @strict: false // @noTypesAndSymbols: true // GH#32358 diff --git a/tests/cases/compiler/crashInresolveReturnStatement.ts b/tests/cases/compiler/crashInresolveReturnStatement.ts index 8e40c8489e783..a181b70269b26 100644 --- a/tests/cases/compiler/crashInresolveReturnStatement.ts +++ b/tests/cases/compiler/crashInresolveReturnStatement.ts @@ -1,3 +1,4 @@ +// @strict: false class WorkItemToolbar { public onToolbarItemClick() { WITDialogs.createCopyOfWorkItem(); diff --git a/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts b/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts index a2062ef6bda75..8a48b5f9212e3 100644 --- a/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts +++ b/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: esnext var nake; function doCompile(fileset: P0, moduleType: P1) { diff --git a/tests/cases/compiler/createArray.ts b/tests/cases/compiler/createArray.ts index dba269b07dc28..d332b7648a01b 100644 --- a/tests/cases/compiler/createArray.ts +++ b/tests/cases/compiler/createArray.ts @@ -1,3 +1,4 @@ +// @strict: false var na=new number[]; class C { diff --git a/tests/cases/compiler/declFileConstructSignatures.ts b/tests/cases/compiler/declFileConstructSignatures.ts index 717619e8b2f4d..dc2120cc1ce57 100644 --- a/tests/cases/compiler/declFileConstructSignatures.ts +++ b/tests/cases/compiler/declFileConstructSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts b/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts index 08e2af20a2e52..afc100e66b8f9 100644 --- a/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts +++ b/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @declaration: true namespace m3 { diff --git a/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts b/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts index c3c7794902082..6799e89daa263 100644 --- a/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts +++ b/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true class A { diff --git a/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts b/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts index 5ec6b42a711d4..a36d1afb0e56e 100644 --- a/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts +++ b/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true class C { diff --git a/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts b/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts index ef8a4d86c06df..3759cf554fe10 100644 --- a/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts +++ b/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface I { diff --git a/tests/cases/compiler/declFileForInterfaceWithRestParams.ts b/tests/cases/compiler/declFileForInterfaceWithRestParams.ts index 95956b77e05b9..89368c5579b32 100644 --- a/tests/cases/compiler/declFileForInterfaceWithRestParams.ts +++ b/tests/cases/compiler/declFileForInterfaceWithRestParams.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface I { diff --git a/tests/cases/compiler/declFileFunctions.ts b/tests/cases/compiler/declFileFunctions.ts index 4217fdf6e953b..a5e804940ab1f 100644 --- a/tests/cases/compiler/declFileFunctions.ts +++ b/tests/cases/compiler/declFileFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts b/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts index fbc78ef134449..f0a0290c440ef 100644 --- a/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts +++ b/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileOptionalInterfaceMethod.ts b/tests/cases/compiler/declFileOptionalInterfaceMethod.ts index 73eb40238a93a..5b170da766b9e 100644 --- a/tests/cases/compiler/declFileOptionalInterfaceMethod.ts +++ b/tests/cases/compiler/declFileOptionalInterfaceMethod.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface X { f? (); diff --git a/tests/cases/compiler/declFilePrivateMethodOverloads.ts b/tests/cases/compiler/declFilePrivateMethodOverloads.ts index 55bebeb9c8302..fbc863e05f291 100644 --- a/tests/cases/compiler/declFilePrivateMethodOverloads.ts +++ b/tests/cases/compiler/declFilePrivateMethodOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface IContext { diff --git a/tests/cases/compiler/declFilePrivateStatic.ts b/tests/cases/compiler/declFilePrivateStatic.ts index 0d64844ff99d2..10878218cbb23 100644 --- a/tests/cases/compiler/declFilePrivateStatic.ts +++ b/tests/cases/compiler/declFilePrivateStatic.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @target: es5 diff --git a/tests/cases/compiler/declFileRegressionTests.ts b/tests/cases/compiler/declFileRegressionTests.ts index 4d19696bacfa2..f91bc3f59e0d0 100644 --- a/tests/cases/compiler/declFileRegressionTests.ts +++ b/tests/cases/compiler/declFileRegressionTests.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // 'null' not converted to 'any' in d.ts // function types not piped through correctly diff --git a/tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts b/tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts index c398ffa1e3a11..fd131c7c03cd8 100644 --- a/tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts +++ b/tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function f1(...args) { } diff --git a/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts b/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts index 3b2344765794e..2ac0084e8ffe3 100644 --- a/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts +++ b/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts b/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts index 5af929c20166c..255e69f080fd8 100644 --- a/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts +++ b/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts index f43d2b1073c9f..01ed209152800 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeofFunction.ts b/tests/cases/compiler/declFileTypeofFunction.ts index 247de84e26ca9..e1f8238b6da74 100644 --- a/tests/cases/compiler/declFileTypeofFunction.ts +++ b/tests/cases/compiler/declFileTypeofFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function f(n: typeof f): string; diff --git a/tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts b/tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts index 2c1e9f518719b..1bafa1da252ed 100644 --- a/tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts +++ b/tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @Filename: declFile.d.ts diff --git a/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts b/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts index 7a79a1db225f5..07dc00b5cf919 100644 --- a/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts +++ b/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @outFile: out.js diff --git a/tests/cases/compiler/declInput-2.ts b/tests/cases/compiler/declInput-2.ts index 7a90a2f1a60aa..cd7a39ab35d41 100644 --- a/tests/cases/compiler/declInput-2.ts +++ b/tests/cases/compiler/declInput-2.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true namespace M { class C { } diff --git a/tests/cases/compiler/declInput.ts b/tests/cases/compiler/declInput.ts index e0234b9bee74c..f44d210460cbb 100644 --- a/tests/cases/compiler/declInput.ts +++ b/tests/cases/compiler/declInput.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface bar { diff --git a/tests/cases/compiler/declInput3.ts b/tests/cases/compiler/declInput3.ts index 4abbb9ba37327..ac0aa1c9c343c 100644 --- a/tests/cases/compiler/declInput3.ts +++ b/tests/cases/compiler/declInput3.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface bar2 { diff --git a/tests/cases/compiler/declInput4.ts b/tests/cases/compiler/declInput4.ts index 57f4c10ccd507..d8418cd9d48ca 100644 --- a/tests/cases/compiler/declInput4.ts +++ b/tests/cases/compiler/declInput4.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true namespace M { class C { } diff --git a/tests/cases/compiler/declarationEmitAliasExportStar.ts b/tests/cases/compiler/declarationEmitAliasExportStar.ts index f556e35aa0b20..9b56ed15253e7 100644 --- a/tests/cases/compiler/declarationEmitAliasExportStar.ts +++ b/tests/cases/compiler/declarationEmitAliasExportStar.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @filename: thingB.ts export interface ThingB { } diff --git a/tests/cases/compiler/declarationEmitBindingPatterns.ts b/tests/cases/compiler/declarationEmitBindingPatterns.ts index 16d380307fd76..1512096091f38 100644 --- a/tests/cases/compiler/declarationEmitBindingPatterns.ts +++ b/tests/cases/compiler/declarationEmitBindingPatterns.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true const k = ({x: z = 'y'}) => { } diff --git a/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts b/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts index 42fda3d008873..e4246a2c0814a 100644 --- a/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts +++ b/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @target: esnext // @skipLibCheck: false diff --git a/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts b/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts index 173b280cd5149..ea28769dbbdea 100644 --- a/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts +++ b/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @target: esnext // @skipLibCheck: false diff --git a/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts b/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts index 16f096d43ca19..5aa8bff365d0f 100644 --- a/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts +++ b/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts b/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts index 90b488ebec7d6..0c519a56226bf 100644 --- a/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts +++ b/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts b/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts index d6638ab8e3641..088c7cbcbd160 100644 --- a/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts +++ b/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @filename: foo.ts export class Foo {} diff --git a/tests/cases/compiler/declarationEmitDestructuring2.ts b/tests/cases/compiler/declarationEmitDestructuring2.ts index 34441cd6c7bd8..4ff66110425c3 100644 --- a/tests/cases/compiler/declarationEmitDestructuring2.ts +++ b/tests/cases/compiler/declarationEmitDestructuring2.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function f({x = 10, y: [a, b, c, d] = [1, 2, 3, 4]} = { x: 10, y: [2, 4, 6, 8] }) { } function g([a, b, c, d] = [1, 2, 3, 4]) { } diff --git a/tests/cases/compiler/declarationEmitDestructuring3.ts b/tests/cases/compiler/declarationEmitDestructuring3.ts index 78aeddb0e11bf..2fcde3b8492f9 100644 --- a/tests/cases/compiler/declarationEmitDestructuring3.ts +++ b/tests/cases/compiler/declarationEmitDestructuring3.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function bar([x, z, ...w]) { } function foo([x, ...y] = [1, "string", true]) { } diff --git a/tests/cases/compiler/declarationEmitNameConflicts2.ts b/tests/cases/compiler/declarationEmitNameConflicts2.ts index 9921b13c8957c..f13a273526031 100644 --- a/tests/cases/compiler/declarationEmitNameConflicts2.ts +++ b/tests/cases/compiler/declarationEmitNameConflicts2.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true namespace X.Y.base { export function f() { } diff --git a/tests/cases/compiler/declarationEmitProtectedMembers.ts b/tests/cases/compiler/declarationEmitProtectedMembers.ts index 8d40ecbe218fe..c48f0afbd78ed 100644 --- a/tests/cases/compiler/declarationEmitProtectedMembers.ts +++ b/tests/cases/compiler/declarationEmitProtectedMembers.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @target: es5 diff --git a/tests/cases/compiler/declarationMaps.ts b/tests/cases/compiler/declarationMaps.ts index d338b9993c714..bbff84ba1e027 100644 --- a/tests/cases/compiler/declarationMaps.ts +++ b/tests/cases/compiler/declarationMaps.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @declarationMap: true namespace m2 { diff --git a/tests/cases/compiler/declarationMapsMultifile.ts b/tests/cases/compiler/declarationMapsMultifile.ts index 43d77c4c49e1c..18026bc41a1a8 100644 --- a/tests/cases/compiler/declarationMapsMultifile.ts +++ b/tests/cases/compiler/declarationMapsMultifile.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @declarationMap: true // @filename: a.ts diff --git a/tests/cases/compiler/declarationMapsOutFile.ts b/tests/cases/compiler/declarationMapsOutFile.ts index b388d567ef335..b6edde8f80ff0 100644 --- a/tests/cases/compiler/declarationMapsOutFile.ts +++ b/tests/cases/compiler/declarationMapsOutFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @declarationMap: true // @module: amd diff --git a/tests/cases/compiler/declarationMapsOutFile2.ts b/tests/cases/compiler/declarationMapsOutFile2.ts index 713f6f5391044..8c939bef9edde 100644 --- a/tests/cases/compiler/declarationMapsOutFile2.ts +++ b/tests/cases/compiler/declarationMapsOutFile2.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @declarationMap: true // @outFile: bundle.js diff --git a/tests/cases/compiler/declarationMapsWithSourceMap.ts b/tests/cases/compiler/declarationMapsWithSourceMap.ts index 332ccb04fce36..b2360ad3bc5e4 100644 --- a/tests/cases/compiler/declarationMapsWithSourceMap.ts +++ b/tests/cases/compiler/declarationMapsWithSourceMap.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @declarationMap: true // @outFile: bundle.js diff --git a/tests/cases/compiler/declarationMapsWithoutDeclaration.ts b/tests/cases/compiler/declarationMapsWithoutDeclaration.ts index 5bdc359a01a6f..6105939b1d3b0 100644 --- a/tests/cases/compiler/declarationMapsWithoutDeclaration.ts +++ b/tests/cases/compiler/declarationMapsWithoutDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false // @declarationMap: true namespace m2 { export interface connectModule { diff --git a/tests/cases/compiler/declarationMerging1.ts b/tests/cases/compiler/declarationMerging1.ts index 256cacf4a524b..f109d4ab1dd45 100644 --- a/tests/cases/compiler/declarationMerging1.ts +++ b/tests/cases/compiler/declarationMerging1.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: file1.ts class A { protected _f: number; diff --git a/tests/cases/compiler/declarationMerging2.ts b/tests/cases/compiler/declarationMerging2.ts index 6be5f4d0e4d91..864b35e7a2b5a 100644 --- a/tests/cases/compiler/declarationMerging2.ts +++ b/tests/cases/compiler/declarationMerging2.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: a.ts diff --git a/tests/cases/compiler/declareAlreadySeen.ts b/tests/cases/compiler/declareAlreadySeen.ts index 2687582263797..3f197ad56f532 100644 --- a/tests/cases/compiler/declareAlreadySeen.ts +++ b/tests/cases/compiler/declareAlreadySeen.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { declare declare var x; declare declare function f(); diff --git a/tests/cases/compiler/declareFileExportAssignment.ts b/tests/cases/compiler/declareFileExportAssignment.ts index 19a4da31f08ec..e76d36d852069 100644 --- a/tests/cases/compiler/declareFileExportAssignment.ts +++ b/tests/cases/compiler/declareFileExportAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @declaration: true namespace m2 { diff --git a/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts b/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts index 3c591015ebcf6..64c698e971f1e 100644 --- a/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts +++ b/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @declaration: true namespace m2 { diff --git a/tests/cases/compiler/declaredExternalModule.ts b/tests/cases/compiler/declaredExternalModule.ts index c29439c25a9d5..5534adbfab9c3 100644 --- a/tests/cases/compiler/declaredExternalModule.ts +++ b/tests/cases/compiler/declaredExternalModule.ts @@ -1,3 +1,4 @@ +// @strict: false declare module 'connect' { interface connectModule { diff --git a/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts b/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts index 622dc1d28c163..17735fb400e3d 100644 --- a/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts +++ b/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false declare module 'connect' { interface connectModule { (res, req, next): void; diff --git a/tests/cases/compiler/decoratorMetadataNoStrictNull.ts b/tests/cases/compiler/decoratorMetadataNoStrictNull.ts index 4ac608ebd7445..1a292036acc8d 100644 --- a/tests/cases/compiler/decoratorMetadataNoStrictNull.ts +++ b/tests/cases/compiler/decoratorMetadataNoStrictNull.ts @@ -1,3 +1,4 @@ +// @strict: false // @experimentalDecorators: true // @emitDecoratorMetadata: true const dec = (obj: {}, prop: string) => undefined diff --git a/tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts b/tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts index 6908423e426a1..0dc111267f62a 100644 --- a/tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts +++ b/tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts @@ -1,3 +1,4 @@ +// @strict: false // @experimentalDecorators: true // @emitDecoratorMetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts index 8d198e44752f5..b9fccbd42ca2f 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts index ac097dd3ba452..fe41f67353d14 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts index e15570cb5baae..0f1bf86aa352b 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts index d04d1300531da..b1adf25a05593 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts index 24934963b3e12..bec73c38baa6f 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts index 2043279c4aaf2..9b4e54f63dd7d 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts index bbedf61c6dfc5..dac2ca67b0cea 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts index e3318d813a87b..f2b14890acd9d 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts @@ -1,3 +1,4 @@ +// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts b/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts index c7465471ed855..4284b575bb0a9 100644 --- a/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts +++ b/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // https://github.com/Microsoft/TypeScript/issues/19799 // @experimentalDecorators: true // @emitDecoratorMetadata: true diff --git a/tests/cases/compiler/decoratorReferences.ts b/tests/cases/compiler/decoratorReferences.ts index faa257983d20f..569b1ea23f9f8 100644 --- a/tests/cases/compiler/decoratorReferences.ts +++ b/tests/cases/compiler/decoratorReferences.ts @@ -1,3 +1,4 @@ +// @strict: false // @experimentalDecorators: true declare function y(...args: any[]): any; diff --git a/tests/cases/compiler/decrementAndIncrementOperators.ts b/tests/cases/compiler/decrementAndIncrementOperators.ts index a31e5243d1931..e29b2ee784b02 100644 --- a/tests/cases/compiler/decrementAndIncrementOperators.ts +++ b/tests/cases/compiler/decrementAndIncrementOperators.ts @@ -1,3 +1,4 @@ +// @strict: false var x = 0; // errors diff --git a/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts b/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts index d82fae46744b6..23248514e124d 100644 --- a/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts +++ b/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/defaultArgsInFunctionExpressions.ts b/tests/cases/compiler/defaultArgsInFunctionExpressions.ts index cfbdb9a55b3f0..ab73fea6f46f4 100644 --- a/tests/cases/compiler/defaultArgsInFunctionExpressions.ts +++ b/tests/cases/compiler/defaultArgsInFunctionExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false var f = function (a = 3) { return a; }; // Type should be (a?: number) => number var n: number = f(4); n = f(); diff --git a/tests/cases/compiler/defaultArgsInOverloads.ts b/tests/cases/compiler/defaultArgsInOverloads.ts index 63c03a3d12ec1..62b8de87589f2 100644 --- a/tests/cases/compiler/defaultArgsInOverloads.ts +++ b/tests/cases/compiler/defaultArgsInOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false function fun(a: string); function fun(a = 3); function fun(a = null) { } diff --git a/tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts b/tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts index 254197bf30986..6de7e80141e45 100644 --- a/tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts +++ b/tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts @@ -1,3 +1,4 @@ +// @strict: false var obj1: {}; obj1.length; diff --git a/tests/cases/compiler/defaultIndexProps2.ts b/tests/cases/compiler/defaultIndexProps2.ts index 35abeca3f876f..61973f5c3b8cb 100644 --- a/tests/cases/compiler/defaultIndexProps2.ts +++ b/tests/cases/compiler/defaultIndexProps2.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { public v = "Yo"; } diff --git a/tests/cases/compiler/defaultValueInFunctionOverload1.ts b/tests/cases/compiler/defaultValueInFunctionOverload1.ts index e38f8b9848c8b..47b973f1067cb 100644 --- a/tests/cases/compiler/defaultValueInFunctionOverload1.ts +++ b/tests/cases/compiler/defaultValueInFunctionOverload1.ts @@ -1,2 +1,3 @@ +// @strict: false function foo(x: string = ''); function foo(x = '') { } \ No newline at end of file diff --git a/tests/cases/compiler/defineVariables_useDefineForClassFields.ts b/tests/cases/compiler/defineVariables_useDefineForClassFields.ts index 4d161a5c9a0e6..4e40c4228875e 100644 --- a/tests/cases/compiler/defineVariables_useDefineForClassFields.ts +++ b/tests/cases/compiler/defineVariables_useDefineForClassFields.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ESNext // @useDefineForClassFields: true diff --git a/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts b/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts index 4f7f594363a25..c63982da33940 100644 --- a/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts +++ b/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @useDefineForClassFields: true class C { diff --git a/tests/cases/compiler/deleteReadonly.ts b/tests/cases/compiler/deleteReadonly.ts index cdab3f2eb234d..887dbb340d505 100644 --- a/tests/cases/compiler/deleteReadonly.ts +++ b/tests/cases/compiler/deleteReadonly.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { readonly b } diff --git a/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts b/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts index ff875f23c1d7f..424090a0ae6f4 100644 --- a/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts +++ b/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts @@ -1,3 +1,4 @@ +// @strict: false interface MyInterface { myMethod(...myList: any[]); } diff --git a/tests/cases/compiler/destructuringControlFlowNoCrash.ts b/tests/cases/compiler/destructuringControlFlowNoCrash.ts index a8a2d05b73edb..6ede0f6cda490 100644 --- a/tests/cases/compiler/destructuringControlFlowNoCrash.ts +++ b/tests/cases/compiler/destructuringControlFlowNoCrash.ts @@ -1,3 +1,4 @@ +// @strict: false // legal JS, if nonsensical, which also triggers the issue const { diff --git a/tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts b/tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts index 84a72d3595bb9..cf793cd39ca92 100644 --- a/tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts +++ b/tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts @@ -1,3 +1,4 @@ +// @strict: false class TestFile { public message: string; public name; diff --git a/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts b/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts index 0c754c740c4a5..8f11dc71c00cd 100644 --- a/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts +++ b/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es2015 // es2016 diff --git a/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts b/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts index e7dddbf24f10c..68ad884e23385 100644 --- a/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts +++ b/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts @@ -1,3 +1,4 @@ +// @strict: false var f: { x: number; <- diff --git a/tests/cases/compiler/dottedModuleName.ts b/tests/cases/compiler/dottedModuleName.ts index 5caff45d58dee..c7f0a1e8d5810 100644 --- a/tests/cases/compiler/dottedModuleName.ts +++ b/tests/cases/compiler/dottedModuleName.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export namespace N { export function f(x:number)=>2*x; diff --git a/tests/cases/compiler/dottedModuleName2.ts b/tests/cases/compiler/dottedModuleName2.ts index a68e65c6c1640..8c2e269892953 100644 --- a/tests/cases/compiler/dottedModuleName2.ts +++ b/tests/cases/compiler/dottedModuleName2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A.B { export var x = 1; diff --git a/tests/cases/compiler/downlevelLetConst14.ts b/tests/cases/compiler/downlevelLetConst14.ts index 0a77883809618..9f003bc3ff954 100644 --- a/tests/cases/compiler/downlevelLetConst14.ts +++ b/tests/cases/compiler/downlevelLetConst14.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 'use strict' declare function use(a: any); diff --git a/tests/cases/compiler/downlevelLetConst15.ts b/tests/cases/compiler/downlevelLetConst15.ts index abe06e1709bd9..3468b1cba8d5b 100644 --- a/tests/cases/compiler/downlevelLetConst15.ts +++ b/tests/cases/compiler/downlevelLetConst15.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 'use strict' declare function use(a: any); diff --git a/tests/cases/compiler/downlevelLetConst16.ts b/tests/cases/compiler/downlevelLetConst16.ts index 4a2bc0a055cdb..77d5147bacd7b 100644 --- a/tests/cases/compiler/downlevelLetConst16.ts +++ b/tests/cases/compiler/downlevelLetConst16.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 // @allowUnreachableCode: true diff --git a/tests/cases/compiler/downlevelLetConst17.ts b/tests/cases/compiler/downlevelLetConst17.ts index 7cea2031ac5b6..82f594c9a2b3e 100644 --- a/tests/cases/compiler/downlevelLetConst17.ts +++ b/tests/cases/compiler/downlevelLetConst17.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 // @allowUnreachableCode: true 'use strict' diff --git a/tests/cases/compiler/downlevelLetConst18.ts b/tests/cases/compiler/downlevelLetConst18.ts index 61cb2f46cc987..585f15acf8ca6 100644 --- a/tests/cases/compiler/downlevelLetConst18.ts +++ b/tests/cases/compiler/downlevelLetConst18.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 // @allowUnreachableCode: true diff --git a/tests/cases/compiler/downlevelLetConst19.ts b/tests/cases/compiler/downlevelLetConst19.ts index e7aa48421f740..c0ba694098085 100644 --- a/tests/cases/compiler/downlevelLetConst19.ts +++ b/tests/cases/compiler/downlevelLetConst19.ts @@ -1,3 +1,4 @@ +// @strict: false 'use strict' declare function use(a: any); var x; diff --git a/tests/cases/compiler/duplicateClassElements.ts b/tests/cases/compiler/duplicateClassElements.ts index 6e46c106fa3a4..0cbc122685a33 100644 --- a/tests/cases/compiler/duplicateClassElements.ts +++ b/tests/cases/compiler/duplicateClassElements.ts @@ -1,3 +1,4 @@ +// @strict: false class a { public a; public a; diff --git a/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts b/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts index 67ec8e1a19fb9..8200ce39f4784 100644 --- a/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts +++ b/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts @@ -1,3 +1,4 @@ +// @strict: false // Not OK interface B { x; } interface B { x?; } diff --git a/tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts b/tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts index 81f45ff82e3a7..270afcc68f536 100644 --- a/tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts +++ b/tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export interface I { } } diff --git a/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts b/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts index 005bfd306d177..c7523ce31950d 100644 --- a/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts +++ b/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @Filename: file1.ts diff --git a/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts b/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts index dd9f6cc09f32b..51b3f0c2499fd 100644 --- a/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts +++ b/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts @@ -1,3 +1,4 @@ +// @strict: false if (1) const enum A {} else diff --git a/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts b/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts index f58e9b704d48e..1835876780fe3 100644 --- a/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts +++ b/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts @@ -1,3 +1,4 @@ +// @strict: false // @experimentaldecorators: true // @emitdecoratormetadata: true // @target: ES5 diff --git a/tests/cases/compiler/emitThisInObjectLiteralGetter.ts b/tests/cases/compiler/emitThisInObjectLiteralGetter.ts index 8927891bd989c..4d6001f95e09d 100644 --- a/tests/cases/compiler/emitThisInObjectLiteralGetter.ts +++ b/tests/cases/compiler/emitThisInObjectLiteralGetter.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 const example = { get foo() { diff --git a/tests/cases/compiler/emptyArgumentsListComment.ts b/tests/cases/compiler/emptyArgumentsListComment.ts index 4a435018f6900..95a72a33fbff3 100644 --- a/tests/cases/compiler/emptyArgumentsListComment.ts +++ b/tests/cases/compiler/emptyArgumentsListComment.ts @@ -1,3 +1,4 @@ +// @strict: false declare var a; a(/*1*/); diff --git a/tests/cases/compiler/enumBasics1.ts b/tests/cases/compiler/enumBasics1.ts index b3614d5bcc2b9..70091093bf940 100644 --- a/tests/cases/compiler/enumBasics1.ts +++ b/tests/cases/compiler/enumBasics1.ts @@ -1,3 +1,4 @@ +// @strict: false enum E { A = 1, B, diff --git a/tests/cases/compiler/enumBasics2.ts b/tests/cases/compiler/enumBasics2.ts index 5a957b9170df0..7abe73bdd65b1 100644 --- a/tests/cases/compiler/enumBasics2.ts +++ b/tests/cases/compiler/enumBasics2.ts @@ -1,3 +1,4 @@ +// @strict: false enum Foo { a = 2, b = 3, diff --git a/tests/cases/compiler/enumBasics3.ts b/tests/cases/compiler/enumBasics3.ts index d39c1c6f0283f..e111fe4e6a02d 100644 --- a/tests/cases/compiler/enumBasics3.ts +++ b/tests/cases/compiler/enumBasics3.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export namespace N { export enum E1 { diff --git a/tests/cases/compiler/enumIndexer.ts b/tests/cases/compiler/enumIndexer.ts index 2a156782c4e57..03db00ba75f3b 100644 --- a/tests/cases/compiler/enumIndexer.ts +++ b/tests/cases/compiler/enumIndexer.ts @@ -1,3 +1,4 @@ +// @strict: false enum MyEnumType { foo, bar } diff --git a/tests/cases/compiler/errorElaboration.ts b/tests/cases/compiler/errorElaboration.ts index 2acbbce84ce4a..c5b4d95c9b7f5 100644 --- a/tests/cases/compiler/errorElaboration.ts +++ b/tests/cases/compiler/errorElaboration.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro for #5712 interface Ref { diff --git a/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts b/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts index 1045fd95cad73..a3b038cb30c90 100644 --- a/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts +++ b/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x: T) { x = { a: "abc", b: 20, c: 30 }; } diff --git a/tests/cases/compiler/errorForConflictingExportEqualsValue.ts b/tests/cases/compiler/errorForConflictingExportEqualsValue.ts index a91ecc390b5a9..c4620fddd2bc2 100644 --- a/tests/cases/compiler/errorForConflictingExportEqualsValue.ts +++ b/tests/cases/compiler/errorForConflictingExportEqualsValue.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es6 // @Filename: /a.ts export var x; diff --git a/tests/cases/compiler/errorMessagesIntersectionTypes03.ts b/tests/cases/compiler/errorMessagesIntersectionTypes03.ts index 73969bc17b300..8fd96da184f50 100644 --- a/tests/cases/compiler/errorMessagesIntersectionTypes03.ts +++ b/tests/cases/compiler/errorMessagesIntersectionTypes03.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { a; } diff --git a/tests/cases/compiler/errorMessagesIntersectionTypes04.ts b/tests/cases/compiler/errorMessagesIntersectionTypes04.ts index 74dcfa658e7b5..273b7db071649 100644 --- a/tests/cases/compiler/errorMessagesIntersectionTypes04.ts +++ b/tests/cases/compiler/errorMessagesIntersectionTypes04.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { a; } diff --git a/tests/cases/compiler/errorsInGenericTypeReference.ts b/tests/cases/compiler/errorsInGenericTypeReference.ts index 7b385feb2dc09..49d7202fec4e8 100644 --- a/tests/cases/compiler/errorsInGenericTypeReference.ts +++ b/tests/cases/compiler/errorsInGenericTypeReference.ts @@ -1,3 +1,4 @@ +// @strict: false interface IFoo { } diff --git a/tests/cases/compiler/es5-asyncFunction.ts b/tests/cases/compiler/es5-asyncFunction.ts index 2ee2ccb3f91d9..9496f393c0164 100644 --- a/tests/cases/compiler/es5-asyncFunction.ts +++ b/tests/cases/compiler/es5-asyncFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @target: ES5 declare var x; diff --git a/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts b/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts index 69240010c2759..462e516b426fd 100644 --- a/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts +++ b/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts b/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts index 6d8afb166c076..d1678c5fcacd0 100644 --- a/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @allowUnreachableCode: true diff --git a/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts b/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts index 7b748b95bdf9f..8cdb107df8ae2 100644 --- a/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionConditionals.ts b/tests/cases/compiler/es5-asyncFunctionConditionals.ts index fbc577b983347..c8a5708be7f23 100644 --- a/tests/cases/compiler/es5-asyncFunctionConditionals.ts +++ b/tests/cases/compiler/es5-asyncFunctionConditionals.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionDoStatements.ts b/tests/cases/compiler/es5-asyncFunctionDoStatements.ts index 6501e27769fb1..32a680c55158a 100644 --- a/tests/cases/compiler/es5-asyncFunctionDoStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionDoStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionElementAccess.ts b/tests/cases/compiler/es5-asyncFunctionElementAccess.ts index 01372b43f5eb3..86f831122d4f7 100644 --- a/tests/cases/compiler/es5-asyncFunctionElementAccess.ts +++ b/tests/cases/compiler/es5-asyncFunctionElementAccess.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionForInStatements.ts b/tests/cases/compiler/es5-asyncFunctionForInStatements.ts index b1593041080d1..6d38b35d41d68 100644 --- a/tests/cases/compiler/es5-asyncFunctionForInStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForInStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts b/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts index d741c55e31e98..c3a949a237aad 100644 --- a/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionForStatements.ts b/tests/cases/compiler/es5-asyncFunctionForStatements.ts index 4fddf395588f2..e011b49af9f67 100644 --- a/tests/cases/compiler/es5-asyncFunctionForStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionHoisting.ts b/tests/cases/compiler/es5-asyncFunctionHoisting.ts index 7c05372ada9d3..6f217181558a0 100644 --- a/tests/cases/compiler/es5-asyncFunctionHoisting.ts +++ b/tests/cases/compiler/es5-asyncFunctionHoisting.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionIfStatements.ts b/tests/cases/compiler/es5-asyncFunctionIfStatements.ts index 65bda05ee7954..fa9f9911b5df1 100644 --- a/tests/cases/compiler/es5-asyncFunctionIfStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionIfStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts b/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts index 563f81a0b55a0..e062de41ded35 100644 --- a/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts +++ b/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts b/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts index dd6f3126bcf10..1c8652b4a58f8 100644 --- a/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts +++ b/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts b/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts index d7f0da9f433e8..367968124cf66 100644 --- a/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts b/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts index 42d03f90494c7..4c8f48ea2d897 100644 --- a/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts +++ b/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts b/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts index 3541c1b354b36..80ecf24c528a9 100644 --- a/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts +++ b/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts b/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts index 944c61b568c6e..75d05deee6b30 100644 --- a/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts b/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts index b321c7115ce28..18cbcec9b6d9c 100644 --- a/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionTryStatements.ts b/tests/cases/compiler/es5-asyncFunctionTryStatements.ts index 0d14b5f4242c2..24648d03a3910 100644 --- a/tests/cases/compiler/es5-asyncFunctionTryStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionTryStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts b/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts index d31ab21ab7bf7..c2fb2dd6e69ba 100644 --- a/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-asyncFunctionWithStatements.ts b/tests/cases/compiler/es5-asyncFunctionWithStatements.ts index c82901ac9fd1e..4f02528a4dc2d 100644 --- a/tests/cases/compiler/es5-asyncFunctionWithStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionWithStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es5-commonjs7.ts b/tests/cases/compiler/es5-commonjs7.ts index 0ad10c1822dac..e7d56da3d6ceb 100644 --- a/tests/cases/compiler/es5-commonjs7.ts +++ b/tests/cases/compiler/es5-commonjs7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @sourcemap: false // @declaration: false diff --git a/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts b/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts index f6a00a3f956ae..ab7854f33a0b6 100644 --- a/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts +++ b/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.promise // @noEmitHelpers: true // @target: ES5 diff --git a/tests/cases/compiler/es6ClassTest.ts b/tests/cases/compiler/es6ClassTest.ts index 73d1c2bc6f0e9..3ce0a3084ea53 100644 --- a/tests/cases/compiler/es6ClassTest.ts +++ b/tests/cases/compiler/es6ClassTest.ts @@ -1,3 +1,4 @@ +// @strict: false class Bar { public goo: number; public prop1(x) { diff --git a/tests/cases/compiler/es6ClassTest2.ts b/tests/cases/compiler/es6ClassTest2.ts index ff235670b69ca..09c1faad3bde0 100644 --- a/tests/cases/compiler/es6ClassTest2.ts +++ b/tests/cases/compiler/es6ClassTest2.ts @@ -1,3 +1,4 @@ +// @strict: false class BasicMonster { constructor(public name: string, public health: number) { diff --git a/tests/cases/compiler/es6ClassTest3.ts b/tests/cases/compiler/es6ClassTest3.ts index 392acbe952911..4cc0ca3f1f7dd 100644 --- a/tests/cases/compiler/es6ClassTest3.ts +++ b/tests/cases/compiler/es6ClassTest3.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { class Visibility { public foo() { }; diff --git a/tests/cases/compiler/es6ClassTest4.ts b/tests/cases/compiler/es6ClassTest4.ts index 6b16c82d19ad0..3f7a2e22bd8d8 100644 --- a/tests/cases/compiler/es6ClassTest4.ts +++ b/tests/cases/compiler/es6ClassTest4.ts @@ -1,3 +1,4 @@ +// @strict: false declare class Point { x: number; diff --git a/tests/cases/compiler/es6ClassTest5.ts b/tests/cases/compiler/es6ClassTest5.ts index 51b37575b0d43..7fb022bbc795c 100644 --- a/tests/cases/compiler/es6ClassTest5.ts +++ b/tests/cases/compiler/es6ClassTest5.ts @@ -1,3 +1,4 @@ +// @strict: false class C1T5 { foo: (i: number, s: string) => number = (i) => { diff --git a/tests/cases/compiler/es6ClassTest7.ts b/tests/cases/compiler/es6ClassTest7.ts index 1cfdb3dcf5e3d..a464fd863d903 100644 --- a/tests/cases/compiler/es6ClassTest7.ts +++ b/tests/cases/compiler/es6ClassTest7.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace M { export class Foo { } diff --git a/tests/cases/compiler/es6ClassTest8.ts b/tests/cases/compiler/es6ClassTest8.ts index da50c8adfeca5..3492a6414f1c2 100644 --- a/tests/cases/compiler/es6ClassTest8.ts +++ b/tests/cases/compiler/es6ClassTest8.ts @@ -1,3 +1,4 @@ +// @strict: false function f1(x:any) {return x;} class C { diff --git a/tests/cases/compiler/es6ClassTest9.ts b/tests/cases/compiler/es6ClassTest9.ts index d8f826c93965c..69e58aed783e3 100644 --- a/tests/cases/compiler/es6ClassTest9.ts +++ b/tests/cases/compiler/es6ClassTest9.ts @@ -1,2 +1,3 @@ +// @strict: false declare class foo(); function foo() {} diff --git a/tests/cases/compiler/es6ExportEqualsInterop.ts b/tests/cases/compiler/es6ExportEqualsInterop.ts index 26fec1a30de31..a41a7e6d24412 100644 --- a/tests/cases/compiler/es6ExportEqualsInterop.ts +++ b/tests/cases/compiler/es6ExportEqualsInterop.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: modules.d.ts diff --git a/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts b/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts index b7f6ce748c3c2..1614e56d2a204 100644 --- a/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts +++ b/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts @@ -1,3 +1,4 @@ +// @strict: false // @esModuleInterop: true // @importHelpers: true // @noEmitHelpers: true diff --git a/tests/cases/compiler/evalAfter0.ts b/tests/cases/compiler/evalAfter0.ts index 8b9ac51d5d473..2b3fafeba0ae0 100644 --- a/tests/cases/compiler/evalAfter0.ts +++ b/tests/cases/compiler/evalAfter0.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: false (0,eval)("10"); // fine: special case for eval diff --git a/tests/cases/compiler/excessPropertyCheckWithSpread.ts b/tests/cases/compiler/excessPropertyCheckWithSpread.ts index 11c573b4ce4da..0b4a9c0271b59 100644 --- a/tests/cases/compiler/excessPropertyCheckWithSpread.ts +++ b/tests/cases/compiler/excessPropertyCheckWithSpread.ts @@ -1,3 +1,4 @@ +// @strict: false declare function f({ a: number }): void interface I { readonly n: number; diff --git a/tests/cases/compiler/expandoFunctionContextualTypesJs.ts b/tests/cases/compiler/expandoFunctionContextualTypesJs.ts index e69f3dc79c470..8f199937fb9b5 100644 --- a/tests/cases/compiler/expandoFunctionContextualTypesJs.ts +++ b/tests/cases/compiler/expandoFunctionContextualTypesJs.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/expandoFunctionNestedAssigments.ts b/tests/cases/compiler/expandoFunctionNestedAssigments.ts index 7448ba939dcba..0adab6f84a153 100644 --- a/tests/cases/compiler/expandoFunctionNestedAssigments.ts +++ b/tests/cases/compiler/expandoFunctionNestedAssigments.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: esnext // @declaration: true diff --git a/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts b/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts index a0375921bf6b5..ad4ef67f32679 100644 --- a/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts +++ b/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: esnext // @declaration: true diff --git a/tests/cases/compiler/exportAlreadySeen.ts b/tests/cases/compiler/exportAlreadySeen.ts index 188ef2be4ddfc..3eb4819c288ed 100644 --- a/tests/cases/compiler/exportAlreadySeen.ts +++ b/tests/cases/compiler/exportAlreadySeen.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export export var x = 1; export export function f() { } diff --git a/tests/cases/compiler/exportAsNamespace.d.ts b/tests/cases/compiler/exportAsNamespace.d.ts index 755d4fdb2a957..c5e1d80936a39 100644 --- a/tests/cases/compiler/exportAsNamespace.d.ts +++ b/tests/cases/compiler/exportAsNamespace.d.ts @@ -1,3 +1,4 @@ +// @strict: false // issue: https://github.com/Microsoft/TypeScript/issues/11545 export var X; diff --git a/tests/cases/compiler/exportAssignmentError.ts b/tests/cases/compiler/exportAssignmentError.ts index 69d4777cda25f..a4b2de211614d 100644 --- a/tests/cases/compiler/exportAssignmentError.ts +++ b/tests/cases/compiler/exportAssignmentError.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @Filename: exportEqualsModule_A.ts namespace M { diff --git a/tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts b/tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts index 0ce4792ca9d15..a43cffee095e2 100644 --- a/tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts +++ b/tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: assignment.ts export default { foo: 12 diff --git a/tests/cases/compiler/exportAssignmentInternalModule.ts b/tests/cases/compiler/exportAssignmentInternalModule.ts index e1ef4fcc6d4cb..e376d97c4641c 100644 --- a/tests/cases/compiler/exportAssignmentInternalModule.ts +++ b/tests/cases/compiler/exportAssignmentInternalModule.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @Filename: exportAssignmentInternalModule_A.ts namespace M { diff --git a/tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts b/tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts index 1d7a9f3bbc25a..11d227dc91422 100644 --- a/tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts +++ b/tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd namespace m2 { export interface connectModule { diff --git a/tests/cases/compiler/exportAssignmentWithPrivacyError.ts b/tests/cases/compiler/exportAssignmentWithPrivacyError.ts index 2b14ba10f12fd..2b755dee3caa3 100644 --- a/tests/cases/compiler/exportAssignmentWithPrivacyError.ts +++ b/tests/cases/compiler/exportAssignmentWithPrivacyError.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd interface connectmodule { (res, req, next): void; diff --git a/tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts b/tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts index b978cb09bb1bc..c96c7f654a8a0 100644 --- a/tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts +++ b/tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs function Greeter() { //... diff --git a/tests/cases/compiler/exportDeclareClass1.ts b/tests/cases/compiler/exportDeclareClass1.ts index 9230eda30aaed..e4925cb659f30 100644 --- a/tests/cases/compiler/exportDeclareClass1.ts +++ b/tests/cases/compiler/exportDeclareClass1.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs export declare class eaC { static tF() { }; diff --git a/tests/cases/compiler/exportEqualErrorType.ts b/tests/cases/compiler/exportEqualErrorType.ts index 0c741b2b058af..90677555e52c5 100644 --- a/tests/cases/compiler/exportEqualErrorType.ts +++ b/tests/cases/compiler/exportEqualErrorType.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @Filename: exportEqualErrorType_0.ts namespace server { diff --git a/tests/cases/compiler/exportEqualMemberMissing.ts b/tests/cases/compiler/exportEqualMemberMissing.ts index 348bb7dd2f117..86530f98bd617 100644 --- a/tests/cases/compiler/exportEqualMemberMissing.ts +++ b/tests/cases/compiler/exportEqualMemberMissing.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: exportEqualMemberMissing_0.ts namespace server { diff --git a/tests/cases/compiler/exportImportMultipleFiles.ts b/tests/cases/compiler/exportImportMultipleFiles.ts index fb93ebfc3b497..d199c72392843 100644 --- a/tests/cases/compiler/exportImportMultipleFiles.ts +++ b/tests/cases/compiler/exportImportMultipleFiles.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @Filename: exportImportMultipleFiles_math.ts export function add(a, b) { return a + b; } diff --git a/tests/cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts b/tests/cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts index 54c161af447f9..c2d7572c08fab 100644 --- a/tests/cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts +++ b/tests/cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false declare module "m2" { export namespace X { interface I { } diff --git a/tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts b/tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts index cb781c36ba57c..1734dd07288c5 100644 --- a/tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts +++ b/tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false declare module "m2" { namespace X { interface I { } diff --git a/tests/cases/compiler/exportStarForValues.ts b/tests/cases/compiler/exportStarForValues.ts index 3432548c5286e..f72c3b425ea34 100644 --- a/tests/cases/compiler/exportStarForValues.ts +++ b/tests/cases/compiler/exportStarForValues.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues10.ts b/tests/cases/compiler/exportStarForValues10.ts index 82cee772b18d0..61e0e088c1237 100644 --- a/tests/cases/compiler/exportStarForValues10.ts +++ b/tests/cases/compiler/exportStarForValues10.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @filename: file0.ts diff --git a/tests/cases/compiler/exportStarForValues2.ts b/tests/cases/compiler/exportStarForValues2.ts index 63a880cce0a8f..13f817f786f20 100644 --- a/tests/cases/compiler/exportStarForValues2.ts +++ b/tests/cases/compiler/exportStarForValues2.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues3.ts b/tests/cases/compiler/exportStarForValues3.ts index f0c36db0bda04..cf0834e70db7b 100644 --- a/tests/cases/compiler/exportStarForValues3.ts +++ b/tests/cases/compiler/exportStarForValues3.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues4.ts b/tests/cases/compiler/exportStarForValues4.ts index d685ba1c8a37b..81e52c0db1946 100644 --- a/tests/cases/compiler/exportStarForValues4.ts +++ b/tests/cases/compiler/exportStarForValues4.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues5.ts b/tests/cases/compiler/exportStarForValues5.ts index cb716c720021a..712d3cf6d8716 100644 --- a/tests/cases/compiler/exportStarForValues5.ts +++ b/tests/cases/compiler/exportStarForValues5.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues6.ts b/tests/cases/compiler/exportStarForValues6.ts index a623e31f1782f..59696b240b2a0 100644 --- a/tests/cases/compiler/exportStarForValues6.ts +++ b/tests/cases/compiler/exportStarForValues6.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues7.ts b/tests/cases/compiler/exportStarForValues7.ts index c1343a44119ca..744e4962a1f90 100644 --- a/tests/cases/compiler/exportStarForValues7.ts +++ b/tests/cases/compiler/exportStarForValues7.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues8.ts b/tests/cases/compiler/exportStarForValues8.ts index 0594f8b0877f9..26a67ece3245a 100644 --- a/tests/cases/compiler/exportStarForValues8.ts +++ b/tests/cases/compiler/exportStarForValues8.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues9.ts b/tests/cases/compiler/exportStarForValues9.ts index 53ffb1b79544e..139109cc3cd47 100644 --- a/tests/cases/compiler/exportStarForValues9.ts +++ b/tests/cases/compiler/exportStarForValues9.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValuesInSystem.ts b/tests/cases/compiler/exportStarForValuesInSystem.ts index 1f60e8dec6fab..5f953b38e31a5 100644 --- a/tests/cases/compiler/exportStarForValuesInSystem.ts +++ b/tests/cases/compiler/exportStarForValuesInSystem.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarFromEmptyModule.ts b/tests/cases/compiler/exportStarFromEmptyModule.ts index 8e4ea8a7b214e..5eac2fabe810c 100644 --- a/tests/cases/compiler/exportStarFromEmptyModule.ts +++ b/tests/cases/compiler/exportStarFromEmptyModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/exportedBlockScopedDeclarations.ts b/tests/cases/compiler/exportedBlockScopedDeclarations.ts index 54f43adfe75bf..52d1e70eaf032 100644 --- a/tests/cases/compiler/exportedBlockScopedDeclarations.ts +++ b/tests/cases/compiler/exportedBlockScopedDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: esnext const foo = foo; // compile error export const bar = bar; // should be compile error diff --git a/tests/cases/compiler/expressionTypeNodeShouldError.ts b/tests/cases/compiler/expressionTypeNodeShouldError.ts index 0f6463f454b66..fdc8b2b4501e3 100644 --- a/tests/cases/compiler/expressionTypeNodeShouldError.ts +++ b/tests/cases/compiler/expressionTypeNodeShouldError.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: base.d.ts declare const x: "foo".charCodeAt(0); diff --git a/tests/cases/compiler/expressionsForbiddenInParameterInitializers.ts b/tests/cases/compiler/expressionsForbiddenInParameterInitializers.ts index ea4dce154086d..89d5a73f6af40 100644 --- a/tests/cases/compiler/expressionsForbiddenInParameterInitializers.ts +++ b/tests/cases/compiler/expressionsForbiddenInParameterInitializers.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es6 // @filename: bar.ts export async function foo({ foo = await import("./bar") }) { diff --git a/tests/cases/compiler/extendArray.ts b/tests/cases/compiler/extendArray.ts index 781765257b5e1..5837bf712ece5 100644 --- a/tests/cases/compiler/extendArray.ts +++ b/tests/cases/compiler/extendArray.ts @@ -1,3 +1,4 @@ +// @strict: false var a = [1,2]; a.forEach(function (v,i,a) {}); diff --git a/tests/cases/compiler/extendGlobalThis.ts b/tests/cases/compiler/extendGlobalThis.ts index 1ad9f0552b4d6..7e0814fcbb90e 100644 --- a/tests/cases/compiler/extendGlobalThis.ts +++ b/tests/cases/compiler/extendGlobalThis.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: extension.d.ts declare global { namespace globalThis { diff --git a/tests/cases/compiler/extendGlobalThis2.ts b/tests/cases/compiler/extendGlobalThis2.ts index 4949c91cf22eb..1952c193951e4 100644 --- a/tests/cases/compiler/extendGlobalThis2.ts +++ b/tests/cases/compiler/extendGlobalThis2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace globalThis { export function foo() { console.log("x"); } } diff --git a/tests/cases/compiler/extendNonClassSymbol2.ts b/tests/cases/compiler/extendNonClassSymbol2.ts index 7c8ded214a580..8d76d2e00e088 100644 --- a/tests/cases/compiler/extendNonClassSymbol2.ts +++ b/tests/cases/compiler/extendNonClassSymbol2.ts @@ -1,3 +1,4 @@ +// @strict: false function Foo() { this.x = 1; } diff --git a/tests/cases/compiler/extendsUntypedModule.ts b/tests/cases/compiler/extendsUntypedModule.ts index 0ebd9d0f72cf1..2cc741a2c2345 100644 --- a/tests/cases/compiler/extendsUntypedModule.ts +++ b/tests/cases/compiler/extendsUntypedModule.ts @@ -1,3 +1,4 @@ +// @strict: false // Test that extending an untyped module is an error, unlike extending unknownSymbol. // @noImplicitReferences: true // @noUnusedLocals: true diff --git a/tests/cases/compiler/extension.ts b/tests/cases/compiler/extension.ts index 8e512c8a441e1..8fb0782206269 100644 --- a/tests/cases/compiler/extension.ts +++ b/tests/cases/compiler/extension.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { x; } diff --git a/tests/cases/compiler/externSemantics.ts b/tests/cases/compiler/externSemantics.ts index 975af849997a2..47225a4d1b35e 100644 --- a/tests/cases/compiler/externSemantics.ts +++ b/tests/cases/compiler/externSemantics.ts @@ -1,3 +1,4 @@ +// @strict: false declare var x=10; declare var v; declare var y:number=3; diff --git a/tests/cases/compiler/externSyntax.ts b/tests/cases/compiler/externSyntax.ts index 429f94201572f..87c5491f121e8 100644 --- a/tests/cases/compiler/externSyntax.ts +++ b/tests/cases/compiler/externSyntax.ts @@ -1,3 +1,4 @@ +// @strict: false declare var v; declare namespace M { export class D { diff --git a/tests/cases/compiler/externalModuleImmutableBindings.ts b/tests/cases/compiler/externalModuleImmutableBindings.ts index 33e1b9894e176..691ba545399df 100644 --- a/tests/cases/compiler/externalModuleImmutableBindings.ts +++ b/tests/cases/compiler/externalModuleImmutableBindings.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: f1.ts export var x = 1; diff --git a/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts b/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts index 55922da6ca8e6..569140ca0051d 100644 --- a/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts +++ b/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: externalModuleRefernceResolutionOrderInImportDeclaration_file1.ts export function foo() { }; diff --git a/tests/cases/compiler/fallFromLastCase1.ts b/tests/cases/compiler/fallFromLastCase1.ts index d8037c61a96c8..a2b6446c5847e 100644 --- a/tests/cases/compiler/fallFromLastCase1.ts +++ b/tests/cases/compiler/fallFromLastCase1.ts @@ -1,3 +1,4 @@ +// @strict: false // @noFallthroughCasesInSwitch: true declare function use(a: string); diff --git a/tests/cases/compiler/fallFromLastCase2.ts b/tests/cases/compiler/fallFromLastCase2.ts index 231d3512dbe92..cd9f22f1191e4 100644 --- a/tests/cases/compiler/fallFromLastCase2.ts +++ b/tests/cases/compiler/fallFromLastCase2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noFallthroughCasesInSwitch: true declare function use(a: string); diff --git a/tests/cases/compiler/fatarrowfunctions.ts b/tests/cases/compiler/fatarrowfunctions.ts index 2afa4c54b4a6a..b08c694a970a4 100644 --- a/tests/cases/compiler/fatarrowfunctions.ts +++ b/tests/cases/compiler/fatarrowfunctions.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x:any) { return x(); diff --git a/tests/cases/compiler/fatarrowfunctionsErrors.ts b/tests/cases/compiler/fatarrowfunctionsErrors.ts index dde681c7036a0..cc40d69983b51 100644 --- a/tests/cases/compiler/fatarrowfunctionsErrors.ts +++ b/tests/cases/compiler/fatarrowfunctionsErrors.ts @@ -1,3 +1,4 @@ +// @strict: false foo((...Far:any[])=>{return 0;}) foo((1)=>{return 0;}); foo((x?)=>{return x;}) diff --git a/tests/cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts b/tests/cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts index 703854d4ab70a..30fbd5d8133a2 100644 --- a/tests/cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts +++ b/tests/cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts @@ -1,3 +1,4 @@ +// @strict: false function fn(x = () => this, y = x()) { // should be 4 diff --git a/tests/cases/compiler/fatarrowfunctionsInFunctions.ts b/tests/cases/compiler/fatarrowfunctionsInFunctions.ts index 67bbfeb163943..38030e63d78bd 100644 --- a/tests/cases/compiler/fatarrowfunctionsInFunctions.ts +++ b/tests/cases/compiler/fatarrowfunctionsInFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false declare function setTimeout(expression: any, msec?: number, language?: any): number; var messenger = { diff --git a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts index 814f1b41619e6..ea0888ac4ba1e 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts @@ -1,3 +1,4 @@ +// @strict: false (arg1?, arg2) => 101; (...arg?) => 102; (...arg) => 103; diff --git a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts index 7e4b30a431cc1..4699773ba61f3 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts @@ -1,3 +1,4 @@ +// @strict: false var tt1 = (a, (b, c)) => a+b+c; var tt2 = ((a), b, c) => a+b+c; diff --git a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts index 779494197111e..80c32b32a55e8 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts @@ -1 +1,2 @@ +// @strict: false (...) => 105; diff --git a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts index b4daf2cc3abfc..b8ff5a1c46e97 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts @@ -1,3 +1,4 @@ +// @strict: false false ? (arg?: number = 0) => 47 : null; false ? ((arg?: number = 0) => 57) : null; false ? null : (arg?: number = 0) => 67; diff --git a/tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts b/tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts index 8ef0f90318937..8628be04ac100 100644 --- a/tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts +++ b/tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/findLast.ts b/tests/cases/compiler/findLast.ts index ad0bddfb092c0..8e029bb4ce0e3 100644 --- a/tests/cases/compiler/findLast.ts +++ b/tests/cases/compiler/findLast.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2022 const itemNumber: number | undefined = [0].findLast((item) => item === 0); diff --git a/tests/cases/compiler/fixingTypeParametersRepeatedly1.ts b/tests/cases/compiler/fixingTypeParametersRepeatedly1.ts index d02e434c61c9c..17c5d4851675e 100644 --- a/tests/cases/compiler/fixingTypeParametersRepeatedly1.ts +++ b/tests/cases/compiler/fixingTypeParametersRepeatedly1.ts @@ -1,3 +1,4 @@ +// @strict: false declare function f(x: T, y: (p: T) => T, z: (p: T) => T): T; f("", x => null, x => x.toLowerCase()); diff --git a/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts b/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts index bb51a6a784f88..98a066a073c12 100644 --- a/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts +++ b/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts @@ -1,3 +1,4 @@ +// @strict: false interface Base { baseProp; } diff --git a/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts b/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts index 1ffba2e50c6c2..719cc262776b9 100644 --- a/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts +++ b/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts @@ -1,3 +1,4 @@ +// @strict: false interface Base { baseProp; } diff --git a/tests/cases/compiler/forIn.ts b/tests/cases/compiler/forIn.ts index 8ea9aee493dbc..91d1a0a5d6675 100644 --- a/tests/cases/compiler/forIn.ts +++ b/tests/cases/compiler/forIn.ts @@ -1,3 +1,4 @@ +// @strict: false var arr = null; for (var i:number in arr) { // error var x1 = arr[i]; diff --git a/tests/cases/compiler/forIn2.ts b/tests/cases/compiler/forIn2.ts index a0bf14e7b5d10..e8ace8b02c568 100644 --- a/tests/cases/compiler/forIn2.ts +++ b/tests/cases/compiler/forIn2.ts @@ -1,2 +1,3 @@ +// @strict: false for (var i in 1) { } \ No newline at end of file diff --git a/tests/cases/compiler/forInModule.ts b/tests/cases/compiler/forInModule.ts index 92ef2b0eb1b1d..561a56061da3c 100644 --- a/tests/cases/compiler/forInModule.ts +++ b/tests/cases/compiler/forInModule.ts @@ -1,3 +1,4 @@ +// @strict: false namespace Foo { for (var i = 0; i < 1; i++) { i+i; diff --git a/tests/cases/compiler/forInStatement1.ts b/tests/cases/compiler/forInStatement1.ts index 2d127b45bb343..5c42070334f5d 100644 --- a/tests/cases/compiler/forInStatement1.ts +++ b/tests/cases/compiler/forInStatement1.ts @@ -1,3 +1,4 @@ +// @strict: false var expr: any; for (var a in expr) { } \ No newline at end of file diff --git a/tests/cases/compiler/forInStatement2.ts b/tests/cases/compiler/forInStatement2.ts index adb95b9ae5fb7..a2221bd13468d 100644 --- a/tests/cases/compiler/forInStatement2.ts +++ b/tests/cases/compiler/forInStatement2.ts @@ -1,3 +1,4 @@ +// @strict: false declare var expr: number; for (var a in expr) { } \ No newline at end of file diff --git a/tests/cases/compiler/forInStatement3.ts b/tests/cases/compiler/forInStatement3.ts index 9d0441ba3eca5..74c28e4ff2455 100644 --- a/tests/cases/compiler/forInStatement3.ts +++ b/tests/cases/compiler/forInStatement3.ts @@ -1,3 +1,4 @@ +// @strict: false function F() { var expr: T; for (var a in expr) { diff --git a/tests/cases/compiler/forInStatement4.ts b/tests/cases/compiler/forInStatement4.ts index 4213e8b77feb8..bc1c4b0929fda 100644 --- a/tests/cases/compiler/forInStatement4.ts +++ b/tests/cases/compiler/forInStatement4.ts @@ -1,3 +1,4 @@ +// @strict: false var expr: any; for (var a: number in expr) { } \ No newline at end of file diff --git a/tests/cases/compiler/forInStatement5.ts b/tests/cases/compiler/forInStatement5.ts index 3ac2a94c17c10..a190903ed8dc5 100644 --- a/tests/cases/compiler/forInStatement5.ts +++ b/tests/cases/compiler/forInStatement5.ts @@ -1,3 +1,4 @@ +// @strict: false var a: string; var expr: any; for (a in expr) { diff --git a/tests/cases/compiler/forInStatement6.ts b/tests/cases/compiler/forInStatement6.ts index c4e2988897ef9..30789e2a6afeb 100644 --- a/tests/cases/compiler/forInStatement6.ts +++ b/tests/cases/compiler/forInStatement6.ts @@ -1,3 +1,4 @@ +// @strict: false var a: any; var expr: any; for (a in expr) { diff --git a/tests/cases/compiler/forInStatement7.ts b/tests/cases/compiler/forInStatement7.ts index 381fcc475791c..55a735b0fe058 100644 --- a/tests/cases/compiler/forInStatement7.ts +++ b/tests/cases/compiler/forInStatement7.ts @@ -1,3 +1,4 @@ +// @strict: false var a: number; var expr: any; for (a in expr) { diff --git a/tests/cases/compiler/forStatementInnerComments.ts b/tests/cases/compiler/forStatementInnerComments.ts index 14ef4554b06a8..12258d37487d0 100644 --- a/tests/cases/compiler/forStatementInnerComments.ts +++ b/tests/cases/compiler/forStatementInnerComments.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 declare var a; /*0*/ for /*1*/ ( /*2*/ var /*3*/ x /*4*/ in /*5*/ a /*6*/) /*7*/ {} diff --git a/tests/cases/compiler/funClodule.ts b/tests/cases/compiler/funClodule.ts index 24836852384ff..48e83e9afec0c 100644 --- a/tests/cases/compiler/funClodule.ts +++ b/tests/cases/compiler/funClodule.ts @@ -1,3 +1,4 @@ +// @strict: false declare function foo(); declare namespace foo { export function x(): any; diff --git a/tests/cases/compiler/funcdecl.ts b/tests/cases/compiler/funcdecl.ts index b4ef1a3cbafc8..cec1b146ce3a1 100644 --- a/tests/cases/compiler/funcdecl.ts +++ b/tests/cases/compiler/funcdecl.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function simpleFunc() { return "this is my simple func"; diff --git a/tests/cases/compiler/functionAssignment.ts b/tests/cases/compiler/functionAssignment.ts index 597a0285f8a1f..d15c88a0d4188 100644 --- a/tests/cases/compiler/functionAssignment.ts +++ b/tests/cases/compiler/functionAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false function f(n: Function) { } f(function () { }); diff --git a/tests/cases/compiler/functionAssignmentError.ts b/tests/cases/compiler/functionAssignmentError.ts index fd91cc2741914..4b2ca005403f6 100644 --- a/tests/cases/compiler/functionAssignmentError.ts +++ b/tests/cases/compiler/functionAssignmentError.ts @@ -1,2 +1,3 @@ +// @strict: false var func = function (){return "ONE";}; func = function (){return "ONE";}; \ No newline at end of file diff --git a/tests/cases/compiler/functionCall18.ts b/tests/cases/compiler/functionCall18.ts index 848580db729c8..1366ce47f8403 100644 --- a/tests/cases/compiler/functionCall18.ts +++ b/tests/cases/compiler/functionCall18.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro from #26835 declare function foo(a: T, b: T); declare function foo(a: {}); diff --git a/tests/cases/compiler/functionCall5.ts b/tests/cases/compiler/functionCall5.ts index 7b253d0c78ffa..bb344baa0f8c3 100644 --- a/tests/cases/compiler/functionCall5.ts +++ b/tests/cases/compiler/functionCall5.ts @@ -1,3 +1,4 @@ +// @strict: false namespace m1 { export class c1 { public a; }} function foo():m1.c1{return new m1.c1();}; var x = foo(); \ No newline at end of file diff --git a/tests/cases/compiler/functionCall7.ts b/tests/cases/compiler/functionCall7.ts index e36c4ec36ae35..14b21237ac099 100644 --- a/tests/cases/compiler/functionCall7.ts +++ b/tests/cases/compiler/functionCall7.ts @@ -1,3 +1,4 @@ +// @strict: false namespace m1 { export class c1 { public a; }} function foo(a:m1.c1){ a.a = 1; }; var myC = new m1.c1(); diff --git a/tests/cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts b/tests/cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts index 105fb1acff3fb..a07dca3a963fb 100644 --- a/tests/cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts +++ b/tests/cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function foo(args: { (x): number }[]) { return args.length; diff --git a/tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts b/tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts index f11519501d047..ee08de1ca390f 100644 --- a/tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts +++ b/tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts @@ -1,3 +1,4 @@ +// @strict: false class CDoc { constructor() { function doSomething(a: Function) { diff --git a/tests/cases/compiler/functionExpressionNames.ts b/tests/cases/compiler/functionExpressionNames.ts index 93c5f228da5c6..052fc04a29072 100644 --- a/tests/cases/compiler/functionExpressionNames.ts +++ b/tests/cases/compiler/functionExpressionNames.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/compiler/functionInIfStatementInModule.ts b/tests/cases/compiler/functionInIfStatementInModule.ts index 485928b0b9892..1851d511e4296 100644 --- a/tests/cases/compiler/functionInIfStatementInModule.ts +++ b/tests/cases/compiler/functionInIfStatementInModule.ts @@ -1,3 +1,4 @@ +// @strict: false namespace Midori { diff --git a/tests/cases/compiler/functionOverloadAmbiguity1.ts b/tests/cases/compiler/functionOverloadAmbiguity1.ts index 019ea748f2c80..54aceeb2e9920 100644 --- a/tests/cases/compiler/functionOverloadAmbiguity1.ts +++ b/tests/cases/compiler/functionOverloadAmbiguity1.ts @@ -1,3 +1,4 @@ +// @strict: false function callb(lam: (l: number) => void ); function callb(lam: (n: string) => void ); function callb(a) { } diff --git a/tests/cases/compiler/functionOverloadImplementationOfWrongName.ts b/tests/cases/compiler/functionOverloadImplementationOfWrongName.ts index 50458f6ea9903..8171f94163b30 100644 --- a/tests/cases/compiler/functionOverloadImplementationOfWrongName.ts +++ b/tests/cases/compiler/functionOverloadImplementationOfWrongName.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x); function foo(x, y); function bar() { } \ No newline at end of file diff --git a/tests/cases/compiler/functionOverloadImplementationOfWrongName2.ts b/tests/cases/compiler/functionOverloadImplementationOfWrongName2.ts index b62b8d01deb47..43957b9967015 100644 --- a/tests/cases/compiler/functionOverloadImplementationOfWrongName2.ts +++ b/tests/cases/compiler/functionOverloadImplementationOfWrongName2.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x); function bar() { } function foo(x, y); \ No newline at end of file diff --git a/tests/cases/compiler/functionOverloads1.ts b/tests/cases/compiler/functionOverloads1.ts index 8bbb452d9be0a..77f91d152b517 100644 --- a/tests/cases/compiler/functionOverloads1.ts +++ b/tests/cases/compiler/functionOverloads1.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(); 1+1; function foo():string { return "a" } \ No newline at end of file diff --git a/tests/cases/compiler/functionOverloads10.ts b/tests/cases/compiler/functionOverloads10.ts index 1c0bbbfc7d45d..13871c12a766a 100644 --- a/tests/cases/compiler/functionOverloads10.ts +++ b/tests/cases/compiler/functionOverloads10.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(foo:string, bar:number); function foo(foo:string); function foo(foo:any){ } diff --git a/tests/cases/compiler/functionOverloads11.ts b/tests/cases/compiler/functionOverloads11.ts index e70b2140e758b..e6aee444f8331 100644 --- a/tests/cases/compiler/functionOverloads11.ts +++ b/tests/cases/compiler/functionOverloads11.ts @@ -1,2 +1,3 @@ +// @strict: false function foo():number; function foo():string { return "" } diff --git a/tests/cases/compiler/functionOverloads12.ts b/tests/cases/compiler/functionOverloads12.ts index 48a8af06cc5de..44284ddc6fecd 100644 --- a/tests/cases/compiler/functionOverloads12.ts +++ b/tests/cases/compiler/functionOverloads12.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true function foo():string; diff --git a/tests/cases/compiler/functionOverloads13.ts b/tests/cases/compiler/functionOverloads13.ts index b5bd8cd2ec266..db3b386844ed0 100644 --- a/tests/cases/compiler/functionOverloads13.ts +++ b/tests/cases/compiler/functionOverloads13.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(bar:number):string; function foo(bar:number):number; function foo(bar?:number):any { return "" } diff --git a/tests/cases/compiler/functionOverloads14.ts b/tests/cases/compiler/functionOverloads14.ts index 7159f1d106cd0..ee96f58580bd6 100644 --- a/tests/cases/compiler/functionOverloads14.ts +++ b/tests/cases/compiler/functionOverloads14.ts @@ -1,3 +1,4 @@ +// @strict: false function foo():{a:number;} function foo():{a:string;} function foo():{a:any;} { return {a:1} } diff --git a/tests/cases/compiler/functionOverloads15.ts b/tests/cases/compiler/functionOverloads15.ts index 841fc2442fd6b..70bf3d5973864 100644 --- a/tests/cases/compiler/functionOverloads15.ts +++ b/tests/cases/compiler/functionOverloads15.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(foo:{a:string; b:number;}):string; function foo(foo:{a:string; b:number;}):number; function foo(foo:{a:string; b?:number;}):any { return "" } diff --git a/tests/cases/compiler/functionOverloads16.ts b/tests/cases/compiler/functionOverloads16.ts index c2331fe90db4e..b98234dc94971 100644 --- a/tests/cases/compiler/functionOverloads16.ts +++ b/tests/cases/compiler/functionOverloads16.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(foo:{a:string;}):string; function foo(foo:{a:string;}):number; function foo(foo:{a:string; b?:number;}):any { return "" } diff --git a/tests/cases/compiler/functionOverloads17.ts b/tests/cases/compiler/functionOverloads17.ts index 73e329ad50198..067e1cceca61e 100644 --- a/tests/cases/compiler/functionOverloads17.ts +++ b/tests/cases/compiler/functionOverloads17.ts @@ -1,2 +1,3 @@ +// @strict: false function foo():{a:number;} function foo():{a:string;} { return {a:""} } diff --git a/tests/cases/compiler/functionOverloads18.ts b/tests/cases/compiler/functionOverloads18.ts index a426746338540..ff7d289970e75 100644 --- a/tests/cases/compiler/functionOverloads18.ts +++ b/tests/cases/compiler/functionOverloads18.ts @@ -1,2 +1,3 @@ +// @strict: false function foo(bar:{a:number;}); function foo(bar:{a:string;}) { return {a:""} } diff --git a/tests/cases/compiler/functionOverloads19.ts b/tests/cases/compiler/functionOverloads19.ts index a593090f63f93..c7eee85a638de 100644 --- a/tests/cases/compiler/functionOverloads19.ts +++ b/tests/cases/compiler/functionOverloads19.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(bar:{b:string;}); function foo(bar:{a:string;}); function foo(bar:{a:any;}) { return {a:""} } diff --git a/tests/cases/compiler/functionOverloads21.ts b/tests/cases/compiler/functionOverloads21.ts index ec306db40e486..965df6688011c 100644 --- a/tests/cases/compiler/functionOverloads21.ts +++ b/tests/cases/compiler/functionOverloads21.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(bar:{a:number;}[]); function foo(bar:{a:number; b:string;}[]); function foo(bar:{a:any; b?:string;}[]) { return 0 } diff --git a/tests/cases/compiler/functionOverloads23.ts b/tests/cases/compiler/functionOverloads23.ts index 5432b76137f81..9c25252adb7b0 100644 --- a/tests/cases/compiler/functionOverloads23.ts +++ b/tests/cases/compiler/functionOverloads23.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(bar:(b:string)=>void); function foo(bar:(a:number)=>void); function foo(bar:(a?)=>void) { return 0 } diff --git a/tests/cases/compiler/functionOverloads24.ts b/tests/cases/compiler/functionOverloads24.ts index 44aac5ced2133..df1b340b03941 100644 --- a/tests/cases/compiler/functionOverloads24.ts +++ b/tests/cases/compiler/functionOverloads24.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(bar:number):(b:string)=>void; function foo(bar:string):(a:number)=>void; function foo(bar:any):(a)=>void { return function(){} } diff --git a/tests/cases/compiler/functionOverloads44.ts b/tests/cases/compiler/functionOverloads44.ts index 20a7ed540f0fd..7407c61cd2ee6 100644 --- a/tests/cases/compiler/functionOverloads44.ts +++ b/tests/cases/compiler/functionOverloads44.ts @@ -1,3 +1,4 @@ +// @strict: false interface Animal { animal } interface Dog extends Animal { dog } interface Cat extends Animal { cat } diff --git a/tests/cases/compiler/functionOverloads45.ts b/tests/cases/compiler/functionOverloads45.ts index 6210bd13427e5..f03cfd5919423 100644 --- a/tests/cases/compiler/functionOverloads45.ts +++ b/tests/cases/compiler/functionOverloads45.ts @@ -1,3 +1,4 @@ +// @strict: false interface Animal { animal } interface Dog extends Animal { dog } interface Cat extends Animal { cat } diff --git a/tests/cases/compiler/functionOverloads5.ts b/tests/cases/compiler/functionOverloads5.ts index 77dcfe5b6d8c0..56d586800203d 100644 --- a/tests/cases/compiler/functionOverloads5.ts +++ b/tests/cases/compiler/functionOverloads5.ts @@ -1,3 +1,4 @@ +// @strict: false class baz { public foo(); private foo(bar?:any){ } diff --git a/tests/cases/compiler/functionOverloads6.ts b/tests/cases/compiler/functionOverloads6.ts index dc64d397906c4..2d7b5737fecc3 100644 --- a/tests/cases/compiler/functionOverloads6.ts +++ b/tests/cases/compiler/functionOverloads6.ts @@ -1,3 +1,4 @@ +// @strict: false class foo { static fnOverload(); static fnOverload(foo:string); diff --git a/tests/cases/compiler/functionOverloads7.ts b/tests/cases/compiler/functionOverloads7.ts index bb76547f9cb48..d22b3286f9445 100644 --- a/tests/cases/compiler/functionOverloads7.ts +++ b/tests/cases/compiler/functionOverloads7.ts @@ -1,3 +1,4 @@ +// @strict: false class foo { private bar(); private bar(foo: string); diff --git a/tests/cases/compiler/functionOverloads8.ts b/tests/cases/compiler/functionOverloads8.ts index 2cf4a810bcb45..4d08f2ad8648b 100644 --- a/tests/cases/compiler/functionOverloads8.ts +++ b/tests/cases/compiler/functionOverloads8.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(); function foo(foo:string); function foo(foo?:any){ return '' } diff --git a/tests/cases/compiler/functionOverloads9.ts b/tests/cases/compiler/functionOverloads9.ts index a770eba46e692..2ab5f719610ae 100644 --- a/tests/cases/compiler/functionOverloads9.ts +++ b/tests/cases/compiler/functionOverloads9.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(foo:string); function foo(foo?:string){ return '' }; var x = foo('foo'); diff --git a/tests/cases/compiler/functionParameterArityMismatch.ts b/tests/cases/compiler/functionParameterArityMismatch.ts index 1bb627b64f861..f5d99ddafedc0 100644 --- a/tests/cases/compiler/functionParameterArityMismatch.ts +++ b/tests/cases/compiler/functionParameterArityMismatch.ts @@ -1,3 +1,4 @@ +// @strict: false declare function f1(a: number); declare function f1(a: number, b: number, c: number); f1(); diff --git a/tests/cases/compiler/functionSubtypingOfVarArgs.ts b/tests/cases/compiler/functionSubtypingOfVarArgs.ts index d70e385aabc68..10cf42faceb45 100644 --- a/tests/cases/compiler/functionSubtypingOfVarArgs.ts +++ b/tests/cases/compiler/functionSubtypingOfVarArgs.ts @@ -1,3 +1,4 @@ +// @strict: false class EventBase { private _listeners = []; diff --git a/tests/cases/compiler/functionSubtypingOfVarArgs2.ts b/tests/cases/compiler/functionSubtypingOfVarArgs2.ts index 994dfb9c5e231..91e5c65891c47 100644 --- a/tests/cases/compiler/functionSubtypingOfVarArgs2.ts +++ b/tests/cases/compiler/functionSubtypingOfVarArgs2.ts @@ -1,3 +1,4 @@ +// @strict: false class EventBase { private _listeners: { (...args: any[]): void; }[] = []; diff --git a/tests/cases/compiler/functionTypeArgumentArityErrors.ts b/tests/cases/compiler/functionTypeArgumentArityErrors.ts index 5cf681effa61d..39caf72fe0f45 100644 --- a/tests/cases/compiler/functionTypeArgumentArityErrors.ts +++ b/tests/cases/compiler/functionTypeArgumentArityErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // Overloaded functions with default type arguments declare function f1(): void; declare function f1(): void; diff --git a/tests/cases/compiler/functionTypesLackingReturnTypes.ts b/tests/cases/compiler/functionTypesLackingReturnTypes.ts index f1dac4712876f..5aebd338719fe 100644 --- a/tests/cases/compiler/functionTypesLackingReturnTypes.ts +++ b/tests/cases/compiler/functionTypesLackingReturnTypes.ts @@ -1,3 +1,4 @@ +// @strict: false // Error (no '=>') function f(x: ()) { diff --git a/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts b/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts index ae0689a7e29a4..700589f94929e 100644 --- a/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts +++ b/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(a = undefined) { } function bar(a = undefined) { diff --git a/tests/cases/compiler/generatorES6InAMDModule.ts b/tests/cases/compiler/generatorES6InAMDModule.ts index a79170c685481..d928ac3377cc1 100644 --- a/tests/cases/compiler/generatorES6InAMDModule.ts +++ b/tests/cases/compiler/generatorES6InAMDModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @module: amd export function* foo() { diff --git a/tests/cases/compiler/generatorES6_1.ts b/tests/cases/compiler/generatorES6_1.ts index 1f2137b8403d6..f5072999f4acb 100644 --- a/tests/cases/compiler/generatorES6_1.ts +++ b/tests/cases/compiler/generatorES6_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function* foo() { yield diff --git a/tests/cases/compiler/generatorES6_6.ts b/tests/cases/compiler/generatorES6_6.ts index 708e0e9d52560..1a91195128871 100644 --- a/tests/cases/compiler/generatorES6_6.ts +++ b/tests/cases/compiler/generatorES6_6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 class C { *[Symbol.iterator]() { diff --git a/tests/cases/compiler/genericCallWithFixedArguments.ts b/tests/cases/compiler/genericCallWithFixedArguments.ts index 35f19f44886e1..f5cfd48bb3bd5 100644 --- a/tests/cases/compiler/genericCallWithFixedArguments.ts +++ b/tests/cases/compiler/genericCallWithFixedArguments.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() { } } class B { bar() { }} diff --git a/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts b/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts index ae0763e712f8e..3500a01db8079 100644 --- a/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts +++ b/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts @@ -1,3 +1,4 @@ +// @strict: false interface KnockoutObservableBase { peek(): T; (): T; diff --git a/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts b/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts index 08e22f5d64cc5..7f2638de366ae 100644 --- a/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts +++ b/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts @@ -1,3 +1,4 @@ +// @strict: false // Should be error to use 'T' in all declarations within Foo. class Foo { static a = (n: T) => { }; diff --git a/tests/cases/compiler/genericClassesInModule2.ts b/tests/cases/compiler/genericClassesInModule2.ts index 8894c3dc38f70..92d2bccbb254d 100644 --- a/tests/cases/compiler/genericClassesInModule2.ts +++ b/tests/cases/compiler/genericClassesInModule2.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd export class A{ constructor( public callback: (self: A) => void) { diff --git a/tests/cases/compiler/genericConstraint2.ts b/tests/cases/compiler/genericConstraint2.ts index 7d739da094bd3..a939b269a073c 100644 --- a/tests/cases/compiler/genericConstraint2.ts +++ b/tests/cases/compiler/genericConstraint2.ts @@ -1,3 +1,4 @@ +// @strict: false interface Comparable { comparer(other: T): number; } diff --git a/tests/cases/compiler/genericConstructSignatureInInterface.ts b/tests/cases/compiler/genericConstructSignatureInInterface.ts index b347fd3d80518..c1dd467483a20 100644 --- a/tests/cases/compiler/genericConstructSignatureInInterface.ts +++ b/tests/cases/compiler/genericConstructSignatureInInterface.ts @@ -1,3 +1,4 @@ +// @strict: false interface C { new (x: T); } diff --git a/tests/cases/compiler/genericDefaultsJs.ts b/tests/cases/compiler/genericDefaultsJs.ts index 6aa3640d96195..a433ca249e74b 100644 --- a/tests/cases/compiler/genericDefaultsJs.ts +++ b/tests/cases/compiler/genericDefaultsJs.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/tests/cases/compiler/genericFunctionSpecializations1.ts b/tests/cases/compiler/genericFunctionSpecializations1.ts index 7023b9d045ce2..abb63a16245dc 100644 --- a/tests/cases/compiler/genericFunctionSpecializations1.ts +++ b/tests/cases/compiler/genericFunctionSpecializations1.ts @@ -1,3 +1,4 @@ +// @strict: false function foo3(test: string); // error function foo3(test: T) { } diff --git a/tests/cases/compiler/genericImplements.ts b/tests/cases/compiler/genericImplements.ts index b6b76669b4227..b2468e06352bb 100644 --- a/tests/cases/compiler/genericImplements.ts +++ b/tests/cases/compiler/genericImplements.ts @@ -1,3 +1,4 @@ +// @strict: false class A { a; }; class B { b; }; interface I { diff --git a/tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts b/tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts index a655d2f5ab0c2..f855f13bba616 100644 --- a/tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts +++ b/tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts @@ -1,3 +1,4 @@ +// @strict: false interface Foo { x: T; } diff --git a/tests/cases/compiler/genericOverloadSignatures.ts b/tests/cases/compiler/genericOverloadSignatures.ts index e68e931e384f9..0da4233de63fe 100644 --- a/tests/cases/compiler/genericOverloadSignatures.ts +++ b/tests/cases/compiler/genericOverloadSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { (x: T): void; (x: T): void; diff --git a/tests/cases/compiler/genericPrototypeProperty2.ts b/tests/cases/compiler/genericPrototypeProperty2.ts index ba3c22d55430f..e8af247dc2735 100644 --- a/tests/cases/compiler/genericPrototypeProperty2.ts +++ b/tests/cases/compiler/genericPrototypeProperty2.ts @@ -1,3 +1,4 @@ +// @strict: false interface EventTarget { x } class BaseEvent { target: EventTarget; diff --git a/tests/cases/compiler/genericTypeAssertions3.ts b/tests/cases/compiler/genericTypeAssertions3.ts index b9d4cccd5a447..b4943b27ddd60 100644 --- a/tests/cases/compiler/genericTypeAssertions3.ts +++ b/tests/cases/compiler/genericTypeAssertions3.ts @@ -1,2 +1,3 @@ +// @strict: false var r = < (x: T) => T > ((x) => { return null; }); // bug was 'could not find dotted symbol T' on x's annotation in the type assertion instead of no error var s = < (x: T) => T > ((x: any) => { return null; }); // no error diff --git a/tests/cases/compiler/genericTypeAssertions6.ts b/tests/cases/compiler/genericTypeAssertions6.ts index 358274a7bfc7c..866a1fb080fe0 100644 --- a/tests/cases/compiler/genericTypeAssertions6.ts +++ b/tests/cases/compiler/genericTypeAssertions6.ts @@ -1,3 +1,4 @@ +// @strict: false class A { constructor(x) { var y = x; diff --git a/tests/cases/compiler/genericTypeParameterEquivalence2.ts b/tests/cases/compiler/genericTypeParameterEquivalence2.ts index 7557e0b8fe733..1c46d9e8c8e4b 100644 --- a/tests/cases/compiler/genericTypeParameterEquivalence2.ts +++ b/tests/cases/compiler/genericTypeParameterEquivalence2.ts @@ -1,3 +1,4 @@ +// @strict: false // compose :: (b->c) -> (a->b) -> (a->c) function compose(f: (b: B) => C, g: (a:A) => B): (a:A) => C { return function (a:A) : C { diff --git a/tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts b/tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts index 5d4797b352862..91d11a2649ddd 100644 --- a/tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts +++ b/tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts @@ -1,3 +1,4 @@ +// @strict: false function f() { } function f2(a: X, b: X): X { return null; } class C { diff --git a/tests/cases/compiler/getAndSetAsMemberNames.ts b/tests/cases/compiler/getAndSetAsMemberNames.ts index bae36677f8eb3..f1d859dbb8b7c 100644 --- a/tests/cases/compiler/getAndSetAsMemberNames.ts +++ b/tests/cases/compiler/getAndSetAsMemberNames.ts @@ -1,3 +1,4 @@ +// @strict: false class C1 { set: boolean; get = 1; diff --git a/tests/cases/compiler/getterSetterNonAccessor.ts b/tests/cases/compiler/getterSetterNonAccessor.ts index 4e52d5f90d372..302d248f1f4ec 100644 --- a/tests/cases/compiler/getterSetterNonAccessor.ts +++ b/tests/cases/compiler/getterSetterNonAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false function getFunc():any{return 0;} function setFunc(v){} diff --git a/tests/cases/compiler/giant.ts b/tests/cases/compiler/giant.ts index a7087654ec0d0..aa75660d63673 100644 --- a/tests/cases/compiler/giant.ts +++ b/tests/cases/compiler/giant.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @declaration: true diff --git a/tests/cases/compiler/globalThisCapture.ts b/tests/cases/compiler/globalThisCapture.ts index 37ad3b169d538..3376fcc329c6c 100644 --- a/tests/cases/compiler/globalThisCapture.ts +++ b/tests/cases/compiler/globalThisCapture.ts @@ -1,3 +1,4 @@ +// @strict: false // Add a lambda to ensure global 'this' capture is triggered (()=>this.window); diff --git a/tests/cases/compiler/grammarAmbiguities1.ts b/tests/cases/compiler/grammarAmbiguities1.ts index 9634e4088c3d0..e59aff5ac4905 100644 --- a/tests/cases/compiler/grammarAmbiguities1.ts +++ b/tests/cases/compiler/grammarAmbiguities1.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() { } } class B { bar() { }} function f(x) { return x; } diff --git a/tests/cases/compiler/heterogeneousArrayAndOverloads.ts b/tests/cases/compiler/heterogeneousArrayAndOverloads.ts index 8949acc0f3523..4dc827b104b7e 100644 --- a/tests/cases/compiler/heterogeneousArrayAndOverloads.ts +++ b/tests/cases/compiler/heterogeneousArrayAndOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false class arrTest { test(arg1: number[]); test(arg1: string[]); diff --git a/tests/cases/compiler/icomparable.ts b/tests/cases/compiler/icomparable.ts index 6391fcd6c8149..2661c9aeccfbc 100644 --- a/tests/cases/compiler/icomparable.ts +++ b/tests/cases/compiler/icomparable.ts @@ -1,3 +1,4 @@ +// @strict: false interface IComparable { compareTo(other: T); } diff --git a/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts b/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts index e6cead432c34a..924f1389ead99 100644 --- a/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts +++ b/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { foo(value: number); } diff --git a/tests/cases/compiler/importHelpersES6.ts b/tests/cases/compiler/importHelpersES6.ts index 3655aa77420a6..565e71057a376 100644 --- a/tests/cases/compiler/importHelpersES6.ts +++ b/tests/cases/compiler/importHelpersES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @importHelpers: true // @target: es6 // @experimentalDecorators: true diff --git a/tests/cases/compiler/inOperator.ts b/tests/cases/compiler/inOperator.ts index 74b2c620cf913..4dff7752b6ead 100644 --- a/tests/cases/compiler/inOperator.ts +++ b/tests/cases/compiler/inOperator.ts @@ -1,3 +1,4 @@ +// @strict: false var a=[]; for (var x in a) {} diff --git a/tests/cases/compiler/inOperatorWithFunction.ts b/tests/cases/compiler/inOperatorWithFunction.ts index 87f88ce25dd21..915a907fcd444 100644 --- a/tests/cases/compiler/inOperatorWithFunction.ts +++ b/tests/cases/compiler/inOperatorWithFunction.ts @@ -1,2 +1,3 @@ +// @strict: false var fn = function (val: boolean) { return val; } fn("a" in { "a": true }); diff --git a/tests/cases/compiler/inOperatorWithGeneric.ts b/tests/cases/compiler/inOperatorWithGeneric.ts index 8dd1bc29d8a53..b99346d1a8cae 100644 --- a/tests/cases/compiler/inOperatorWithGeneric.ts +++ b/tests/cases/compiler/inOperatorWithGeneric.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(x:T) { for (var p in x) { diff --git a/tests/cases/compiler/incompatibleTypes.ts b/tests/cases/compiler/incompatibleTypes.ts index 4dbc578cc99c0..4506bec425eff 100644 --- a/tests/cases/compiler/incompatibleTypes.ts +++ b/tests/cases/compiler/incompatibleTypes.ts @@ -1,3 +1,4 @@ +// @strict: false interface IFoo1 { p1(): number; } diff --git a/tests/cases/compiler/incorrectClassOverloadChain.ts b/tests/cases/compiler/incorrectClassOverloadChain.ts index 3315e96be3e2d..fa1244e4f11cd 100644 --- a/tests/cases/compiler/incorrectClassOverloadChain.ts +++ b/tests/cases/compiler/incorrectClassOverloadChain.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(): string; foo(x): number; diff --git a/tests/cases/compiler/indexClassByNumber.ts b/tests/cases/compiler/indexClassByNumber.ts index 021a9dcadf51c..892b8748a22a8 100644 --- a/tests/cases/compiler/indexClassByNumber.ts +++ b/tests/cases/compiler/indexClassByNumber.ts @@ -1,3 +1,4 @@ +// @strict: false // Shouldn't be able to index a class instance by a number (unless it has declared a number index signature) class foo { } diff --git a/tests/cases/compiler/indexTypeCheck.ts b/tests/cases/compiler/indexTypeCheck.ts index 825713a91165a..a9f3626cb9100 100644 --- a/tests/cases/compiler/indexTypeCheck.ts +++ b/tests/cases/compiler/indexTypeCheck.ts @@ -1,3 +1,4 @@ +// @strict: false interface Red { [n:number]; // ok [s:string]; // ok diff --git a/tests/cases/compiler/indexerSignatureWithRestParam.ts b/tests/cases/compiler/indexerSignatureWithRestParam.ts index 7b0462ac1989b..6be193331451d 100644 --- a/tests/cases/compiler/indexerSignatureWithRestParam.ts +++ b/tests/cases/compiler/indexerSignatureWithRestParam.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [...x]: string; } diff --git a/tests/cases/compiler/indirectTypeParameterReferences.ts b/tests/cases/compiler/indirectTypeParameterReferences.ts index c8cb56ad5e714..9dc8f8f2f1bcf 100644 --- a/tests/cases/compiler/indirectTypeParameterReferences.ts +++ b/tests/cases/compiler/indirectTypeParameterReferences.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro from #19043 type B = {b: string} diff --git a/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts b/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts index ab5f2618d30fe..669d562e3bd8c 100644 --- a/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts +++ b/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts @@ -1,3 +1,4 @@ +// @strict: false declare function inference1(name: keyof T): T; declare function inference2(target: T, name: keyof T): T; declare var two: "a" | "d"; diff --git a/tests/cases/compiler/inferSecondaryParameter.ts b/tests/cases/compiler/inferSecondaryParameter.ts index 9281075d3d891..b596047a4791e 100644 --- a/tests/cases/compiler/inferSecondaryParameter.ts +++ b/tests/cases/compiler/inferSecondaryParameter.ts @@ -1,3 +1,4 @@ +// @strict: false // type inference on 'bug' should give 'any' interface Ib { m(test: string, fn: Function); } diff --git a/tests/cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts b/tests/cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts index 81f9f362058cf..e1ad64044fd8c 100644 --- a/tests/cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts +++ b/tests/cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts @@ -1,3 +1,4 @@ +// @strict: false function f(array: T[], ...args) { } function g(array: number[], ...args) { } function h(nonarray: T, ...args) { } diff --git a/tests/cases/compiler/inferenceLimit.ts b/tests/cases/compiler/inferenceLimit.ts index adaf13bad2225..aacc5ddda5e27 100644 --- a/tests/cases/compiler/inferenceLimit.ts +++ b/tests/cases/compiler/inferenceLimit.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts b/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts index 85b66f9219285..5b0c907da4588 100644 --- a/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts +++ b/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts @@ -1,3 +1,4 @@ +// @strict: false interface Int { method(x: T): U; } diff --git a/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts b/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts index dee3db70c2437..5fc5ef31b4403 100644 --- a/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts +++ b/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts @@ -1,3 +1,4 @@ +// @strict: false interface Int { [s: string]: (x: T) => U; } diff --git a/tests/cases/compiler/inheritance.ts b/tests/cases/compiler/inheritance.ts index 3910df5c821bc..0ba226565699d 100644 --- a/tests/cases/compiler/inheritance.ts +++ b/tests/cases/compiler/inheritance.ts @@ -1,3 +1,4 @@ +// @strict: false class B1 { public x; } diff --git a/tests/cases/compiler/inheritance1.ts b/tests/cases/compiler/inheritance1.ts index 1f1b1207e61f6..cb2677a7ae568 100644 --- a/tests/cases/compiler/inheritance1.ts +++ b/tests/cases/compiler/inheritance1.ts @@ -1,3 +1,4 @@ +// @strict: false class Control { private state: any; } diff --git a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts index 45f5a18bff5db..48b17d5090d6a 100644 --- a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts +++ b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts @@ -1,3 +1,4 @@ +// @strict: false class A { private myMethod() { } } diff --git a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts index c0fc0ecc154a6..474f247145806 100644 --- a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts +++ b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts @@ -1,3 +1,4 @@ +// @strict: false class A { private myMethod() { } } diff --git a/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts b/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts index cda344dd6cba1..d03a7779e13d2 100644 --- a/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts +++ b/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts @@ -1,3 +1,4 @@ +// @strict: false class A { public myMethod() { } } diff --git a/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts b/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts index 7585ef2257d8b..f16853e16cd59 100644 --- a/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false class a { get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts b/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts index 5684276beb2ca..a3be64bd5a447 100644 --- a/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class a { x() { diff --git a/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts b/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts index 69267c2db07da..d0e9261ebf662 100644 --- a/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class a { x: string; } diff --git a/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts b/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts index 12cd7345e93fd..70b058adfb0fe 100644 --- a/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false class a { get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts b/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts index 1b8d908794ebe..59458842d0bc5 100644 --- a/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class a { x() { return "10"; diff --git a/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts b/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts index 91080f46e2555..ddc60b5c523e9 100644 --- a/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class a { x: () => string; } diff --git a/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts b/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts index e3f13bd2e393f..da5d997b2a4ee 100644 --- a/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false class a { private __x: () => string; get x() { diff --git a/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts b/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts index 719fa338b9d00..f19d4ddcf126c 100644 --- a/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class a { x() { return "20"; diff --git a/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts b/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts index 46dbdf0ab7ac7..fd5da19bef1e7 100644 --- a/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class a { x: () => string; } diff --git a/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts b/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts index 66473808cda82..de0bd19214ae4 100644 --- a/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts +++ b/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts @@ -1,3 +1,4 @@ +// @strict: false class A { } class B extends A {} var a = new A(); diff --git a/tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts b/tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts index 8b5f53695fbfd..d72cbb119702e 100644 --- a/tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts +++ b/tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export class C1 { } export class C2 { } diff --git a/tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts b/tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts index c2b3072d820dc..db38768e5cefb 100644 --- a/tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts b/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts index d0463f36b4590..7ea35654a5fc8 100644 --- a/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts b/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts index c438812a7a54b..e6e8185e3620f 100644 --- a/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x: string; } diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts index b5f610c00ead7..cd2b407f1b04d 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts index 2518620041c75..6b0a1f60cb08d 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static get x(): () => string { return null; diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts index f58342b72ae62..4e33e346d4080 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x() { return "10"; diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts index 1f0018cfe6122..f42b4b6049aa5 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x: string; } diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts index c75d965fb29fc..683633379cfcd 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x: () => string; } diff --git a/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts b/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts index 40f9c6dc1ca96..5665700bd4118 100644 --- a/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts +++ b/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class a { x: string; } diff --git a/tests/cases/compiler/inheritanceStaticMembersCompatible.ts b/tests/cases/compiler/inheritanceStaticMembersCompatible.ts index 96f431f42030b..e766aa933916a 100644 --- a/tests/cases/compiler/inheritanceStaticMembersCompatible.ts +++ b/tests/cases/compiler/inheritanceStaticMembersCompatible.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x: a; } diff --git a/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts b/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts index 3f382983daad1..2f0681e2c904f 100644 --- a/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts +++ b/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x: string; } diff --git a/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts b/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts index e325ae4582aad..217736f85614a 100644 --- a/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true class a { diff --git a/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts b/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts index 5477b3ec50511..455987988098f 100644 --- a/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts b/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts index 6d3267098befb..e48e4a1b31028 100644 --- a/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class a { static x: () => string; } diff --git a/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts b/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts index 3d55b39a26beb..6f55e76321699 100644 --- a/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts +++ b/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts @@ -1,3 +1,4 @@ +// @strict: false interface IResultCallback extends Function { } function fn(cb: IResultCallback) { } diff --git a/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases.ts b/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases.ts index 0aa06dcb2305d..958736e0c78d7 100644 --- a/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases.ts +++ b/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases.ts @@ -1,3 +1,4 @@ +// @strict: false // indexer in B is a subtype of indexer in A interface A { [s: string]: { diff --git a/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts b/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts index 28504055dbe3a..e87dab3bea66c 100644 --- a/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts +++ b/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { [n: number]: T; } diff --git a/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts b/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts index 1f4f425527514..db89fb8d1e828 100644 --- a/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts +++ b/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts @@ -1,3 +1,4 @@ +// @strict: false // indexer in B is a subtype of indexer in A interface A { [s: string]: { diff --git a/tests/cases/compiler/innerExtern.ts b/tests/cases/compiler/innerExtern.ts index 212181124aeeb..de9406298e762 100644 --- a/tests/cases/compiler/innerExtern.ts +++ b/tests/cases/compiler/innerExtern.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { export declare namespace BB { export var Elephant; diff --git a/tests/cases/compiler/innerOverloads.ts b/tests/cases/compiler/innerOverloads.ts index 553fbdc6e864e..2f460c0710443 100644 --- a/tests/cases/compiler/innerOverloads.ts +++ b/tests/cases/compiler/innerOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false function outer() { function inner(x:number); // should work diff --git a/tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts b/tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts index fdbc17124bb84..b3070a3fe05ec 100644 --- a/tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts +++ b/tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts @@ -1,3 +1,4 @@ +// @strict: false function takesCallback(callback: (n) =>any) { } diff --git a/tests/cases/compiler/instanceOfAssignability.ts b/tests/cases/compiler/instanceOfAssignability.ts index 909de1ff2a7b0..6f688868d79f7 100644 --- a/tests/cases/compiler/instanceOfAssignability.ts +++ b/tests/cases/compiler/instanceOfAssignability.ts @@ -1,3 +1,4 @@ +// @strict: false interface Base { foo: string|number; optional?: number; diff --git a/tests/cases/compiler/intTypeCheck.ts b/tests/cases/compiler/intTypeCheck.ts index 39f9356a6e108..aeb6077461aee 100644 --- a/tests/cases/compiler/intTypeCheck.ts +++ b/tests/cases/compiler/intTypeCheck.ts @@ -1,3 +1,4 @@ +// @strict: false interface i1 { //Property Signatures p; diff --git a/tests/cases/compiler/interfaceImplementation1.ts b/tests/cases/compiler/interfaceImplementation1.ts index 6b415774bb62e..c62eb0a63630c 100644 --- a/tests/cases/compiler/interfaceImplementation1.ts +++ b/tests/cases/compiler/interfaceImplementation1.ts @@ -1,3 +1,4 @@ +// @strict: false interface I1 { iObj:{ }; iNum:number; diff --git a/tests/cases/compiler/interfaceOnly.ts b/tests/cases/compiler/interfaceOnly.ts index 0a48807e460df..8a89503d3d1ae 100644 --- a/tests/cases/compiler/interfaceOnly.ts +++ b/tests/cases/compiler/interfaceOnly.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface foo { foo(); diff --git a/tests/cases/compiler/interfaceWithCommaSeparators.ts b/tests/cases/compiler/interfaceWithCommaSeparators.ts index 03ae5480ef18d..18511002e1bc8 100644 --- a/tests/cases/compiler/interfaceWithCommaSeparators.ts +++ b/tests/cases/compiler/interfaceWithCommaSeparators.ts @@ -1,2 +1,3 @@ +// @strict: false var v: { bar(): void, baz } interface Foo { bar(): void, baz } \ No newline at end of file diff --git a/tests/cases/compiler/interfacedecl.ts b/tests/cases/compiler/interfacedecl.ts index f08124e893749..f335e5724523b 100644 --- a/tests/cases/compiler/interfacedecl.ts +++ b/tests/cases/compiler/interfacedecl.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface a0 { (): string; diff --git a/tests/cases/compiler/interfacedeclWithIndexerErrors.ts b/tests/cases/compiler/interfacedeclWithIndexerErrors.ts index 054d5e044ac1b..1f3c0ef52b3df 100644 --- a/tests/cases/compiler/interfacedeclWithIndexerErrors.ts +++ b/tests/cases/compiler/interfacedeclWithIndexerErrors.ts @@ -1,3 +1,4 @@ +// @strict: false interface a0 { (): string; (a, b, c?: string): number; diff --git a/tests/cases/compiler/internalAliasUninitializedModule.ts b/tests/cases/compiler/internalAliasUninitializedModule.ts index eec8d3420e9f7..37e0dd39ad360 100644 --- a/tests/cases/compiler/internalAliasUninitializedModule.ts +++ b/tests/cases/compiler/internalAliasUninitializedModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true namespace a { export namespace b { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts index 9c148ca2d2e48..ee357313fb94d 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts index b7d84962869fc..875d96e6a7d8b 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts index c21c4d619dcab..69c8e110af420 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs export namespace a { export namespace b { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts index 9ef9aba771d68..a27d7381255c9 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts index 03d2121e7b1ed..8b2f3c1928d7f 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasWithDottedNameEmit.ts b/tests/cases/compiler/internalAliasWithDottedNameEmit.ts index ee7e3fbb1946b..a11529a857011 100644 --- a/tests/cases/compiler/internalAliasWithDottedNameEmit.ts +++ b/tests/cases/compiler/internalAliasWithDottedNameEmit.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true namespace a.b.c { export var d; diff --git a/tests/cases/compiler/intrinsics.ts b/tests/cases/compiler/intrinsics.ts index 0a1f9431b4dc9..8fdafd6e81c3f 100644 --- a/tests/cases/compiler/intrinsics.ts +++ b/tests/cases/compiler/intrinsics.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true var hasOwnProperty: hasOwnProperty; // Error diff --git a/tests/cases/compiler/invalidConstraint1.ts b/tests/cases/compiler/invalidConstraint1.ts index 074663010b5db..c47ba8bd0a049 100644 --- a/tests/cases/compiler/invalidConstraint1.ts +++ b/tests/cases/compiler/invalidConstraint1.ts @@ -1,3 +1,4 @@ +// @strict: false function f() { return undefined; } diff --git a/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts b/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts index b905981eceffc..ccc2cb386004b 100644 --- a/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts +++ b/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @isolatedDeclarations: true // @declarationMap: false diff --git a/tests/cases/compiler/isolatedDeclarationLazySymbols.ts b/tests/cases/compiler/isolatedDeclarationLazySymbols.ts index adee6b230cb48..2195df64f1ff4 100644 --- a/tests/cases/compiler/isolatedDeclarationLazySymbols.ts +++ b/tests/cases/compiler/isolatedDeclarationLazySymbols.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @isolatedDeclarations: true // @target: ESNext diff --git a/tests/cases/compiler/isolatedDeclarationsAllowJs.ts b/tests/cases/compiler/isolatedDeclarationsAllowJs.ts index 7b4704609a5bd..789e864a9d487 100644 --- a/tests/cases/compiler/isolatedDeclarationsAllowJs.ts +++ b/tests/cases/compiler/isolatedDeclarationsAllowJs.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedDeclarations: true // @allowJS: true // @declaration: true diff --git a/tests/cases/compiler/isolatedModulesDeclaration.ts b/tests/cases/compiler/isolatedModulesDeclaration.ts index 3d5e7db9b4f86..a83a054162854 100644 --- a/tests/cases/compiler/isolatedModulesDeclaration.ts +++ b/tests/cases/compiler/isolatedModulesDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedModules: true // @declaration: true // @target: es6 diff --git a/tests/cases/compiler/isolatedModulesES6.ts b/tests/cases/compiler/isolatedModulesES6.ts index 12e8d8adb7f8b..30ba7f76cf9e3 100644 --- a/tests/cases/compiler/isolatedModulesES6.ts +++ b/tests/cases/compiler/isolatedModulesES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedModules: true // @target: es6 // @filename: file1.ts diff --git a/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts b/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts index d5aae618d8ff6..7d563f07bd9cb 100644 --- a/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts +++ b/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedModules: true // @target: es6 diff --git a/tests/cases/compiler/isolatedModulesOut.ts b/tests/cases/compiler/isolatedModulesOut.ts index c977a4b54da66..46455a051c1bf 100644 --- a/tests/cases/compiler/isolatedModulesOut.ts +++ b/tests/cases/compiler/isolatedModulesOut.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedModules: true // @out:all.js // @target: es6 diff --git a/tests/cases/compiler/isolatedModulesSpecifiedModule.ts b/tests/cases/compiler/isolatedModulesSpecifiedModule.ts index 0e72e6480b6c6..d128f5aa02f05 100644 --- a/tests/cases/compiler/isolatedModulesSpecifiedModule.ts +++ b/tests/cases/compiler/isolatedModulesSpecifiedModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedModules: true // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts b/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts index 2435f22e952c2..48624333e5806 100644 --- a/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts +++ b/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedModules: true // @filename: file1.ts export var x; \ No newline at end of file diff --git a/tests/cases/compiler/isolatedModulesWithDeclarationFile.ts b/tests/cases/compiler/isolatedModulesWithDeclarationFile.ts index 01e96b4ec2a63..e5f96f03b8326 100644 --- a/tests/cases/compiler/isolatedModulesWithDeclarationFile.ts +++ b/tests/cases/compiler/isolatedModulesWithDeclarationFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @isolatedModules: true // @target: es6 diff --git a/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts b/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts index f86508dc9860c..94363b7b63378 100644 --- a/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts +++ b/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts b/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts index 73f9a5453e481..2488cb41dda7e 100644 --- a/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts +++ b/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts b/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts index 29dfd68bb0411..3ec23d3b7e1ce 100644 --- a/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts +++ b/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts b/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts index 527927be6e6f5..ca6ba94501b81 100644 --- a/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts +++ b/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsFileESModuleWithEnumTag.ts b/tests/cases/compiler/jsFileESModuleWithEnumTag.ts index dd6d0b90d69b2..ca26c6ea43d00 100644 --- a/tests/cases/compiler/jsFileESModuleWithEnumTag.ts +++ b/tests/cases/compiler/jsFileESModuleWithEnumTag.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsNegativeElementAccessNotBound.ts b/tests/cases/compiler/jsNegativeElementAccessNotBound.ts index c7a204e578fb0..eaa731496e968 100644 --- a/tests/cases/compiler/jsNegativeElementAccessNotBound.ts +++ b/tests/cases/compiler/jsNegativeElementAccessNotBound.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsdocInTypeScript.ts b/tests/cases/compiler/jsdocInTypeScript.ts index be485f59c5540..9750d63d63e6e 100644 --- a/tests/cases/compiler/jsdocInTypeScript.ts +++ b/tests/cases/compiler/jsdocInTypeScript.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es2015 // @traceResolution: true diff --git a/tests/cases/compiler/jsdocParamTagInvalid.ts b/tests/cases/compiler/jsdocParamTagInvalid.ts index 79e17bf8ff18b..164ead9b68f46 100644 --- a/tests/cases/compiler/jsdocParamTagInvalid.ts +++ b/tests/cases/compiler/jsdocParamTagInvalid.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsdocParameterParsingInvalidName.ts b/tests/cases/compiler/jsdocParameterParsingInvalidName.ts index 6c3c93d182e65..4e1019dffe34c 100644 --- a/tests/cases/compiler/jsdocParameterParsingInvalidName.ts +++ b/tests/cases/compiler/jsdocParameterParsingInvalidName.ts @@ -1,3 +1,4 @@ +// @strict: false class c { /** * @param {string} [`foo] diff --git a/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts b/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts index bcabe980915d0..9ac5aaf083d89 100644 --- a/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts +++ b/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsxEmitWithAttributes.ts b/tests/cases/compiler/jsxEmitWithAttributes.ts index 1fb7a9ccf8dd1..b6fd56393e70a 100644 --- a/tests/cases/compiler/jsxEmitWithAttributes.ts +++ b/tests/cases/compiler/jsxEmitWithAttributes.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryAndReactNamespace.ts b/tests/cases/compiler/jsxFactoryAndReactNamespace.ts index 92ef3535e786a..92548a6b9a3ab 100644 --- a/tests/cases/compiler/jsxFactoryAndReactNamespace.ts +++ b/tests/cases/compiler/jsxFactoryAndReactNamespace.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryIdentifier.ts b/tests/cases/compiler/jsxFactoryIdentifier.ts index 0ea5c7e850da5..446081c14bace 100644 --- a/tests/cases/compiler/jsxFactoryIdentifier.ts +++ b/tests/cases/compiler/jsxFactoryIdentifier.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts b/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts index b420d3fd3adc5..19f16484d5807 100644 --- a/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts +++ b/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts b/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts index e2d101c5f0998..eacd57541368c 100644 --- a/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts +++ b/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts b/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts index 73b25974f5e5c..66163171755e3 100644 --- a/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts +++ b/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts index 587e20ef8b999..cb31583509217 100644 --- a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts +++ b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts index aad8fc29a52db..5148c5f5ec967 100644 --- a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts +++ b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryQualifiedName.ts b/tests/cases/compiler/jsxFactoryQualifiedName.ts index 769b7cd566d78..d86455b31efd1 100644 --- a/tests/cases/compiler/jsxFactoryQualifiedName.ts +++ b/tests/cases/compiler/jsxFactoryQualifiedName.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts b/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts index 9b6d23e283e81..e3c6397e4b6f5 100644 --- a/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts +++ b/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts @@ -1,3 +1,4 @@ +// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts b/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts index 86fd9935a1f40..c29c1db6deae6 100644 --- a/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts +++ b/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs //@target: es5 //@jsx: react diff --git a/tests/cases/compiler/jsxPreserveWithJsInput.ts b/tests/cases/compiler/jsxPreserveWithJsInput.ts index f229e40a55012..66541649c6eb2 100644 --- a/tests/cases/compiler/jsxPreserveWithJsInput.ts +++ b/tests/cases/compiler/jsxPreserveWithJsInput.ts @@ -1,3 +1,4 @@ +// @strict: false // @outdir: out // @jsx: preserve // @allowjs: true diff --git a/tests/cases/compiler/jsxSpreadTag.ts b/tests/cases/compiler/jsxSpreadTag.ts index 06e5fec1f6ab0..b4204b1ff3f20 100644 --- a/tests/cases/compiler/jsxSpreadTag.ts +++ b/tests/cases/compiler/jsxSpreadTag.ts @@ -1,3 +1,4 @@ +// @strict: false // @jsx: react // @target: es2015,esnext // @filename: /a.tsx diff --git a/tests/cases/compiler/lambdaParamTypes.ts b/tests/cases/compiler/lambdaParamTypes.ts index 7a34d4a39ff34..8b96a06106ef1 100644 --- a/tests/cases/compiler/lambdaParamTypes.ts +++ b/tests/cases/compiler/lambdaParamTypes.ts @@ -1,3 +1,4 @@ +// @strict: false interface MyArrayWrapper { constructor(initialItems?: T[]); doSomething(predicate: (x: T, y: T) => string): void; diff --git a/tests/cases/compiler/letConstMatchingParameterNames.ts b/tests/cases/compiler/letConstMatchingParameterNames.ts index ceb3773bf4634..64118dd3e4fa9 100644 --- a/tests/cases/compiler/letConstMatchingParameterNames.ts +++ b/tests/cases/compiler/letConstMatchingParameterNames.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 // @target: es5 let parent = true; diff --git a/tests/cases/compiler/libMembers.ts b/tests/cases/compiler/libMembers.ts index 38111f20be342..39d9b5c8f7441 100644 --- a/tests/cases/compiler/libMembers.ts +++ b/tests/cases/compiler/libMembers.ts @@ -1,3 +1,4 @@ +// @strict: false var s="hello"; s.substring(0); s.substring(3,4); diff --git a/tests/cases/compiler/localClassesInLoop.ts b/tests/cases/compiler/localClassesInLoop.ts index 1d5f84d284332..9940300f1c24b 100644 --- a/tests/cases/compiler/localClassesInLoop.ts +++ b/tests/cases/compiler/localClassesInLoop.ts @@ -1,3 +1,4 @@ +// @strict: false declare function use(a: any); "use strict" diff --git a/tests/cases/compiler/localClassesInLoop_ES6.ts b/tests/cases/compiler/localClassesInLoop_ES6.ts index 6f0c2c6b33a00..4eeefdc7ab85b 100644 --- a/tests/cases/compiler/localClassesInLoop_ES6.ts +++ b/tests/cases/compiler/localClassesInLoop_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 declare function use(a: any); diff --git a/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts b/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts index fc9760c7a69b0..11c8cca72688b 100644 --- a/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts +++ b/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts @@ -1,2 +1,3 @@ +// @strict: false // @declaration: true type T0 = ({[K in keyof T]}) extends ({[key in K]: T[K]}) ? number : never; \ No newline at end of file diff --git a/tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts b/tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts index 6ece3a4964514..da177b65e9062 100644 --- a/tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts +++ b/tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace my.data.foo { export function buz() { } } diff --git a/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts b/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts index 9b11e62d2892d..772bf8faf44ec 100644 --- a/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts +++ b/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts @@ -1,3 +1,4 @@ +// @strict: false namespace my.data { export function buz() { } } diff --git a/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts b/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts index 8b58b1f545f39..211e137b84751 100644 --- a/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts +++ b/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts @@ -1,3 +1,4 @@ +// @strict: false namespace superContain { export namespace contain { export namespace my.buz { diff --git a/tests/cases/compiler/methodContainingLocalFunction.ts b/tests/cases/compiler/methodContainingLocalFunction.ts index 420ac612b2cde..dace65f9f8e26 100644 --- a/tests/cases/compiler/methodContainingLocalFunction.ts +++ b/tests/cases/compiler/methodContainingLocalFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // The first case here (BugExhibition) caused a crash. Try with different permutations of features. class BugExhibition { diff --git a/tests/cases/compiler/missingCloseParenStatements.ts b/tests/cases/compiler/missingCloseParenStatements.ts index 7ff34bdae6a16..37327d985bc8a 100644 --- a/tests/cases/compiler/missingCloseParenStatements.ts +++ b/tests/cases/compiler/missingCloseParenStatements.ts @@ -1,3 +1,4 @@ +// @strict: false var a1, a2, a3 = 0; if ( a1 && (a2 + a3 > 0) { while( (a2 > 0) && a1 diff --git a/tests/cases/compiler/missingFunctionImplementation.ts b/tests/cases/compiler/missingFunctionImplementation.ts index e261db3a6670e..f03814e2fb5e0 100644 --- a/tests/cases/compiler/missingFunctionImplementation.ts +++ b/tests/cases/compiler/missingFunctionImplementation.ts @@ -1,3 +1,4 @@ +// @strict: false export class C1 { m(): void; diff --git a/tests/cases/compiler/missingFunctionImplementation2.ts b/tests/cases/compiler/missingFunctionImplementation2.ts index 1717bc663f270..b41db19934487 100644 --- a/tests/cases/compiler/missingFunctionImplementation2.ts +++ b/tests/cases/compiler/missingFunctionImplementation2.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: missingFunctionImplementation2_a.ts export {}; declare module "./missingFunctionImplementation2_b" { diff --git a/tests/cases/compiler/missingTypeArguments3.ts b/tests/cases/compiler/missingTypeArguments3.ts index a0644803af4eb..af9bc645f0159 100644 --- a/tests/cases/compiler/missingTypeArguments3.ts +++ b/tests/cases/compiler/missingTypeArguments3.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace linq { interface Enumerable { diff --git a/tests/cases/compiler/mixedExports.ts b/tests/cases/compiler/mixedExports.ts index 896cb550f4879..ff1ec1969c252 100644 --- a/tests/cases/compiler/mixedExports.ts +++ b/tests/cases/compiler/mixedExports.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace M { function foo(); export function foo(); diff --git a/tests/cases/compiler/mixingFunctionAndAmbientModule1.ts b/tests/cases/compiler/mixingFunctionAndAmbientModule1.ts index f6271a80ce33e..198d2c39be437 100644 --- a/tests/cases/compiler/mixingFunctionAndAmbientModule1.ts +++ b/tests/cases/compiler/mixingFunctionAndAmbientModule1.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { declare namespace My { export var x: number; diff --git a/tests/cases/compiler/mixingStaticAndInstanceOverloads.ts b/tests/cases/compiler/mixingStaticAndInstanceOverloads.ts index 4def8fcde3e0c..9fa1c50f71771 100644 --- a/tests/cases/compiler/mixingStaticAndInstanceOverloads.ts +++ b/tests/cases/compiler/mixingStaticAndInstanceOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false class C1 { // ERROR foo1(n: number); diff --git a/tests/cases/compiler/modFunctionCrash.ts b/tests/cases/compiler/modFunctionCrash.ts index c1099f974bb59..e1d84c58f171e 100644 --- a/tests/cases/compiler/modFunctionCrash.ts +++ b/tests/cases/compiler/modFunctionCrash.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace Q { function f(fn:()=>void); // typechecking the function type shouldnot crash the compiler } diff --git a/tests/cases/compiler/modifierOnParameter1.ts b/tests/cases/compiler/modifierOnParameter1.ts index 931911af9b4be..43a464e3bf904 100644 --- a/tests/cases/compiler/modifierOnParameter1.ts +++ b/tests/cases/compiler/modifierOnParameter1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(declare p) { } } \ No newline at end of file diff --git a/tests/cases/compiler/modularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts b/tests/cases/compiler/modularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts index 51a0ee5d1f532..84ced3a2d8794 100644 --- a/tests/cases/compiler/modularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts +++ b/tests/cases/compiler/modularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5,es2015.core,es2015.symbol.wellknown function f(x: number, y: number, z: number) { diff --git a/tests/cases/compiler/moduleAugmentationCollidingNamesInAugmentation1.ts b/tests/cases/compiler/moduleAugmentationCollidingNamesInAugmentation1.ts index 7cbb78a333bb0..9c6c143a0f133 100644 --- a/tests/cases/compiler/moduleAugmentationCollidingNamesInAugmentation1.ts +++ b/tests/cases/compiler/moduleAugmentationCollidingNamesInAugmentation1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts b/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts index b4b286db5023e..4f2123da01a11 100644 --- a/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts +++ b/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: x0.ts diff --git a/tests/cases/compiler/moduleAugmentationGlobal4.ts b/tests/cases/compiler/moduleAugmentationGlobal4.ts index 44ba2ba9c573a..e4f0b7265bf70 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal4.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal4.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationGlobal5.ts b/tests/cases/compiler/moduleAugmentationGlobal5.ts index f0af540ff60b1..06f36f17a3ac9 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal5.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal5.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @declaration: true // @noUncheckedSideEffectImports: false diff --git a/tests/cases/compiler/moduleAugmentationGlobal6.ts b/tests/cases/compiler/moduleAugmentationGlobal6.ts index 37e5e33725b2a..7a70c9f7d5ef8 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal6.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal6.ts @@ -1,3 +1,4 @@ +// @strict: false declare global { interface Array { x } } \ No newline at end of file diff --git a/tests/cases/compiler/moduleAugmentationGlobal6_1.ts b/tests/cases/compiler/moduleAugmentationGlobal6_1.ts index d255b7f83196c..7c9690a124bdb 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal6_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal6_1.ts @@ -1,3 +1,4 @@ +// @strict: false global { interface Array { x } } \ No newline at end of file diff --git a/tests/cases/compiler/moduleAugmentationGlobal7.ts b/tests/cases/compiler/moduleAugmentationGlobal7.ts index 66dd41c8bc9b1..f250e31c67f2f 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal7.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal7.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { declare global { interface Array { x } diff --git a/tests/cases/compiler/moduleAugmentationGlobal7_1.ts b/tests/cases/compiler/moduleAugmentationGlobal7_1.ts index b7d99dfd413f8..d834ea5b878bf 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal7_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal7_1.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { global { interface Array { x } diff --git a/tests/cases/compiler/moduleAugmentationGlobal8.ts b/tests/cases/compiler/moduleAugmentationGlobal8.ts index 5c00c49a8bf46..9014c70c7e358 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: esnext namespace A { diff --git a/tests/cases/compiler/moduleAugmentationGlobal8_1.ts b/tests/cases/compiler/moduleAugmentationGlobal8_1.ts index e4900a9be4c5e..224363232b950 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: esnext namespace A { diff --git a/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts b/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts index d9d367c4b74fc..8e93d26e48544 100644 --- a/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts +++ b/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts b/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts index 1b68bc37ca382..017fd8a289105 100644 --- a/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts +++ b/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts b/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts index 6741e58cc91d6..e699ddbc91114 100644 --- a/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts +++ b/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: foo.d.ts export = Foo; export as namespace Foo; diff --git a/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts b/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts index 3792cc821e074..e3f153987eedd 100644 --- a/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts +++ b/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: amd // @declaration: true diff --git a/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts b/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts index 68d60977d6204..0a4acde1351fd 100644 --- a/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts +++ b/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace TypeScript { export namespace CompilerDiagnostics { diff --git a/tests/cases/compiler/modulePreserve3.ts b/tests/cases/compiler/modulePreserve3.ts index c15e1b1d4c313..fc4991020130a 100644 --- a/tests/cases/compiler/modulePreserve3.ts +++ b/tests/cases/compiler/modulePreserve3.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: preserve // @target: esnext // @jsx: react-jsx diff --git a/tests/cases/compiler/modulePreserveTopLevelAwait1.ts b/tests/cases/compiler/modulePreserveTopLevelAwait1.ts index 16da28db4a006..79178a110a483 100644 --- a/tests/cases/compiler/modulePreserveTopLevelAwait1.ts +++ b/tests/cases/compiler/modulePreserveTopLevelAwait1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: preserve // @target: es2016, esnext // @noEmit: true diff --git a/tests/cases/compiler/moduleProperty2.ts b/tests/cases/compiler/moduleProperty2.ts index 2603148161d24..fe17bba13307c 100644 --- a/tests/cases/compiler/moduleProperty2.ts +++ b/tests/cases/compiler/moduleProperty2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { function f() { var x; diff --git a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported.ts b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported.ts index 931c1291e4800..f3fcb70dbbb17 100644 --- a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported.ts +++ b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true diff --git a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts index 42741fabad6c0..4cfbff085c726 100644 --- a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts +++ b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @allowJs: true // @traceResolution: true diff --git a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported3.ts b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported3.ts index b665f6932d78b..1fed08b1a144e 100644 --- a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported3.ts +++ b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported3.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @jsx: preserve // @traceResolution: true diff --git a/tests/cases/compiler/moduleResolution_explicitNodeModulesImport_implicitAny.ts b/tests/cases/compiler/moduleResolution_explicitNodeModulesImport_implicitAny.ts index 97320be01377d..79df7b9d4f326 100644 --- a/tests/cases/compiler/moduleResolution_explicitNodeModulesImport_implicitAny.ts +++ b/tests/cases/compiler/moduleResolution_explicitNodeModulesImport_implicitAny.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @noImplicitReferences: true // @maxNodeModuleJsDepth: 0 diff --git a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot.ts b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot.ts index 64e46c4e71004..3d737515c31e7 100644 --- a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot.ts +++ b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true diff --git a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts index 9b9f35b41e772..83951ed733dfd 100644 --- a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts +++ b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true diff --git a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts index 4af56e48e1c3e..d46687b4d7107 100644 --- a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts +++ b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts @@ -1,3 +1,4 @@ +// @strict: false // @traceResolution: true // @Filename: /node_modules/foo/package.json diff --git a/tests/cases/compiler/moduleResolution_relativeImportJsFile.ts b/tests/cases/compiler/moduleResolution_relativeImportJsFile.ts index 41b6831d582a7..797fb58e7a05e 100644 --- a/tests/cases/compiler/moduleResolution_relativeImportJsFile.ts +++ b/tests/cases/compiler/moduleResolution_relativeImportJsFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @Filename: /src/b.js diff --git a/tests/cases/compiler/moduleUnassignedVariable.ts b/tests/cases/compiler/moduleUnassignedVariable.ts index 6d154df39773b..3d24d50ac2a76 100644 --- a/tests/cases/compiler/moduleUnassignedVariable.ts +++ b/tests/cases/compiler/moduleUnassignedVariable.ts @@ -1,3 +1,4 @@ +// @strict: false namespace Bar { export var a = 1; function fooA() { return a; } // Correct: return Bar.a diff --git a/tests/cases/compiler/moduleVisibilityTest1.ts b/tests/cases/compiler/moduleVisibilityTest1.ts index 6e71c4b10d9a5..e996bc23d5bb2 100644 --- a/tests/cases/compiler/moduleVisibilityTest1.ts +++ b/tests/cases/compiler/moduleVisibilityTest1.ts @@ -1,3 +1,4 @@ +// @strict: false namespace OuterMod { diff --git a/tests/cases/compiler/moduleVisibilityTest2.ts b/tests/cases/compiler/moduleVisibilityTest2.ts index 79c6187d7b895..d07d6d4e690dc 100644 --- a/tests/cases/compiler/moduleVisibilityTest2.ts +++ b/tests/cases/compiler/moduleVisibilityTest2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace OuterMod { diff --git a/tests/cases/compiler/module_augmentUninstantiatedModule.ts b/tests/cases/compiler/module_augmentUninstantiatedModule.ts index 4d71c6c1389f7..3a0b285a20e04 100644 --- a/tests/cases/compiler/module_augmentUninstantiatedModule.ts +++ b/tests/cases/compiler/module_augmentUninstantiatedModule.ts @@ -1,3 +1,4 @@ +// @strict: false declare module "foo" { namespace M {} var M; diff --git a/tests/cases/compiler/module_augmentUninstantiatedModule2.ts b/tests/cases/compiler/module_augmentUninstantiatedModule2.ts index cfe92bd777015..e16126fe66408 100644 --- a/tests/cases/compiler/module_augmentUninstantiatedModule2.ts +++ b/tests/cases/compiler/module_augmentUninstantiatedModule2.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @moduleResolution: bundler diff --git a/tests/cases/compiler/moduledecl.ts b/tests/cases/compiler/moduledecl.ts index 8d97e7e73e7a3..0a1a9cf387751 100644 --- a/tests/cases/compiler/moduledecl.ts +++ b/tests/cases/compiler/moduledecl.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // @target: es5 diff --git a/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts b/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts index 96b552641492f..db50c137b38fa 100644 --- a/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts +++ b/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts @@ -1,3 +1,4 @@ +// @strict: false return this.edit(role) .then((role: Role) => this.roleService.add(role) diff --git a/tests/cases/compiler/multiModuleFundule1.ts b/tests/cases/compiler/multiModuleFundule1.ts index 0ab97b6db18fc..28cf19cdb4467 100644 --- a/tests/cases/compiler/multiModuleFundule1.ts +++ b/tests/cases/compiler/multiModuleFundule1.ts @@ -1,3 +1,4 @@ +// @strict: false function C(x: number) { } namespace C { diff --git a/tests/cases/compiler/multipleClassPropertyModifiers.ts b/tests/cases/compiler/multipleClassPropertyModifiers.ts index 8357b5b66760e..7eb233e8c8960 100644 --- a/tests/cases/compiler/multipleClassPropertyModifiers.ts +++ b/tests/cases/compiler/multipleClassPropertyModifiers.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public static p1; static public p2; diff --git a/tests/cases/compiler/multipleClassPropertyModifiersErrors.ts b/tests/cases/compiler/multipleClassPropertyModifiersErrors.ts index fba38cf1b0017..d5c233d547a8b 100644 --- a/tests/cases/compiler/multipleClassPropertyModifiersErrors.ts +++ b/tests/cases/compiler/multipleClassPropertyModifiersErrors.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public public p1; private private p2; diff --git a/tests/cases/compiler/multipleExportAssignments.ts b/tests/cases/compiler/multipleExportAssignments.ts index 80ab81445ba1d..cb7eac3f375e0 100644 --- a/tests/cases/compiler/multipleExportAssignments.ts +++ b/tests/cases/compiler/multipleExportAssignments.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs interface connectModule { (res, req, next): void; diff --git a/tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts b/tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts index 712debc72698d..649c2bb09432d 100644 --- a/tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts +++ b/tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false declare module "m1" { var a: number var b: number; diff --git a/tests/cases/compiler/multipleExports.ts b/tests/cases/compiler/multipleExports.ts index 0a56c9a719009..913e20caf26c7 100644 --- a/tests/cases/compiler/multipleExports.ts +++ b/tests/cases/compiler/multipleExports.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs export namespace M { diff --git a/tests/cases/compiler/multipleInheritance.ts b/tests/cases/compiler/multipleInheritance.ts index c15c6ec1fbc9f..8ce915c5fc9de 100644 --- a/tests/cases/compiler/multipleInheritance.ts +++ b/tests/cases/compiler/multipleInheritance.ts @@ -1,3 +1,4 @@ +// @strict: false class B1 { public x; } diff --git a/tests/cases/compiler/multivar.ts b/tests/cases/compiler/multivar.ts index 421d32b760d64..72a48396a5909 100644 --- a/tests/cases/compiler/multivar.ts +++ b/tests/cases/compiler/multivar.ts @@ -1,3 +1,4 @@ +// @strict: false var a,b,c; var x=1,y=2,z=3; diff --git a/tests/cases/compiler/namedFunctionExpressionInModule.ts b/tests/cases/compiler/namedFunctionExpressionInModule.ts index f4da02d6ad273..149d9842ab914 100644 --- a/tests/cases/compiler/namedFunctionExpressionInModule.ts +++ b/tests/cases/compiler/namedFunctionExpressionInModule.ts @@ -1,3 +1,4 @@ +// @strict: false namespace Variables{ var x = function bar(a, b, c) { } diff --git a/tests/cases/compiler/namedImportNonExistentName.ts b/tests/cases/compiler/namedImportNonExistentName.ts index 234dce20f64e7..1384a53f55b4a 100644 --- a/tests/cases/compiler/namedImportNonExistentName.ts +++ b/tests/cases/compiler/namedImportNonExistentName.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: foo.d.ts export = Foo; export as namespace Foo; diff --git a/tests/cases/compiler/nestedBlockScopedBindings3.ts b/tests/cases/compiler/nestedBlockScopedBindings3.ts index e073bebadb963..b6630b71fdbef 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings3.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings3.ts @@ -1,3 +1,4 @@ +// @strict: false function a0() { { for (let x = 0; x < 1; ) { diff --git a/tests/cases/compiler/nestedBlockScopedBindings4.ts b/tests/cases/compiler/nestedBlockScopedBindings4.ts index 33ad21e2c429d..d05be62821359 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings4.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings4.ts @@ -1,3 +1,4 @@ +// @strict: false function a0() { for (let x; x < 1;) { x = x + 1; diff --git a/tests/cases/compiler/nestedBlockScopedBindings5.ts b/tests/cases/compiler/nestedBlockScopedBindings5.ts index 65093bcc91fd4..3445597e43fe3 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings5.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings5.ts @@ -1,3 +1,4 @@ +// @strict: false function a0() { for (let x in []) { x = x + 1; diff --git a/tests/cases/compiler/nestedBlockScopedBindings6.ts b/tests/cases/compiler/nestedBlockScopedBindings6.ts index badf1db6e59ae..602b8e73267e7 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings6.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings6.ts @@ -1,3 +1,4 @@ +// @strict: false function a0() { for (let x of [1]) { x = x + 1; diff --git a/tests/cases/compiler/nestedIndexer.ts b/tests/cases/compiler/nestedIndexer.ts index e9a30069fcac9..7c735e9fdf54e 100644 --- a/tests/cases/compiler/nestedIndexer.ts +++ b/tests/cases/compiler/nestedIndexer.ts @@ -1,3 +1,4 @@ +// @strict: false function then(x) { var match: { [index: number]: string; } diff --git a/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts b/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts index 210465b13dadf..6cbfc29c87747 100644 --- a/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts +++ b/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 declare let doSomething; diff --git a/tests/cases/compiler/nestedRecursiveLambda.ts b/tests/cases/compiler/nestedRecursiveLambda.ts index f1a7223a88a64..ac7dedb3f0769 100644 --- a/tests/cases/compiler/nestedRecursiveLambda.ts +++ b/tests/cases/compiler/nestedRecursiveLambda.ts @@ -1,3 +1,4 @@ +// @strict: false function f(a:any) { void (r =>(r => r)); } diff --git a/tests/cases/compiler/newNamesInGlobalAugmentations1.ts b/tests/cases/compiler/newNamesInGlobalAugmentations1.ts index 53189d5d28afd..9537e390d0ad7 100644 --- a/tests/cases/compiler/newNamesInGlobalAugmentations1.ts +++ b/tests/cases/compiler/newNamesInGlobalAugmentations1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @filename: f1.d.ts diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts index f5115b8a4c282..3c7180beee4d0 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts @@ -1,3 +1,4 @@ +// @strict: false class class1 { get a(): number { var x2 = { diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts index ba868edc566a8..17c936e745803 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts @@ -1,3 +1,4 @@ +// @strict: false class class1 { constructor() { var x2 = { diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts index 6e931b77de270..954d5c9175279 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 var console: { log(val: any); diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts index 66d30b29d2ee3..28bac5ae634b6 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts @@ -1,3 +1,4 @@ +// @strict: false declare function alert(message?: any): void; var x = { doStuff: (callback) => () => { diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInMethod.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInMethod.ts index 1c8fe8a794952..deb87af0dfb51 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInMethod.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInMethod.ts @@ -1,3 +1,4 @@ +// @strict: false var _this = 2; class a { method1() { diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts index 04328d06dc531..b4be84016028c 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class class1 { public prop1 = { doStuff: (callback) => () => { diff --git a/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts b/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts index 3f23fcf1258ab..9486d790f96e4 100644 --- a/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts +++ b/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 var console: { log(val: any); diff --git a/tests/cases/compiler/noCrashOnParameterNamedRequire.ts b/tests/cases/compiler/noCrashOnParameterNamedRequire.ts index bb4b9d53460f6..3d48cbdc5d96b 100644 --- a/tests/cases/compiler/noCrashOnParameterNamedRequire.ts +++ b/tests/cases/compiler/noCrashOnParameterNamedRequire.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @outDir: ./built diff --git a/tests/cases/compiler/noImplicitReturnsInAsync2.ts b/tests/cases/compiler/noImplicitReturnsInAsync2.ts index 20488b6bd370e..25ac1fefc3d29 100644 --- a/tests/cases/compiler/noImplicitReturnsInAsync2.ts +++ b/tests/cases/compiler/noImplicitReturnsInAsync2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @noImplicitReturns: true diff --git a/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts b/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts index f532b1280d31d..084de174dfe2f 100644 --- a/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts +++ b/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReturns: true function isMissingReturnExpression(): number { return; diff --git a/tests/cases/compiler/noImplicitThisFunctions.ts b/tests/cases/compiler/noImplicitThisFunctions.ts index 43890762e75b2..5dc7d60790473 100644 --- a/tests/cases/compiler/noImplicitThisFunctions.ts +++ b/tests/cases/compiler/noImplicitThisFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitThis: true function f1(x) { diff --git a/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts b/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts index 84e005afd54b6..15e2e0dee2b82 100644 --- a/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts +++ b/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // @noUnusedLocals: true class C { diff --git a/tests/cases/compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts b/tests/cases/compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts index 065c6f89e7a80..6f1fdad6bd808 100644 --- a/tests/cases/compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts +++ b/tests/cases/compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts @@ -1,3 +1,4 @@ +// @strict: false // @noUnusedLocals: true // @lib: es6 diff --git a/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts b/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts index 7715278f189c0..24bfad7827fa5 100644 --- a/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts +++ b/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // https://github.com/microsoft/TypeScript/issues/8775 diff --git a/tests/cases/compiler/nodeResolution4.ts b/tests/cases/compiler/nodeResolution4.ts index 39868ff504314..5bcb6ec95a8b8 100644 --- a/tests/cases/compiler/nodeResolution4.ts +++ b/tests/cases/compiler/nodeResolution4.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @moduleResolution: bundler // @filename: ref.ts diff --git a/tests/cases/compiler/nodeResolution6.ts b/tests/cases/compiler/nodeResolution6.ts index c513c6e6d44bb..b1cba10370e7e 100644 --- a/tests/cases/compiler/nodeResolution6.ts +++ b/tests/cases/compiler/nodeResolution6.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @moduleResolution: bundler // @filename: node_modules/ref.ts diff --git a/tests/cases/compiler/nodeResolution8.ts b/tests/cases/compiler/nodeResolution8.ts index 1961568239982..9b81058e94578 100644 --- a/tests/cases/compiler/nodeResolution8.ts +++ b/tests/cases/compiler/nodeResolution8.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @moduleResolution: bundler // @filename: node_modules/a/ref.ts diff --git a/tests/cases/compiler/nonArrayRestArgs.ts b/tests/cases/compiler/nonArrayRestArgs.ts index 7078266b91942..a4d2bed39e8e4 100644 --- a/tests/cases/compiler/nonArrayRestArgs.ts +++ b/tests/cases/compiler/nonArrayRestArgs.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(...rest: number) { // error var x: string = rest[0]; return x; diff --git a/tests/cases/compiler/nonContextuallyTypedLogicalOr.ts b/tests/cases/compiler/nonContextuallyTypedLogicalOr.ts index cadd60ea398bb..3579b3a07ea83 100644 --- a/tests/cases/compiler/nonContextuallyTypedLogicalOr.ts +++ b/tests/cases/compiler/nonContextuallyTypedLogicalOr.ts @@ -1,3 +1,4 @@ +// @strict: false interface Contextual { dummy; p?: number; diff --git a/tests/cases/compiler/nonExportedElementsOfMergedModules.ts b/tests/cases/compiler/nonExportedElementsOfMergedModules.ts index 280af189c59bd..d5de3298c9c84 100644 --- a/tests/cases/compiler/nonExportedElementsOfMergedModules.ts +++ b/tests/cases/compiler/nonExportedElementsOfMergedModules.ts @@ -1,3 +1,4 @@ +// @strict: false namespace One { enum A { X } namespace B { diff --git a/tests/cases/compiler/nonMergedOverloads.ts b/tests/cases/compiler/nonMergedOverloads.ts index 582cd72e1f4c1..2ea9ee61105a0 100644 --- a/tests/cases/compiler/nonMergedOverloads.ts +++ b/tests/cases/compiler/nonMergedOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false var f = 10; export function f(); diff --git a/tests/cases/compiler/null.ts b/tests/cases/compiler/null.ts index e8fa9a5d68724..3e02359409378 100644 --- a/tests/cases/compiler/null.ts +++ b/tests/cases/compiler/null.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true var x=null; diff --git a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts index de45315d8efc1..bb67d55617483 100644 --- a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts +++ b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 1..toString(); 1.0.toString(); diff --git a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts index 775175f70c02d..0f004b914142f 100644 --- a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts +++ b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 // @removeComments: true diff --git a/tests/cases/compiler/objectLitArrayDeclNoNew.ts b/tests/cases/compiler/objectLitArrayDeclNoNew.ts index 34b6eea40657c..ea3bbe056a81f 100644 --- a/tests/cases/compiler/objectLitArrayDeclNoNew.ts +++ b/tests/cases/compiler/objectLitArrayDeclNoNew.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 declare var console; "use strict"; diff --git a/tests/cases/compiler/objectLitIndexerContextualType.ts b/tests/cases/compiler/objectLitIndexerContextualType.ts index b687e226cfcf6..452df3a48b24d 100644 --- a/tests/cases/compiler/objectLitIndexerContextualType.ts +++ b/tests/cases/compiler/objectLitIndexerContextualType.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [s: string]: (s: string) => number; } diff --git a/tests/cases/compiler/objectLiteralArraySpecialization.ts b/tests/cases/compiler/objectLiteralArraySpecialization.ts index c152cf36c4b3d..bf9d3430842de 100644 --- a/tests/cases/compiler/objectLiteralArraySpecialization.ts +++ b/tests/cases/compiler/objectLiteralArraySpecialization.ts @@ -1,3 +1,4 @@ +// @strict: false declare function create(initialValues?: T[]): MyArrayWrapper; interface MyArrayWrapper { constructor(initialItems?: T[]); diff --git a/tests/cases/compiler/objectLiteralFreshnessWithSpread.ts b/tests/cases/compiler/objectLiteralFreshnessWithSpread.ts index 7e8044e064ac1..f03ac15511f1d 100644 --- a/tests/cases/compiler/objectLiteralFreshnessWithSpread.ts +++ b/tests/cases/compiler/objectLiteralFreshnessWithSpread.ts @@ -1,2 +1,3 @@ +// @strict: false let x = { b: 1, extra: 2 } let xx: { a, b } = { a: 1, ...x, z: 3 } // error for 'z', no error for 'extra' diff --git a/tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts b/tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts index 368d8d8eb4e44..9120079d59aea 100644 --- a/tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts +++ b/tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I2 { value: string; doStuff: (t: string) => string; diff --git a/tests/cases/compiler/objectPropertyAsClass.ts b/tests/cases/compiler/objectPropertyAsClass.ts index a4b32acfaae44..188540b39ef37 100644 --- a/tests/cases/compiler/objectPropertyAsClass.ts +++ b/tests/cases/compiler/objectPropertyAsClass.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/compiler/objectRestSpread.ts b/tests/cases/compiler/objectRestSpread.ts index 25c1512618273..51e9b376beb72 100644 --- a/tests/cases/compiler/objectRestSpread.ts +++ b/tests/cases/compiler/objectRestSpread.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @lib: es2018 // @noTypesAndSymbols: true diff --git a/tests/cases/compiler/optionalArgsWithDefaultValues.ts b/tests/cases/compiler/optionalArgsWithDefaultValues.ts index f42411392b296..34b45451895a6 100644 --- a/tests/cases/compiler/optionalArgsWithDefaultValues.ts +++ b/tests/cases/compiler/optionalArgsWithDefaultValues.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x: number, y?:boolean=false, z?=0) {} class CCC { diff --git a/tests/cases/compiler/optionalConstructorArgInSuper.ts b/tests/cases/compiler/optionalConstructorArgInSuper.ts index dcba7da8f9ebe..d74d800851054 100644 --- a/tests/cases/compiler/optionalConstructorArgInSuper.ts +++ b/tests/cases/compiler/optionalConstructorArgInSuper.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { constructor(opt?) { } foo(other?) { } diff --git a/tests/cases/compiler/optionalParamReferencingOtherParams3.ts b/tests/cases/compiler/optionalParamReferencingOtherParams3.ts index a8e12e45e88cc..fda7c94230a85 100644 --- a/tests/cases/compiler/optionalParamReferencingOtherParams3.ts +++ b/tests/cases/compiler/optionalParamReferencingOtherParams3.ts @@ -1,3 +1,4 @@ +// @strict: false function right(a = b, b = a) { a; b; diff --git a/tests/cases/compiler/optionalPropertiesSyntax.ts b/tests/cases/compiler/optionalPropertiesSyntax.ts index 4447575535c1d..d966997b47c51 100644 --- a/tests/cases/compiler/optionalPropertiesSyntax.ts +++ b/tests/cases/compiler/optionalPropertiesSyntax.ts @@ -1,3 +1,4 @@ +// @strict: false interface fnSigs { //functions signatures can be optional fn(): void; diff --git a/tests/cases/compiler/overload2.ts b/tests/cases/compiler/overload2.ts index 17e2dfd0b0b8a..5b3fd9b6ab254 100644 --- a/tests/cases/compiler/overload2.ts +++ b/tests/cases/compiler/overload2.ts @@ -1,3 +1,4 @@ +// @strict: false enum A { } enum B { } diff --git a/tests/cases/compiler/overloadCallTest.ts b/tests/cases/compiler/overloadCallTest.ts index 97d3265517703..73d605d487d48 100644 --- a/tests/cases/compiler/overloadCallTest.ts +++ b/tests/cases/compiler/overloadCallTest.ts @@ -1,3 +1,4 @@ +// @strict: false class foo { constructor() { function bar(): string; diff --git a/tests/cases/compiler/overloadConsecutiveness.ts b/tests/cases/compiler/overloadConsecutiveness.ts index ced6d88b80cf9..8018af3d33805 100644 --- a/tests/cases/compiler/overloadConsecutiveness.ts +++ b/tests/cases/compiler/overloadConsecutiveness.ts @@ -1,3 +1,4 @@ +// @strict: false // Making sure compiler won't break with declarations that are consecutive in the AST but not consecutive in the source. Syntax errors intentional. function f1(), function f1(); diff --git a/tests/cases/compiler/overloadCrash.ts b/tests/cases/compiler/overloadCrash.ts index 08aab87baabd7..dd16bc9fc3fb8 100644 --- a/tests/cases/compiler/overloadCrash.ts +++ b/tests/cases/compiler/overloadCrash.ts @@ -1,3 +1,4 @@ +// @strict: false interface I1 {a:number; b:number;}; interface I2 {c:number; d:number;}; interface I3 {a:number; b:number; c:number; d:number;}; diff --git a/tests/cases/compiler/overloadModifiersMustAgree.ts b/tests/cases/compiler/overloadModifiersMustAgree.ts index 95f95397422de..567092bc8d831 100644 --- a/tests/cases/compiler/overloadModifiersMustAgree.ts +++ b/tests/cases/compiler/overloadModifiersMustAgree.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs class baz { public foo(); diff --git a/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts b/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts index 8a9087da6eb76..818797ce30928 100644 --- a/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts +++ b/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(a: 'hi', x: string); function foo(a: 'hi', x: string); function foo(a: any, x: any) { diff --git a/tests/cases/compiler/overloadOnConstInBaseWithBadImplementationInDerived.ts b/tests/cases/compiler/overloadOnConstInBaseWithBadImplementationInDerived.ts index 0c2f252c9fdf7..6d3ee81789d45 100644 --- a/tests/cases/compiler/overloadOnConstInBaseWithBadImplementationInDerived.ts +++ b/tests/cases/compiler/overloadOnConstInBaseWithBadImplementationInDerived.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { x1(a: number, callback: (x: 'hi') => number); } diff --git a/tests/cases/compiler/overloadOnConstInCallback1.ts b/tests/cases/compiler/overloadOnConstInCallback1.ts index c3a6c973de0a5..ed40e13614a60 100644 --- a/tests/cases/compiler/overloadOnConstInCallback1.ts +++ b/tests/cases/compiler/overloadOnConstInCallback1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { x1(a: number, callback: (x: 'hi') => number); // error x1(a: number, callback: (x: any) => number) { diff --git a/tests/cases/compiler/overloadOnConstInObjectLiteralImplementingAnInterface.ts b/tests/cases/compiler/overloadOnConstInObjectLiteralImplementingAnInterface.ts index 3c1af2963b336..2866e609140c1 100644 --- a/tests/cases/compiler/overloadOnConstInObjectLiteralImplementingAnInterface.ts +++ b/tests/cases/compiler/overloadOnConstInObjectLiteralImplementingAnInterface.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { x1(a: number, callback: (x: 'hi') => number); } diff --git a/tests/cases/compiler/overloadOnConstInheritance4.ts b/tests/cases/compiler/overloadOnConstInheritance4.ts index 60013ee2eeefa..03354279bf6c9 100644 --- a/tests/cases/compiler/overloadOnConstInheritance4.ts +++ b/tests/cases/compiler/overloadOnConstInheritance4.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { x1(a: number, callback: (x: 'hi') => number); } diff --git a/tests/cases/compiler/overloadOnConstNoAnyImplementation.ts b/tests/cases/compiler/overloadOnConstNoAnyImplementation.ts index b16696f971080..20c01a4deeeb9 100644 --- a/tests/cases/compiler/overloadOnConstNoAnyImplementation.ts +++ b/tests/cases/compiler/overloadOnConstNoAnyImplementation.ts @@ -1,3 +1,4 @@ +// @strict: false function x1(a: number, cb: (x: 'hi') => number); function x1(a: number, cb: (x: 'bye') => number); function x1(a: number, cb: (x: string) => number) { diff --git a/tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts b/tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts index 3855aa942cb28..e1446e2b327e3 100644 --- a/tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts +++ b/tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { x1(a: number, callback: (x: 'hi') => number); } diff --git a/tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts b/tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts index cb836e590fc6a..683ed8c37f782 100644 --- a/tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts +++ b/tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts @@ -1,3 +1,4 @@ +// @strict: false class C { x1(a: 'hi'); // error, no non-specialized signature in overload list x1(a: string) { } diff --git a/tests/cases/compiler/overloadOnConstNoStringImplementation.ts b/tests/cases/compiler/overloadOnConstNoStringImplementation.ts index f130dd824070e..5021cbcbdeec1 100644 --- a/tests/cases/compiler/overloadOnConstNoStringImplementation.ts +++ b/tests/cases/compiler/overloadOnConstNoStringImplementation.ts @@ -1,3 +1,4 @@ +// @strict: false function x2(a: number, cb: (x: 'hi') => number); function x2(a: number, cb: (x: 'bye') => number); function x2(a: number, cb: (x: any) => number) { diff --git a/tests/cases/compiler/overloadOnConstNoStringImplementation2.ts b/tests/cases/compiler/overloadOnConstNoStringImplementation2.ts index 6028a896abb4a..7c99834eaf5bb 100644 --- a/tests/cases/compiler/overloadOnConstNoStringImplementation2.ts +++ b/tests/cases/compiler/overloadOnConstNoStringImplementation2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { x1(a: number, callback: (x: 'hi') => number); } diff --git a/tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts b/tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts index 083042c5edc34..500d990342e2a 100644 --- a/tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts +++ b/tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts @@ -1,3 +1,4 @@ +// @strict: false class A { a; } class B { b; } class C { c; } diff --git a/tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts b/tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts index f2a889538d09e..5a48afaf85320 100644 --- a/tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts +++ b/tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts @@ -1,3 +1,4 @@ +// @strict: false class Bar { public clone() { return new Bar(0); diff --git a/tests/cases/compiler/overloadResolutionOverCTLambda.ts b/tests/cases/compiler/overloadResolutionOverCTLambda.ts index 8a494c99f3fd7..b143d190a2db0 100644 --- a/tests/cases/compiler/overloadResolutionOverCTLambda.ts +++ b/tests/cases/compiler/overloadResolutionOverCTLambda.ts @@ -1,2 +1,3 @@ +// @strict: false function foo(b: (item: number) => boolean) { } foo(a => a); // can not convert (number)=>bool to (number)=>number \ No newline at end of file diff --git a/tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts b/tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts index eadaf7c77d749..2f8fab97869ff 100644 --- a/tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts +++ b/tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts @@ -1,3 +1,4 @@ +// @strict: false namespace Bugs { class A { } diff --git a/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts b/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts index 0929650b0655f..aa744fab56f33 100644 --- a/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts +++ b/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts @@ -1,3 +1,4 @@ +// @strict: false namespace Bugs { export interface IToken { startIndex:number; diff --git a/tests/cases/compiler/overloadResolutionTest1.ts b/tests/cases/compiler/overloadResolutionTest1.ts index 6c5a95f7463ac..60972b2e681d7 100644 --- a/tests/cases/compiler/overloadResolutionTest1.ts +++ b/tests/cases/compiler/overloadResolutionTest1.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(bar:{a:number;}[]):string; function foo(bar:{a:boolean;}[]):number; diff --git a/tests/cases/compiler/overloadResolutionWithAny.ts b/tests/cases/compiler/overloadResolutionWithAny.ts index f2384daee4fa5..6f30c1701d9f9 100644 --- a/tests/cases/compiler/overloadResolutionWithAny.ts +++ b/tests/cases/compiler/overloadResolutionWithAny.ts @@ -1,3 +1,4 @@ +// @strict: false var func: { (s: string): number; (s: any): string; diff --git a/tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts b/tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts index 758a7a13c51a3..51ed1165a65b4 100644 --- a/tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts +++ b/tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts @@ -1,3 +1,4 @@ +// @strict: false function x2(callback: (x?: number) => number); function x2(callback: (x: string) => number); function x2(callback: (x: any) => number) { } diff --git a/tests/cases/compiler/overloadingOnConstantsInImplementation.ts b/tests/cases/compiler/overloadingOnConstantsInImplementation.ts index 7724584168229..bb3ee2f20cbe9 100644 --- a/tests/cases/compiler/overloadingOnConstantsInImplementation.ts +++ b/tests/cases/compiler/overloadingOnConstantsInImplementation.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(a: 'hi', x: string); function foo(a: 'hi', x: string); function foo(a: 'hi', x: any) { diff --git a/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts b/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts index e0bb5846567a6..7b7340c4aa859 100644 --- a/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts +++ b/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { x } interface B { x; y } interface C { z } diff --git a/tests/cases/compiler/overloadsAndTypeArgumentArity.ts b/tests/cases/compiler/overloadsAndTypeArgumentArity.ts index ce0eab79d7396..416e5aeb183f7 100644 --- a/tests/cases/compiler/overloadsAndTypeArgumentArity.ts +++ b/tests/cases/compiler/overloadsAndTypeArgumentArity.ts @@ -1,3 +1,4 @@ +// @strict: false declare function Callbacks(flags?: string): void; declare function Callbacks(flags?: string): void; declare function Callbacks(flags?: string): void; diff --git a/tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts b/tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts index e8f93a86fd756..5e19d5ac2e1ca 100644 --- a/tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts +++ b/tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts @@ -1,3 +1,4 @@ +// @strict: false declare function Callbacks(flags?: string): void; declare function Callbacks(flags?: string): void; declare function Callbacks(flags?: string): void; diff --git a/tests/cases/compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts b/tests/cases/compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts index e177363ced6a0..d54ca6615a013 100644 --- a/tests/cases/compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts +++ b/tests/cases/compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace M { // Error because body is not ambient and this overload is export function f(); diff --git a/tests/cases/compiler/overloadsWithinClasses.ts b/tests/cases/compiler/overloadsWithinClasses.ts index 1af6811feba90..155dca3dca8c8 100644 --- a/tests/cases/compiler/overloadsWithinClasses.ts +++ b/tests/cases/compiler/overloadsWithinClasses.ts @@ -1,3 +1,4 @@ +// @strict: false class foo { static fnOverload( ) {} diff --git a/tests/cases/compiler/parameterPropertyOutsideConstructor.ts b/tests/cases/compiler/parameterPropertyOutsideConstructor.ts index d852e62ce15df..bb81b4572d4a8 100644 --- a/tests/cases/compiler/parameterPropertyOutsideConstructor.ts +++ b/tests/cases/compiler/parameterPropertyOutsideConstructor.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(public x) { } diff --git a/tests/cases/compiler/paramterDestrcuturingDeclaration.ts b/tests/cases/compiler/paramterDestrcuturingDeclaration.ts index d05d6076bf066..01a2fe3ad53f8 100644 --- a/tests/cases/compiler/paramterDestrcuturingDeclaration.ts +++ b/tests/cases/compiler/paramterDestrcuturingDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface C { diff --git a/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts b/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts index 00c1aca653382..ef8061b36ada8 100644 --- a/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts +++ b/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro from #20096 let foo = (async bar => bar); diff --git a/tests/cases/compiler/parseBigInt.ts b/tests/cases/compiler/parseBigInt.ts index e50fbb06c9820..ccc45bd947a40 100644 --- a/tests/cases/compiler/parseBigInt.ts +++ b/tests/cases/compiler/parseBigInt.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // All bases should allow "n" suffix diff --git a/tests/cases/compiler/parseErrorIncorrectReturnToken.ts b/tests/cases/compiler/parseErrorIncorrectReturnToken.ts index 0f45c38a3b1b5..8060944c6c1b9 100644 --- a/tests/cases/compiler/parseErrorIncorrectReturnToken.ts +++ b/tests/cases/compiler/parseErrorIncorrectReturnToken.ts @@ -1,3 +1,4 @@ +// @strict: false type F1 = { (n: number) => string; // should be : not => diff --git a/tests/cases/compiler/parseJsxExtends1.ts b/tests/cases/compiler/parseJsxExtends1.ts index 7dbf396d6efc8..88cbe5440f403 100644 --- a/tests/cases/compiler/parseJsxExtends1.ts +++ b/tests/cases/compiler/parseJsxExtends1.ts @@ -1,3 +1,4 @@ +// @strict: false // @jsx: react // @filename: index.tsx diff --git a/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts b/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts index 7f00e4b15e796..bc44c12abd7e6 100644 --- a/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts +++ b/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts @@ -1,3 +1,4 @@ +// @strict: false let x: { foo, bar } let y: { foo: number, bar } let z: { foo, bar: number } diff --git a/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts b/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts index 1c9be1bd45a12..edcec3ad407d6 100644 --- a/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts +++ b/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts b/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts index 4f892516d10b4..7c6d14cd4bff2 100644 --- a/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts +++ b/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: index.tsx // @jsx: preserve diff --git a/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts b/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts index 4ec21368fb8c7..5a00f6a96d1ae 100644 --- a/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts +++ b/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public f() { }; private m; diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution6_classic.ts b/tests/cases/compiler/pathMappingBasedModuleResolution6_classic.ts index 5ce4bd2a18f54..5e3a16f875d66 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution6_classic.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution6_classic.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @traceResolution: true diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts index 29a82e5412d9e..c213e1a2447b4 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @traceResolution: true diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts b/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts index 81c2328df670f..ccc0b8c4b95db 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @traceResolution: true diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts index 1ba9630e0cfab..8dcf7609bf21d 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @traceResolution: true diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts b/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts index 99e4070ff8a8f..8adfd0282f3a5 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true // @allowJs: true diff --git a/tests/cases/compiler/potentiallyUncalledDecorators.ts b/tests/cases/compiler/potentiallyUncalledDecorators.ts index 6a8bc35e43494..49afe4be72d64 100644 --- a/tests/cases/compiler/potentiallyUncalledDecorators.ts +++ b/tests/cases/compiler/potentiallyUncalledDecorators.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @experimentalDecorators: true diff --git a/tests/cases/compiler/predicateSemantics.ts b/tests/cases/compiler/predicateSemantics.ts index 2d36fb200e4fd..e5e22cafaac77 100644 --- a/tests/cases/compiler/predicateSemantics.ts +++ b/tests/cases/compiler/predicateSemantics.ts @@ -1,3 +1,4 @@ +// @strict: false declare let opt: number | undefined; // OK: One or other operand is possibly nullish diff --git a/tests/cases/compiler/primitiveMembers.ts b/tests/cases/compiler/primitiveMembers.ts index d68a96d87a450..7ccd5c3004a55 100644 --- a/tests/cases/compiler/primitiveMembers.ts +++ b/tests/cases/compiler/primitiveMembers.ts @@ -1,3 +1,4 @@ +// @strict: false var x = 5; var r = /yo/; r.source; diff --git a/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts b/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts index e9fda583a14b4..321f2000c434f 100644 --- a/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts +++ b/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd //@declaration: true export interface A { diff --git a/tests/cases/compiler/privacyGloImport.ts b/tests/cases/compiler/privacyGloImport.ts index a589e9e6ab288..aaa42313c8bdd 100644 --- a/tests/cases/compiler/privacyGloImport.ts +++ b/tests/cases/compiler/privacyGloImport.ts @@ -1,3 +1,4 @@ +// @strict: false //@declaration: true namespace m1 { export namespace m1_M1_public { diff --git a/tests/cases/compiler/privacyGloImportParseErrors.ts b/tests/cases/compiler/privacyGloImportParseErrors.ts index 0d725488952da..8ef5cf2b44363 100644 --- a/tests/cases/compiler/privacyGloImportParseErrors.ts +++ b/tests/cases/compiler/privacyGloImportParseErrors.ts @@ -1,3 +1,4 @@ +// @strict: false //@declaration: true namespace m1 { export namespace m1_M1_public { diff --git a/tests/cases/compiler/privacyGloInterface.ts b/tests/cases/compiler/privacyGloInterface.ts index b56a1da706387..db329c68d78cb 100644 --- a/tests/cases/compiler/privacyGloInterface.ts +++ b/tests/cases/compiler/privacyGloInterface.ts @@ -1,3 +1,4 @@ +// @strict: false namespace m1 { export class C1_public { private f1() { diff --git a/tests/cases/compiler/privacyImportParseErrors.ts b/tests/cases/compiler/privacyImportParseErrors.ts index fb9b58ae62995..6f037883a6803 100644 --- a/tests/cases/compiler/privacyImportParseErrors.ts +++ b/tests/cases/compiler/privacyImportParseErrors.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs export namespace m1 { export namespace m1_M1_public { diff --git a/tests/cases/compiler/privacyInterface.ts b/tests/cases/compiler/privacyInterface.ts index 13e0d107c09d4..463a9d88fb928 100644 --- a/tests/cases/compiler/privacyInterface.ts +++ b/tests/cases/compiler/privacyInterface.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs export namespace m1 { export class C1_public { diff --git a/tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts b/tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts index 8f2ab891ff891..71c8851f36463 100644 --- a/tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts +++ b/tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/privateNameWeakMapCollision.ts b/tests/cases/compiler/privateNameWeakMapCollision.ts index 22f4af36bf8f0..b9fb33552107a 100644 --- a/tests/cases/compiler/privateNameWeakMapCollision.ts +++ b/tests/cases/compiler/privateNameWeakMapCollision.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 function test() { diff --git a/tests/cases/compiler/promiseEmptyTupleNoException.ts b/tests/cases/compiler/promiseEmptyTupleNoException.ts index 84ae24816e4f2..d947f729483bb 100644 --- a/tests/cases/compiler/promiseEmptyTupleNoException.ts +++ b/tests/cases/compiler/promiseEmptyTupleNoException.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 export async function get(): Promise<[]> { let emails = []; diff --git a/tests/cases/compiler/promisePermutations.ts b/tests/cases/compiler/promisePermutations.ts index 80b3065555941..00796c2929865 100644 --- a/tests/cases/compiler/promisePermutations.ts +++ b/tests/cases/compiler/promisePermutations.ts @@ -1,3 +1,4 @@ +// @strict: false interface Promise { then(success?: (value: T) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; then(success?: (value: T) => Promise, error?: (error: any) => U, progress?: (progress: any) => void): Promise; diff --git a/tests/cases/compiler/promisePermutations2.ts b/tests/cases/compiler/promisePermutations2.ts index 406b77757a72c..9f07fea58d7ff 100644 --- a/tests/cases/compiler/promisePermutations2.ts +++ b/tests/cases/compiler/promisePermutations2.ts @@ -1,3 +1,4 @@ +// @strict: false // same as promisePermutations but without the same overloads in Promise interface Promise { diff --git a/tests/cases/compiler/promisePermutations3.ts b/tests/cases/compiler/promisePermutations3.ts index bde9bb49b1be2..1ac0aa98274af 100644 --- a/tests/cases/compiler/promisePermutations3.ts +++ b/tests/cases/compiler/promisePermutations3.ts @@ -1,3 +1,4 @@ +// @strict: false // same as promisePermutations but without the same overloads in IPromise interface Promise { diff --git a/tests/cases/compiler/promiseType.ts b/tests/cases/compiler/promiseType.ts index a61f9bcc65431..254171c639626 100644 --- a/tests/cases/compiler/promiseType.ts +++ b/tests/cases/compiler/promiseType.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 declare var p: Promise; declare var x: any; diff --git a/tests/cases/compiler/promiseTypeInference.ts b/tests/cases/compiler/promiseTypeInference.ts index 49d83ef0094f0..fbb1908c985eb 100644 --- a/tests/cases/compiler/promiseTypeInference.ts +++ b/tests/cases/compiler/promiseTypeInference.ts @@ -1,3 +1,4 @@ +// @strict: false declare class CPromise { then(success?: (value: T) => CPromise): CPromise; } diff --git a/tests/cases/compiler/promiseTypeInferenceUnion.ts b/tests/cases/compiler/promiseTypeInferenceUnion.ts index 7db7aebee4c95..a2bc355352a89 100644 --- a/tests/cases/compiler/promiseTypeInferenceUnion.ts +++ b/tests/cases/compiler/promiseTypeInferenceUnion.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @lib: esnext diff --git a/tests/cases/compiler/propertyAccess1.ts b/tests/cases/compiler/propertyAccess1.ts index 25acd55e92b0b..ecc567fe5a89a 100644 --- a/tests/cases/compiler/propertyAccess1.ts +++ b/tests/cases/compiler/propertyAccess1.ts @@ -1,3 +1,4 @@ +// @strict: false declare var foo: { a: number; }; foo.a = 4; foo.b = 5; \ No newline at end of file diff --git a/tests/cases/compiler/propertyAccess2.ts b/tests/cases/compiler/propertyAccess2.ts index a3f679598afe0..501d812d676f7 100644 --- a/tests/cases/compiler/propertyAccess2.ts +++ b/tests/cases/compiler/propertyAccess2.ts @@ -1,2 +1,3 @@ +// @strict: false declare var foo: number; foo.toBAZ(); \ No newline at end of file diff --git a/tests/cases/compiler/propertyAccess3.ts b/tests/cases/compiler/propertyAccess3.ts index 0950fb8d79cea..30eec90538cc9 100644 --- a/tests/cases/compiler/propertyAccess3.ts +++ b/tests/cases/compiler/propertyAccess3.ts @@ -1,2 +1,3 @@ +// @strict: false declare var foo: boolean; foo.toBAZ(); \ No newline at end of file diff --git a/tests/cases/compiler/propertyAccess6.ts b/tests/cases/compiler/propertyAccess6.ts index 1e1da68683d49..992025ad2ec1d 100644 --- a/tests/cases/compiler/propertyAccess6.ts +++ b/tests/cases/compiler/propertyAccess6.ts @@ -1,2 +1,3 @@ +// @strict: false var foo: any; foo.bar = 4; \ No newline at end of file diff --git a/tests/cases/compiler/propertyAccess7.ts b/tests/cases/compiler/propertyAccess7.ts index 9f4e35a4d12f9..918036ebd91fa 100644 --- a/tests/cases/compiler/propertyAccess7.ts +++ b/tests/cases/compiler/propertyAccess7.ts @@ -1,2 +1,3 @@ +// @strict: false var foo: string; foo.toUpperCase(); \ No newline at end of file diff --git a/tests/cases/compiler/propertyAccessExpressionInnerComments.ts b/tests/cases/compiler/propertyAccessExpressionInnerComments.ts index fff9401468a5b..83ccf242204d6 100644 --- a/tests/cases/compiler/propertyAccessExpressionInnerComments.ts +++ b/tests/cases/compiler/propertyAccessExpressionInnerComments.ts @@ -1,3 +1,4 @@ +// @strict: false /*1*/Array/*2*/./*3*/toString/*4*/ /*1*/Array diff --git a/tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts b/tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts index c5f28c5b09732..164bfefca03f4 100644 --- a/tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts +++ b/tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts @@ -1,3 +1,4 @@ +// @strict: false interface Test { readonly [key: string]: string; } diff --git a/tests/cases/compiler/propertyAccessOnObjectLiteral.ts b/tests/cases/compiler/propertyAccessOnObjectLiteral.ts index 89f4021e04be5..3579d66a9cbce 100644 --- a/tests/cases/compiler/propertyAccessOnObjectLiteral.ts +++ b/tests/cases/compiler/propertyAccessOnObjectLiteral.ts @@ -1,3 +1,4 @@ +// @strict: false class A { } ({}).toString(); diff --git a/tests/cases/compiler/propertyAccessibility1.ts b/tests/cases/compiler/propertyAccessibility1.ts index ea238fc05967f..1900771d33fe3 100644 --- a/tests/cases/compiler/propertyAccessibility1.ts +++ b/tests/cases/compiler/propertyAccessibility1.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { private privProp = 0; } diff --git a/tests/cases/compiler/propertyAccessibility2.ts b/tests/cases/compiler/propertyAccessibility2.ts index 354a8af185877..b6b237bcc0abd 100644 --- a/tests/cases/compiler/propertyAccessibility2.ts +++ b/tests/cases/compiler/propertyAccessibility2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private static x = 1; } diff --git a/tests/cases/compiler/propertyAssignment.ts b/tests/cases/compiler/propertyAssignment.ts index ff1c9083c9166..7bc93dfbf806f 100644 --- a/tests/cases/compiler/propertyAssignment.ts +++ b/tests/cases/compiler/propertyAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false declare var foo1: { new ():any; } diff --git a/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts b/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts index d215069686965..960a3b300095e 100644 --- a/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts +++ b/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @Filename: propertyIdentityWithPrivacyMismatch_0.ts declare module 'mod1' { diff --git a/tests/cases/compiler/propertyOrdering2.ts b/tests/cases/compiler/propertyOrdering2.ts index bfa7a99fbe528..51d690b92fb1d 100644 --- a/tests/cases/compiler/propertyOrdering2.ts +++ b/tests/cases/compiler/propertyOrdering2.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { constructor(public x, y) { } foo() { diff --git a/tests/cases/compiler/propertyParameterWithQuestionMark.ts b/tests/cases/compiler/propertyParameterWithQuestionMark.ts index ed388e0156e9c..c391aa911b151 100644 --- a/tests/cases/compiler/propertyParameterWithQuestionMark.ts +++ b/tests/cases/compiler/propertyParameterWithQuestionMark.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(public x?) { } } diff --git a/tests/cases/compiler/propertySignatures.ts b/tests/cases/compiler/propertySignatures.ts index dffe0b8833156..9c1c0eb1e6613 100644 --- a/tests/cases/compiler/propertySignatures.ts +++ b/tests/cases/compiler/propertySignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // Should be error - duplicate identifiers declare var foo1: { a:string; a: string; }; diff --git a/tests/cases/compiler/propertyWrappedInTry.ts b/tests/cases/compiler/propertyWrappedInTry.ts index 601842abefbfb..19b47373de72f 100644 --- a/tests/cases/compiler/propertyWrappedInTry.ts +++ b/tests/cases/compiler/propertyWrappedInTry.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { try { diff --git a/tests/cases/compiler/protectedMembers.ts b/tests/cases/compiler/protectedMembers.ts index bf3e32a653498..694162d2c54e6 100644 --- a/tests/cases/compiler/protectedMembers.ts +++ b/tests/cases/compiler/protectedMembers.ts @@ -1,3 +1,4 @@ +// @strict: false // Class with protected members class C1 { protected x!: number; diff --git a/tests/cases/compiler/protectedMembersThisParameter.ts b/tests/cases/compiler/protectedMembersThisParameter.ts index 7a1e3123f597a..e5f0a93f24349 100644 --- a/tests/cases/compiler/protectedMembersThisParameter.ts +++ b/tests/cases/compiler/protectedMembersThisParameter.ts @@ -1,3 +1,4 @@ +// @strict: false class Message { protected secret(): void {} } diff --git a/tests/cases/compiler/protoAsIndexInIndexExpression.ts b/tests/cases/compiler/protoAsIndexInIndexExpression.ts index 8764b70e58aeb..8e9b265e93d87 100644 --- a/tests/cases/compiler/protoAsIndexInIndexExpression.ts +++ b/tests/cases/compiler/protoAsIndexInIndexExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: protoAsIndexInIndexExpression_0.ts export var x; diff --git a/tests/cases/compiler/protoAssignment.ts b/tests/cases/compiler/protoAssignment.ts index eac3a4c7fa58e..46c9b7949464f 100644 --- a/tests/cases/compiler/protoAssignment.ts +++ b/tests/cases/compiler/protoAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false interface Number extends Comparable { diff --git a/tests/cases/compiler/protoInIndexer.ts b/tests/cases/compiler/protoInIndexer.ts index dc6a4cfe80922..7c7c00ea708ba 100644 --- a/tests/cases/compiler/protoInIndexer.ts +++ b/tests/cases/compiler/protoInIndexer.ts @@ -1,3 +1,4 @@ +// @strict: false class X { constructor() { this['__proto__'] = null; // used to cause ICE diff --git a/tests/cases/compiler/prototypeOnConstructorFunctions.ts b/tests/cases/compiler/prototypeOnConstructorFunctions.ts index 9db973372d370..d1a07624b7736 100644 --- a/tests/cases/compiler/prototypeOnConstructorFunctions.ts +++ b/tests/cases/compiler/prototypeOnConstructorFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false interface I1 { const: new (options?, element?) => any; } diff --git a/tests/cases/compiler/qualify.ts b/tests/cases/compiler/qualify.ts index e874f0057d2e0..a58dd0d77fdab 100644 --- a/tests/cases/compiler/qualify.ts +++ b/tests/cases/compiler/qualify.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export var m=0; export namespace N { diff --git a/tests/cases/compiler/reExportUndefined2.ts b/tests/cases/compiler/reExportUndefined2.ts index 0d3e381fcfa1e..18888e38ce8ac 100644 --- a/tests/cases/compiler/reExportUndefined2.ts +++ b/tests/cases/compiler/reExportUndefined2.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: a.ts diff --git a/tests/cases/compiler/reachabilityChecks1.ts b/tests/cases/compiler/reachabilityChecks1.ts index fbe742b383f2d..499b53a78ad4f 100644 --- a/tests/cases/compiler/reachabilityChecks1.ts +++ b/tests/cases/compiler/reachabilityChecks1.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: false // @preserveConstEnums: true diff --git a/tests/cases/compiler/reachabilityChecks11.ts b/tests/cases/compiler/reachabilityChecks11.ts index abcafb411331a..b8491c668d5ed 100644 --- a/tests/cases/compiler/reachabilityChecks11.ts +++ b/tests/cases/compiler/reachabilityChecks11.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: false // @preserveConstEnums: true diff --git a/tests/cases/compiler/reachabilityChecks4.ts b/tests/cases/compiler/reachabilityChecks4.ts index a853a6e996aa8..9dbcb828f0d68 100644 --- a/tests/cases/compiler/reachabilityChecks4.ts +++ b/tests/cases/compiler/reachabilityChecks4.ts @@ -1,3 +1,4 @@ +// @strict: false // @noFallthroughCasesInSwitch: true function foo(x, y) { diff --git a/tests/cases/compiler/reachabilityChecks5.ts b/tests/cases/compiler/reachabilityChecks5.ts index 97df11ccb79bb..5e864562f4e8a 100644 --- a/tests/cases/compiler/reachabilityChecks5.ts +++ b/tests/cases/compiler/reachabilityChecks5.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: false // @noImplicitReturns: true diff --git a/tests/cases/compiler/reachabilityChecks6.ts b/tests/cases/compiler/reachabilityChecks6.ts index 725563a44885a..6e48844ef2f99 100644 --- a/tests/cases/compiler/reachabilityChecks6.ts +++ b/tests/cases/compiler/reachabilityChecks6.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: false // @noImplicitReturns: true diff --git a/tests/cases/compiler/reachabilityChecks7.ts b/tests/cases/compiler/reachabilityChecks7.ts index 53702037e3fe0..c715849dbdfff 100644 --- a/tests/cases/compiler/reachabilityChecks7.ts +++ b/tests/cases/compiler/reachabilityChecks7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noImplicitReturns: true diff --git a/tests/cases/compiler/readonlyInNonPropertyParameters.ts b/tests/cases/compiler/readonlyInNonPropertyParameters.ts index e3334e3971986..4ecc5c9414ec2 100644 --- a/tests/cases/compiler/readonlyInNonPropertyParameters.ts +++ b/tests/cases/compiler/readonlyInNonPropertyParameters.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES5 // `readonly` won't work outside of property parameters diff --git a/tests/cases/compiler/recur1.ts b/tests/cases/compiler/recur1.ts index 61724f80e87a8..d32b4d64fabd0 100644 --- a/tests/cases/compiler/recur1.ts +++ b/tests/cases/compiler/recur1.ts @@ -1,3 +1,4 @@ +// @strict: false var salt:any = new salt.pepper(); salt.pepper = function() {} diff --git a/tests/cases/compiler/recursiveClassReferenceTest.ts b/tests/cases/compiler/recursiveClassReferenceTest.ts index a78e410ad1084..f511760732010 100644 --- a/tests/cases/compiler/recursiveClassReferenceTest.ts +++ b/tests/cases/compiler/recursiveClassReferenceTest.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 // @sourcemap: true // Scenario 1: Test reqursive function call with "this" parameter diff --git a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts index b6eeaf94687d6..ea741e89e4a41 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @Filename: recursiveExportAssignmentAndFindAliasedType7_moduleC.ts import self = require("./recursiveExportAssignmentAndFindAliasedType7_moduleD"); diff --git a/tests/cases/compiler/recursiveGetterAccess.ts b/tests/cases/compiler/recursiveGetterAccess.ts index 5d4e4b56c7531..a6741a81fb88a 100644 --- a/tests/cases/compiler/recursiveGetterAccess.ts +++ b/tests/cases/compiler/recursiveGetterAccess.ts @@ -1,3 +1,4 @@ +// @strict: false class MyClass { get testProp() { return this.testProp; } } diff --git a/tests/cases/compiler/recursiveInference1.ts b/tests/cases/compiler/recursiveInference1.ts index 55d2e1642f87a..59b303239a401 100644 --- a/tests/cases/compiler/recursiveInference1.ts +++ b/tests/cases/compiler/recursiveInference1.ts @@ -1,2 +1,3 @@ +// @strict: false function fib(x:number) { return x <= 1 ? x : fib(x - 1) + fib(x - 2); } var result = fib(5); \ No newline at end of file diff --git a/tests/cases/compiler/recursiveLetConst.ts b/tests/cases/compiler/recursiveLetConst.ts index 9e00ae22e9468..aff54f0b58489 100644 --- a/tests/cases/compiler/recursiveLetConst.ts +++ b/tests/cases/compiler/recursiveLetConst.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es6 'use strict' let x = x + 1; diff --git a/tests/cases/compiler/recursiveNamedLambdaCall.ts b/tests/cases/compiler/recursiveNamedLambdaCall.ts index 0c0a28d15e4f8..12070e54e6b5d 100644 --- a/tests/cases/compiler/recursiveNamedLambdaCall.ts +++ b/tests/cases/compiler/recursiveNamedLambdaCall.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 var promise = function( obj ) { diff --git a/tests/cases/compiler/recursiveProperties.ts b/tests/cases/compiler/recursiveProperties.ts index 3452c63338ff0..59ec19c4e125d 100644 --- a/tests/cases/compiler/recursiveProperties.ts +++ b/tests/cases/compiler/recursiveProperties.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 class A { get testProp() { return this.testProp; } diff --git a/tests/cases/compiler/recursiveSpecializationOfSignatures.ts b/tests/cases/compiler/recursiveSpecializationOfSignatures.ts index 77f2e5970ec74..3d26f28891ff9 100644 --- a/tests/cases/compiler/recursiveSpecializationOfSignatures.ts +++ b/tests/cases/compiler/recursiveSpecializationOfSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false class S0 { set S1(S2: S0) { } diff --git a/tests/cases/compiler/redeclareParameterInCatchBlock.ts b/tests/cases/compiler/redeclareParameterInCatchBlock.ts index bfadd6e378859..781c379a50c53 100644 --- a/tests/cases/compiler/redeclareParameterInCatchBlock.ts +++ b/tests/cases/compiler/redeclareParameterInCatchBlock.ts @@ -1,4 +1,4 @@ -// @useUnknownInCatchVariables: false +// @strict: false // @target: es6 try { diff --git a/tests/cases/compiler/reexportMissingDefault.ts b/tests/cases/compiler/reexportMissingDefault.ts index e661788188c49..aa1ecd35c01ad 100644 --- a/tests/cases/compiler/reexportMissingDefault.ts +++ b/tests/cases/compiler/reexportMissingDefault.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault1.ts b/tests/cases/compiler/reexportMissingDefault1.ts index 22f1966c6d416..1230c7369a8be 100644 --- a/tests/cases/compiler/reexportMissingDefault1.ts +++ b/tests/cases/compiler/reexportMissingDefault1.ts @@ -1,3 +1,4 @@ +// @strict: false // @esModuleInterop: true // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault2.ts b/tests/cases/compiler/reexportMissingDefault2.ts index e7649b88a4762..a1efaaae5dc0b 100644 --- a/tests/cases/compiler/reexportMissingDefault2.ts +++ b/tests/cases/compiler/reexportMissingDefault2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowSyntheticDefaultImports: true // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault3.ts b/tests/cases/compiler/reexportMissingDefault3.ts index e28659c87f6ab..00c737f858016 100644 --- a/tests/cases/compiler/reexportMissingDefault3.ts +++ b/tests/cases/compiler/reexportMissingDefault3.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault4.ts b/tests/cases/compiler/reexportMissingDefault4.ts index 96b3a1f030b07..86678398ae252 100644 --- a/tests/cases/compiler/reexportMissingDefault4.ts +++ b/tests/cases/compiler/reexportMissingDefault4.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: b.d.ts declare var b: number; export { b }; diff --git a/tests/cases/compiler/reexportMissingDefault5.ts b/tests/cases/compiler/reexportMissingDefault5.ts index d3cc13fe229c9..677585a7764c8 100644 --- a/tests/cases/compiler/reexportMissingDefault5.ts +++ b/tests/cases/compiler/reexportMissingDefault5.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @filename: b.d.ts declare var b: number; diff --git a/tests/cases/compiler/reexportMissingDefault6.ts b/tests/cases/compiler/reexportMissingDefault6.ts index 87debfc463f7a..18d0822dcf75a 100644 --- a/tests/cases/compiler/reexportMissingDefault6.ts +++ b/tests/cases/compiler/reexportMissingDefault6.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault7.ts b/tests/cases/compiler/reexportMissingDefault7.ts index 249b7cb4d9233..dfdc6d6017b1f 100644 --- a/tests/cases/compiler/reexportMissingDefault7.ts +++ b/tests/cases/compiler/reexportMissingDefault7.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: ES2015 // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault8.ts b/tests/cases/compiler/reexportMissingDefault8.ts index 2a8f19e9c114e..7f0dad9d1f3db 100644 --- a/tests/cases/compiler/reexportMissingDefault8.ts +++ b/tests/cases/compiler/reexportMissingDefault8.ts @@ -1,3 +1,4 @@ +// @strict: false // @esModuleInterop: true // @filename: b.ts const b = null; diff --git a/tests/cases/compiler/reexportNameAliasedAndHoisted.ts b/tests/cases/compiler/reexportNameAliasedAndHoisted.ts index e3c7b23f6de72..8d12653f8f85d 100644 --- a/tests/cases/compiler/reexportNameAliasedAndHoisted.ts +++ b/tests/cases/compiler/reexportNameAliasedAndHoisted.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: gridview.ts export type Sizing = any; export const Sizing = null; diff --git a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts index 5714dcb887e02..aedec78047a66 100644 --- a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts +++ b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 // @declaration: true // GH#37454, GH#41044 diff --git a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts index 3653d833b4303..0036701aea434 100644 --- a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts +++ b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: a.d.ts type O = { a: string; b: number; c: number; }; type F1 = (arg: number) => any; diff --git a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType3.ts b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType3.ts index 4b90494734855..8a38fc5d4ac53 100644 --- a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType3.ts +++ b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 const sym = Symbol(); type O = Record diff --git a/tests/cases/compiler/requiredInitializedParameter1.ts b/tests/cases/compiler/requiredInitializedParameter1.ts index 35d606426f069..0e20d1cefd821 100644 --- a/tests/cases/compiler/requiredInitializedParameter1.ts +++ b/tests/cases/compiler/requiredInitializedParameter1.ts @@ -1,3 +1,4 @@ +// @strict: false function f1(a, b = 0, c) { } function f2(a, b = 0, c = 0) { } function f3(a, b = 0, c?) { } diff --git a/tests/cases/compiler/requiredInitializedParameter2.ts b/tests/cases/compiler/requiredInitializedParameter2.ts index 48d42869ee7c8..3e81f89747c61 100644 --- a/tests/cases/compiler/requiredInitializedParameter2.ts +++ b/tests/cases/compiler/requiredInitializedParameter2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I1 { method(); } diff --git a/tests/cases/compiler/requiredInitializedParameter3.ts b/tests/cases/compiler/requiredInitializedParameter3.ts index 803eefb63420b..a34be72d07481 100644 --- a/tests/cases/compiler/requiredInitializedParameter3.ts +++ b/tests/cases/compiler/requiredInitializedParameter3.ts @@ -1,3 +1,4 @@ +// @strict: false //@declaration: true interface I1 { method(); diff --git a/tests/cases/compiler/requiredInitializedParameter4.ts b/tests/cases/compiler/requiredInitializedParameter4.ts index 4ba15878e43e2..94e2877b956a4 100644 --- a/tests/cases/compiler/requiredInitializedParameter4.ts +++ b/tests/cases/compiler/requiredInitializedParameter4.ts @@ -1,3 +1,4 @@ +// @strict: false //@declaration: true class C1 { method(a = 0, b) { } diff --git a/tests/cases/compiler/restArgMissingName.ts b/tests/cases/compiler/restArgMissingName.ts index 228ad17314123..52a2d9a50f54e 100644 --- a/tests/cases/compiler/restArgMissingName.ts +++ b/tests/cases/compiler/restArgMissingName.ts @@ -1 +1,2 @@ +// @strict: false function sum (...) {} diff --git a/tests/cases/compiler/restParamAsOptional.ts b/tests/cases/compiler/restParamAsOptional.ts index 57f439cbc95d9..5a74a4348350d 100644 --- a/tests/cases/compiler/restParamAsOptional.ts +++ b/tests/cases/compiler/restParamAsOptional.ts @@ -1,2 +1,3 @@ +// @strict: false function f(...x?) { } function f2(...x = []) { } \ No newline at end of file diff --git a/tests/cases/compiler/restParamModifier.ts b/tests/cases/compiler/restParamModifier.ts index 220b7d36d5e33..97533c12d4338 100644 --- a/tests/cases/compiler/restParamModifier.ts +++ b/tests/cases/compiler/restParamModifier.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(...public rest: string[]) {} } \ No newline at end of file diff --git a/tests/cases/compiler/restParamModifier2.ts b/tests/cases/compiler/restParamModifier2.ts index e007bc56d7c1e..b6a0df84b8c20 100644 --- a/tests/cases/compiler/restParamModifier2.ts +++ b/tests/cases/compiler/restParamModifier2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(public ...rest: string[]) {} } \ No newline at end of file diff --git a/tests/cases/compiler/restParameterNoTypeAnnotation.ts b/tests/cases/compiler/restParameterNoTypeAnnotation.ts index e6ecf95df0d70..a233909812ac6 100644 --- a/tests/cases/compiler/restParameterNoTypeAnnotation.ts +++ b/tests/cases/compiler/restParameterNoTypeAnnotation.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(...rest) { var x: number = rest[0]; return x; diff --git a/tests/cases/compiler/restParameterWithBindingPattern1.ts b/tests/cases/compiler/restParameterWithBindingPattern1.ts index bd6a3b9bbda64..cd2079ffcf085 100644 --- a/tests/cases/compiler/restParameterWithBindingPattern1.ts +++ b/tests/cases/compiler/restParameterWithBindingPattern1.ts @@ -1,3 +1,4 @@ +// @strict: false // @sourcemap: true function a(...{a, b}) { } \ No newline at end of file diff --git a/tests/cases/compiler/restParameterWithBindingPattern2.ts b/tests/cases/compiler/restParameterWithBindingPattern2.ts index d7057885040c5..4132c0f984b5f 100644 --- a/tests/cases/compiler/restParameterWithBindingPattern2.ts +++ b/tests/cases/compiler/restParameterWithBindingPattern2.ts @@ -1,3 +1,4 @@ +// @strict: false // @sourcemap: true function a(...[a, b]) { } \ No newline at end of file diff --git a/tests/cases/compiler/returnInfiniteIntersection.ts b/tests/cases/compiler/returnInfiniteIntersection.ts index 3bb0d1fcc7918..b2ff3b3be45a7 100644 --- a/tests/cases/compiler/returnInfiniteIntersection.ts +++ b/tests/cases/compiler/returnInfiniteIntersection.ts @@ -1,3 +1,4 @@ +// @strict: false function recursive() { let x = (subkey: T) => recursive(); return x as typeof x & { p }; diff --git a/tests/cases/compiler/returnStatement1.ts b/tests/cases/compiler/returnStatement1.ts index 06d1bdb956970..b0a72ba977a39 100644 --- a/tests/cases/compiler/returnStatement1.ts +++ b/tests/cases/compiler/returnStatement1.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true function f() { diff --git a/tests/cases/compiler/returnTypeParameterWithModules.ts b/tests/cases/compiler/returnTypeParameterWithModules.ts index 3b934b6b60408..f9542b6d2f566 100644 --- a/tests/cases/compiler/returnTypeParameterWithModules.ts +++ b/tests/cases/compiler/returnTypeParameterWithModules.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M1 { export function reduce(ar, f, e?): Array { return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]); diff --git a/tests/cases/compiler/returnValueInSetter.ts b/tests/cases/compiler/returnValueInSetter.ts index 18787f9649038..4423d3f3cd38f 100644 --- a/tests/cases/compiler/returnValueInSetter.ts +++ b/tests/cases/compiler/returnValueInSetter.ts @@ -1,3 +1,4 @@ +// @strict: false class f { set x(value) { return null; // Should be an error diff --git a/tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts b/tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts index b4902fda03763..37aa8307bb3a0 100644 --- a/tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts +++ b/tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private v; public p; static s; } class D extends C { public c() { diff --git a/tests/cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts b/tests/cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts index c4af82561385f..9f51238b0ce19 100644 --- a/tests/cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts +++ b/tests/cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private v; public p; static s; } class D extends C { static c() { diff --git a/tests/cases/compiler/scopeCheckInsidePublicMethod1.ts b/tests/cases/compiler/scopeCheckInsidePublicMethod1.ts index 8ff5746a60b09..c9e44e9069add 100644 --- a/tests/cases/compiler/scopeCheckInsidePublicMethod1.ts +++ b/tests/cases/compiler/scopeCheckInsidePublicMethod1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static s; public a() { diff --git a/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts b/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts index f35e7e1f5b7cd..01d65e23cbb80 100644 --- a/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts +++ b/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private v; public p; diff --git a/tests/cases/compiler/scopeTests.ts b/tests/cases/compiler/scopeTests.ts index 8cea58550d560..67ab6f69eac4d 100644 --- a/tests/cases/compiler/scopeTests.ts +++ b/tests/cases/compiler/scopeTests.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private v; public p; static s; } class D extends C { public v: number; diff --git a/tests/cases/compiler/selfReferencesInFunctionParameters.ts b/tests/cases/compiler/selfReferencesInFunctionParameters.ts index 95625b9dc95f7..75b005886de92 100644 --- a/tests/cases/compiler/selfReferencesInFunctionParameters.ts +++ b/tests/cases/compiler/selfReferencesInFunctionParameters.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x: number = x) { } diff --git a/tests/cases/compiler/setMethods.ts b/tests/cases/compiler/setMethods.ts index 14743ce8c2dfa..bd6b2da34cc90 100644 --- a/tests/cases/compiler/setMethods.ts +++ b/tests/cases/compiler/setMethods.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext let numberSet = new Set([0, 1, 2]); diff --git a/tests/cases/compiler/setterWithReturn.ts b/tests/cases/compiler/setterWithReturn.ts index cd194e5a072a3..f5570de3291a4 100644 --- a/tests/cases/compiler/setterWithReturn.ts +++ b/tests/cases/compiler/setterWithReturn.ts @@ -1,3 +1,4 @@ +// @strict: false class C234 { public set p1(arg1) { if (true) { diff --git a/tests/cases/compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts b/tests/cases/compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts index 8aec755a0cd6a..d4f257cddc4a6 100644 --- a/tests/cases/compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts +++ b/tests/cases/compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // https://github.com/microsoft/TypeScript/issues/2185 diff --git a/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts b/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts index d12ebad67caa3..33dd8ac15745b 100644 --- a/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts +++ b/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @noemit: true diff --git a/tests/cases/compiler/sourceMapValidationExportAssignment.ts b/tests/cases/compiler/sourceMapValidationExportAssignment.ts index 8b0a951415339..fe0b283b8e5d7 100644 --- a/tests/cases/compiler/sourceMapValidationExportAssignment.ts +++ b/tests/cases/compiler/sourceMapValidationExportAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @sourcemap: true class a { diff --git a/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts b/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts index ccf25ae59b7df..a42496e3027be 100644 --- a/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts +++ b/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs // @sourcemap: true class a { diff --git a/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts b/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts index a2f71510bbbf9..8f8d55502abbc 100644 --- a/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts +++ b/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts @@ -1,3 +1,4 @@ +// @strict: false interface Series { data: string[]; diff --git a/tests/cases/compiler/specializeVarArgs1.ts b/tests/cases/compiler/specializeVarArgs1.ts index a8441148175c5..e30c0d26e9aad 100644 --- a/tests/cases/compiler/specializeVarArgs1.ts +++ b/tests/cases/compiler/specializeVarArgs1.ts @@ -1,3 +1,4 @@ +// @strict: false interface Observable{ } diff --git a/tests/cases/compiler/specializedOverloadWithRestParameters.ts b/tests/cases/compiler/specializedOverloadWithRestParameters.ts index d746076e2c80e..c0cb8c9d7e02b 100644 --- a/tests/cases/compiler/specializedOverloadWithRestParameters.ts +++ b/tests/cases/compiler/specializedOverloadWithRestParameters.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { foo() { } } class Derived1 extends Base { bar() { } } function f(tagName: 'span', ...args): Derived1; // error diff --git a/tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts b/tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts index 72b2a2825df4d..2ceca922f5b76 100644 --- a/tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts +++ b/tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts @@ -1,3 +1,4 @@ +// @strict: false function x3(a: number, cb: (x: number) => number); function x3(a: string, cb: (x: number) => number); function x3(a: any, cb: (x: number) => number) { diff --git a/tests/cases/compiler/staticAsIdentifier.ts b/tests/cases/compiler/staticAsIdentifier.ts index acea65b9f09dc..f7f23fa415fe4 100644 --- a/tests/cases/compiler/staticAsIdentifier.ts +++ b/tests/cases/compiler/staticAsIdentifier.ts @@ -1,3 +1,4 @@ +// @strict: false class C1 { static static [x: string]: string; diff --git a/tests/cases/compiler/staticClassMemberError.ts b/tests/cases/compiler/staticClassMemberError.ts index 3d35e598622ea..64e406d3ff3d6 100644 --- a/tests/cases/compiler/staticClassMemberError.ts +++ b/tests/cases/compiler/staticClassMemberError.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static s; public a() { diff --git a/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts b/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts index aa78d4333c641..64a0ca8132db0 100644 --- a/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts +++ b/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { prop(); } diff --git a/tests/cases/compiler/staticModifierAlreadySeen.ts b/tests/cases/compiler/staticModifierAlreadySeen.ts index fdcc5cafda85d..6cd9dc0c65b6f 100644 --- a/tests/cases/compiler/staticModifierAlreadySeen.ts +++ b/tests/cases/compiler/staticModifierAlreadySeen.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static static foo = 1; public static static bar() { } diff --git a/tests/cases/compiler/structuralTypeInDeclareFileForModule.ts b/tests/cases/compiler/structuralTypeInDeclareFileForModule.ts index 12aec8fedfc6d..6058d68d33c32 100644 --- a/tests/cases/compiler/structuralTypeInDeclareFileForModule.ts +++ b/tests/cases/compiler/structuralTypeInDeclareFileForModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true namespace M { export var x; } diff --git a/tests/cases/compiler/super1.ts b/tests/cases/compiler/super1.ts index c982bc89e69ee..9631f8c51de24 100644 --- a/tests/cases/compiler/super1.ts +++ b/tests/cases/compiler/super1.ts @@ -1,3 +1,4 @@ +// @strict: false // Case 1 class Base1 { public foo() { diff --git a/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts b/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts index d633ccb018fc7..e8421cb1e591a 100644 --- a/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts +++ b/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts @@ -1,3 +1,4 @@ +// @strict: false class A { constructor(private map: (value: T1) => T2) { diff --git a/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts b/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts index c09fb37db2d09..a546133c9f34d 100644 --- a/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts +++ b/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts @@ -1,3 +1,4 @@ +// @strict: false class A { constructor(private map: (value: T1) => T2) { diff --git a/tests/cases/compiler/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts b/tests/cases/compiler/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts index 99755d87fbf23..d2ac0f6c71a0f 100644 --- a/tests/cases/compiler/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts +++ b/tests/cases/compiler/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts @@ -1,3 +1,4 @@ +// @strict: false class A { constructor(private map: (value: number) => string) { diff --git a/tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts b/tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts index 5f030bd5562bd..8e28e438474df 100644 --- a/tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts +++ b/tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts @@ -1,3 +1,4 @@ +// @strict: false class A { constructor(private map: (value: number) => string) { diff --git a/tests/cases/compiler/superCallFromFunction1.ts b/tests/cases/compiler/superCallFromFunction1.ts index 81874204e1af8..1e4de55f0399e 100644 --- a/tests/cases/compiler/superCallFromFunction1.ts +++ b/tests/cases/compiler/superCallFromFunction1.ts @@ -1,3 +1,4 @@ +// @strict: false function foo() { super(value => String(value)); diff --git a/tests/cases/compiler/superNewCall1.ts b/tests/cases/compiler/superNewCall1.ts index b3792d55221dd..79fbd6ae5bb23 100644 --- a/tests/cases/compiler/superNewCall1.ts +++ b/tests/cases/compiler/superNewCall1.ts @@ -1,3 +1,4 @@ +// @strict: false class A { constructor(private map: (value: T1) => T2) { diff --git a/tests/cases/compiler/superWithTypeArgument2.ts b/tests/cases/compiler/superWithTypeArgument2.ts index a7ecf3986faa9..aedefd55c0831 100644 --- a/tests/cases/compiler/superWithTypeArgument2.ts +++ b/tests/cases/compiler/superWithTypeArgument2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo: T; } diff --git a/tests/cases/compiler/switchCaseCircularRefeference.ts b/tests/cases/compiler/switchCaseCircularRefeference.ts index 060b90fa8a1cd..ceee4f6a1f698 100644 --- a/tests/cases/compiler/switchCaseCircularRefeference.ts +++ b/tests/cases/compiler/switchCaseCircularRefeference.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro from #9507 function f(x: {a: "A", b} | {a: "C", e}) { diff --git a/tests/cases/compiler/systemJsForInNoException.ts b/tests/cases/compiler/systemJsForInNoException.ts index e35c3aa24a353..51742b6379278 100644 --- a/tests/cases/compiler/systemJsForInNoException.ts +++ b/tests/cases/compiler/systemJsForInNoException.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @lib: es6,dom export const obj = { a: 1 }; diff --git a/tests/cases/compiler/systemModule11.ts b/tests/cases/compiler/systemModule11.ts index 15784b2f8c413..8ba8a55f61ec9 100644 --- a/tests/cases/compiler/systemModule11.ts +++ b/tests/cases/compiler/systemModule11.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/systemModule4.ts b/tests/cases/compiler/systemModule4.ts index 2dc46ee68e5f8..83c33f38a8425 100644 --- a/tests/cases/compiler/systemModule4.ts +++ b/tests/cases/compiler/systemModule4.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system export var x = 1; diff --git a/tests/cases/compiler/systemModule8.ts b/tests/cases/compiler/systemModule8.ts index 4490b2a85294f..cc3bfe33d4353 100644 --- a/tests/cases/compiler/systemModule8.ts +++ b/tests/cases/compiler/systemModule8.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // @module: system diff --git a/tests/cases/compiler/systemModuleAmbientDeclarations.ts b/tests/cases/compiler/systemModuleAmbientDeclarations.ts index 5cc0bb98b1e48..4516532efbc63 100644 --- a/tests/cases/compiler/systemModuleAmbientDeclarations.ts +++ b/tests/cases/compiler/systemModuleAmbientDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/systemModuleConstEnums.ts b/tests/cases/compiler/systemModuleConstEnums.ts index c3e37e3dbccd7..c93b4fd4bacfe 100644 --- a/tests/cases/compiler/systemModuleConstEnums.ts +++ b/tests/cases/compiler/systemModuleConstEnums.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system declare function use(a: any); diff --git a/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts b/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts index 0a50934847cd4..09ff0de67d2dc 100644 --- a/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts +++ b/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts b/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts index 3accdd66e844e..6d4ba209fe82f 100644 --- a/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts +++ b/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: es5 // Originated from #38558 diff --git a/tests/cases/compiler/targetTypeCastTest.ts b/tests/cases/compiler/targetTypeCastTest.ts index c8b9569b3ef1d..e5817a51dbd20 100644 --- a/tests/cases/compiler/targetTypeCastTest.ts +++ b/tests/cases/compiler/targetTypeCastTest.ts @@ -1,3 +1,4 @@ +// @strict: false declare var Point: { new(x:number, y:number): {x: number; y: number; }; } function Point(x, y) { diff --git a/tests/cases/compiler/targetTypeTest1.ts b/tests/cases/compiler/targetTypeTest1.ts index d2720f2b995e6..e7bbb9cc5f2ad 100644 --- a/tests/cases/compiler/targetTypeTest1.ts +++ b/tests/cases/compiler/targetTypeTest1.ts @@ -1,3 +1,4 @@ +// @strict: false declare class Point { constructor(x: number, y: number); diff --git a/tests/cases/compiler/testTypings.ts b/tests/cases/compiler/testTypings.ts index 3d58875ef11bd..b4a70ace11835 100644 --- a/tests/cases/compiler/testTypings.ts +++ b/tests/cases/compiler/testTypings.ts @@ -1,3 +1,4 @@ +// @strict: false interface IComparable { compareTo(other: T); } diff --git a/tests/cases/compiler/thisBinding.ts b/tests/cases/compiler/thisBinding.ts index 86a5bc89aa0e9..1ffdb8febe692 100644 --- a/tests/cases/compiler/thisBinding.ts +++ b/tests/cases/compiler/thisBinding.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export interface I { z; diff --git a/tests/cases/compiler/thisExpressionInIndexExpression.ts b/tests/cases/compiler/thisExpressionInIndexExpression.ts index 76c7ef9f9ef3b..dd00c53cf2a6e 100644 --- a/tests/cases/compiler/thisExpressionInIndexExpression.ts +++ b/tests/cases/compiler/thisExpressionInIndexExpression.ts @@ -1,3 +1,4 @@ +// @strict: false function f() { return r => r[this]; } \ No newline at end of file diff --git a/tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts b/tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts index 3ac1a2428a141..3cb5794e4ecd3 100644 --- a/tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts +++ b/tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts @@ -1,3 +1,4 @@ +// @strict: false function log(a) { } class Vector { diff --git a/tests/cases/compiler/thisInConstructorParameter1.ts b/tests/cases/compiler/thisInConstructorParameter1.ts index 560eab45f2b4d..44a6f4b6d8255 100644 --- a/tests/cases/compiler/thisInConstructorParameter1.ts +++ b/tests/cases/compiler/thisInConstructorParameter1.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { public y; constructor(x = this.y) { } diff --git a/tests/cases/compiler/thisInSuperCall.ts b/tests/cases/compiler/thisInSuperCall.ts index b7df7cbafad74..92bee95db847d 100644 --- a/tests/cases/compiler/thisInSuperCall.ts +++ b/tests/cases/compiler/thisInSuperCall.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { constructor(x: any) {} } diff --git a/tests/cases/compiler/thisInSuperCall1.ts b/tests/cases/compiler/thisInSuperCall1.ts index 4370d2b51aa7b..d8893068f344b 100644 --- a/tests/cases/compiler/thisInSuperCall1.ts +++ b/tests/cases/compiler/thisInSuperCall1.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { constructor(a: any) {} } diff --git a/tests/cases/compiler/thisInSuperCall2.ts b/tests/cases/compiler/thisInSuperCall2.ts index 2869ab9a80553..71c6cbd1bf641 100644 --- a/tests/cases/compiler/thisInSuperCall2.ts +++ b/tests/cases/compiler/thisInSuperCall2.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { constructor(a: any) {} } diff --git a/tests/cases/compiler/thisInSuperCall3.ts b/tests/cases/compiler/thisInSuperCall3.ts index c4448dad3314b..74819bb496d74 100644 --- a/tests/cases/compiler/thisInSuperCall3.ts +++ b/tests/cases/compiler/thisInSuperCall3.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { constructor(a: any) {} } diff --git a/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts b/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts index 390278bc0db16..ff0aac59e3d82 100644 --- a/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts +++ b/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts @@ -1,3 +1,4 @@ +// @strict: false var foo = (dummy) => { }; function test() { diff --git a/tests/cases/compiler/topLevel.ts b/tests/cases/compiler/topLevel.ts index f65df62a850ea..96b322c716488 100644 --- a/tests/cases/compiler/topLevel.ts +++ b/tests/cases/compiler/topLevel.ts @@ -1,3 +1,4 @@ +// @strict: false interface IPoint { x:number; y:number; diff --git a/tests/cases/compiler/topLevelBlockExpando.ts b/tests/cases/compiler/topLevelBlockExpando.ts index 35f758d040700..7fe85d6d138ac 100644 --- a/tests/cases/compiler/topLevelBlockExpando.ts +++ b/tests/cases/compiler/topLevelBlockExpando.ts @@ -1,3 +1,4 @@ +// @strict: false // https://github.com/microsoft/TypeScript/issues/31972 // @allowJs: true diff --git a/tests/cases/compiler/topLevelExports.ts b/tests/cases/compiler/topLevelExports.ts index 916004d89d898..b75616e9ff150 100644 --- a/tests/cases/compiler/topLevelExports.ts +++ b/tests/cases/compiler/topLevelExports.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd export var foo = 3; diff --git a/tests/cases/compiler/topLevelLambda.ts b/tests/cases/compiler/topLevelLambda.ts index 32172be6cd10d..1c9f2bd6aadd8 100644 --- a/tests/cases/compiler/topLevelLambda.ts +++ b/tests/cases/compiler/topLevelLambda.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { var f = () => {this.window;} } diff --git a/tests/cases/compiler/topLevelLambda2.ts b/tests/cases/compiler/topLevelLambda2.ts index 6e9d53f3b11fc..75e4eac2ca376 100644 --- a/tests/cases/compiler/topLevelLambda2.ts +++ b/tests/cases/compiler/topLevelLambda2.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x:any) {} foo(()=>this.window); \ No newline at end of file diff --git a/tests/cases/compiler/topLevelLambda4.ts b/tests/cases/compiler/topLevelLambda4.ts index badf43d900a61..ac4808598ebfb 100644 --- a/tests/cases/compiler/topLevelLambda4.ts +++ b/tests/cases/compiler/topLevelLambda4.ts @@ -1,2 +1,3 @@ +// @strict: false //@module: esnext export var x = () => this.window; \ No newline at end of file diff --git a/tests/cases/compiler/trailingCommasES5.ts b/tests/cases/compiler/trailingCommasES5.ts index b5518e69d90d0..d795edee5c173 100644 --- a/tests/cases/compiler/trailingCommasES5.ts +++ b/tests/cases/compiler/trailingCommasES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var o1 = { a: 1, b: 2 }; diff --git a/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts b/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts index 4f496dc6afe0c..47e5987eb28a9 100644 --- a/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts +++ b/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // https://github.com/Microsoft/TypeScript/issues/11236 diff --git a/tests/cases/compiler/transformsElideNullUndefinedType.ts b/tests/cases/compiler/transformsElideNullUndefinedType.ts index 4a493a91d8824..0140169796026 100644 --- a/tests/cases/compiler/transformsElideNullUndefinedType.ts +++ b/tests/cases/compiler/transformsElideNullUndefinedType.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var v0: null; diff --git a/tests/cases/compiler/typeAliasExport.ts b/tests/cases/compiler/typeAliasExport.ts index 914deba40b57c..98e4ec3532e8e 100644 --- a/tests/cases/compiler/typeAliasExport.ts +++ b/tests/cases/compiler/typeAliasExport.ts @@ -1,3 +1,4 @@ +// @strict: false declare module "a" { export default undefined export var a; diff --git a/tests/cases/compiler/typeArgumentConstraintResolution1.ts b/tests/cases/compiler/typeArgumentConstraintResolution1.ts index c8a0d235b7ac7..9485ca349ff1e 100644 --- a/tests/cases/compiler/typeArgumentConstraintResolution1.ts +++ b/tests/cases/compiler/typeArgumentConstraintResolution1.ts @@ -1,3 +1,4 @@ +// @strict: false function foo1(test: T); function foo1(test: string); function foo1(test: any) { } diff --git a/tests/cases/compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts b/tests/cases/compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts index cc215adbced8c..aa4b45aee0092 100644 --- a/tests/cases/compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts +++ b/tests/cases/compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts @@ -1,3 +1,4 @@ +// @strict: false interface Animal { x } interface Giraffe extends Animal { y } interface Elephant extends Animal { z } diff --git a/tests/cases/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.ts b/tests/cases/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.ts index 70be28f74eb3b..b83e8644f02da 100644 --- a/tests/cases/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.ts +++ b/tests/cases/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @declaration: true // @Filename: file1.ts diff --git a/tests/cases/compiler/typeCheckTypeArgument.ts b/tests/cases/compiler/typeCheckTypeArgument.ts index 1647f40dafb2e..9b98ada40122e 100644 --- a/tests/cases/compiler/typeCheckTypeArgument.ts +++ b/tests/cases/compiler/typeCheckTypeArgument.ts @@ -1,3 +1,4 @@ +// @strict: false var f: () => void; diff --git a/tests/cases/compiler/typeMatch1.ts b/tests/cases/compiler/typeMatch1.ts index 333d679f2d30a..e2e8fe8f99b82 100644 --- a/tests/cases/compiler/typeMatch1.ts +++ b/tests/cases/compiler/typeMatch1.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { z; } interface I2 { z; } diff --git a/tests/cases/compiler/typeMatch2.ts b/tests/cases/compiler/typeMatch2.ts index 695e12df22d70..ae3f261f98d53 100644 --- a/tests/cases/compiler/typeMatch2.ts +++ b/tests/cases/compiler/typeMatch2.ts @@ -1,3 +1,4 @@ +// @strict: false function f1() { var a = { x: 1, y: 2 }; a = {}; // error diff --git a/tests/cases/compiler/typeName1.ts b/tests/cases/compiler/typeName1.ts index dc877d288116f..8d34b1c7e24f9 100644 --- a/tests/cases/compiler/typeName1.ts +++ b/tests/cases/compiler/typeName1.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { k; } diff --git a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts index c268c5be54652..08663d891f407 100644 --- a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts +++ b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { (x: U[]) } diff --git a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts index 5d0653ad5be58..c296ea172dabb 100644 --- a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts +++ b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { foo(x: A>) } diff --git a/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts b/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts index 69dc8685793a0..7ff42d654bd3e 100644 --- a/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts +++ b/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts @@ -1,3 +1,4 @@ +// @strict: false function fee() { var t!: T; t.blah; // Error diff --git a/tests/cases/compiler/typeParameterExtendingUnion1.ts b/tests/cases/compiler/typeParameterExtendingUnion1.ts index 019e722f1e176..aad940a7b8fe2 100644 --- a/tests/cases/compiler/typeParameterExtendingUnion1.ts +++ b/tests/cases/compiler/typeParameterExtendingUnion1.ts @@ -1,3 +1,4 @@ +// @strict: false class Animal { run() { } } class Cat extends Animal { meow } class Dog extends Animal { woof } diff --git a/tests/cases/compiler/typeParameterExtendingUnion2.ts b/tests/cases/compiler/typeParameterExtendingUnion2.ts index 347999fa8eb89..4ae130d713060 100644 --- a/tests/cases/compiler/typeParameterExtendingUnion2.ts +++ b/tests/cases/compiler/typeParameterExtendingUnion2.ts @@ -1,3 +1,4 @@ +// @strict: false class Animal { run() { } } class Cat extends Animal { meow } class Dog extends Animal { woof } diff --git a/tests/cases/compiler/typeParameterFixingWithConstraints.ts b/tests/cases/compiler/typeParameterFixingWithConstraints.ts index 3d8536ab4cfd6..8ead90d30fd22 100644 --- a/tests/cases/compiler/typeParameterFixingWithConstraints.ts +++ b/tests/cases/compiler/typeParameterFixingWithConstraints.ts @@ -1,3 +1,4 @@ +// @strict: false interface IBar { [barId: string]: any; } diff --git a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts index c05b26fd2fcc5..d24329eb285c3 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts @@ -1,3 +1,4 @@ +// @strict: false function f(y: T, f: (x: T) => U, x: T): [T, U] { return [y, f(x)]; } interface A { a: A; } interface B extends A { b; } diff --git a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments2.ts b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments2.ts index 10af9d4817af3..b73d0babf96b9 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments2.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments2.ts @@ -1,3 +1,4 @@ +// @strict: false function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } interface A { a: A; } interface B extends A { b; } diff --git a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments3.ts b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments3.ts index 417b66d9d3f29..a116b51379b90 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments3.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments3.ts @@ -1,3 +1,4 @@ +// @strict: false function f(t1: T, u1: U, pf1: (u2: U) => T, pf2: (t2: T) => U): [T, U] { return [t1, pf2(t1)]; } interface A { a: A; } interface B extends A { b: B; } diff --git a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments4.ts b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments4.ts index 8fa501906b862..1e38ea16ab48c 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments4.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments4.ts @@ -1,3 +1,4 @@ +// @strict: false function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } interface A { a: A; } interface B extends A { b; } diff --git a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments5.ts b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments5.ts index a74eb04269229..049b11e224ebb 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments5.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments5.ts @@ -1,3 +1,4 @@ +// @strict: false function f(t1: T, u1: U, pf1: (u2: U) => T, pf2: (t2: T) => U): [T, U] { return [t1, pf2(t1)]; } interface A { a: A; } interface B extends A { b: any; } diff --git a/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts b/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts index 2e4fcb77c19ce..97a5d515b3807 100644 --- a/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts +++ b/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() { var x!: T; diff --git a/tests/cases/compiler/typeReferenceDirectives1.ts b/tests/cases/compiler/typeReferenceDirectives1.ts index e355e009152d4..cf18f5092fac1 100644 --- a/tests/cases/compiler/typeReferenceDirectives1.ts +++ b/tests/cases/compiler/typeReferenceDirectives1.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives10.ts b/tests/cases/compiler/typeReferenceDirectives10.ts index 1eb796d03fd25..4898b5e224d91 100644 --- a/tests/cases/compiler/typeReferenceDirectives10.ts +++ b/tests/cases/compiler/typeReferenceDirectives10.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives11.ts b/tests/cases/compiler/typeReferenceDirectives11.ts index 645e1da279c83..e556b4a0f55fe 100644 --- a/tests/cases/compiler/typeReferenceDirectives11.ts +++ b/tests/cases/compiler/typeReferenceDirectives11.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives12.ts b/tests/cases/compiler/typeReferenceDirectives12.ts index e7b0bda315198..01e289e067aaf 100644 --- a/tests/cases/compiler/typeReferenceDirectives12.ts +++ b/tests/cases/compiler/typeReferenceDirectives12.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives13.ts b/tests/cases/compiler/typeReferenceDirectives13.ts index f9dede73267bd..c8a0d40df5cfc 100644 --- a/tests/cases/compiler/typeReferenceDirectives13.ts +++ b/tests/cases/compiler/typeReferenceDirectives13.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives2.ts b/tests/cases/compiler/typeReferenceDirectives2.ts index 44218683a5a99..48ada16f0f15d 100644 --- a/tests/cases/compiler/typeReferenceDirectives2.ts +++ b/tests/cases/compiler/typeReferenceDirectives2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives3.ts b/tests/cases/compiler/typeReferenceDirectives3.ts index 8cb2152153de1..c2ca2f55246bb 100644 --- a/tests/cases/compiler/typeReferenceDirectives3.ts +++ b/tests/cases/compiler/typeReferenceDirectives3.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives4.ts b/tests/cases/compiler/typeReferenceDirectives4.ts index a098a2cec7ed0..a9efec22415da 100644 --- a/tests/cases/compiler/typeReferenceDirectives4.ts +++ b/tests/cases/compiler/typeReferenceDirectives4.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives5.ts b/tests/cases/compiler/typeReferenceDirectives5.ts index e81ae663e24f6..dad75ff02f17c 100644 --- a/tests/cases/compiler/typeReferenceDirectives5.ts +++ b/tests/cases/compiler/typeReferenceDirectives5.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives6.ts b/tests/cases/compiler/typeReferenceDirectives6.ts index edf2ece7e06dc..eb759e2923263 100644 --- a/tests/cases/compiler/typeReferenceDirectives6.ts +++ b/tests/cases/compiler/typeReferenceDirectives6.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives8.ts b/tests/cases/compiler/typeReferenceDirectives8.ts index bed69cbf35739..e9f222085ee0f 100644 --- a/tests/cases/compiler/typeReferenceDirectives8.ts +++ b/tests/cases/compiler/typeReferenceDirectives8.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives9.ts b/tests/cases/compiler/typeReferenceDirectives9.ts index 1ad1aa522885b..e497e0af2ee68 100644 --- a/tests/cases/compiler/typeReferenceDirectives9.ts +++ b/tests/cases/compiler/typeReferenceDirectives9.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeResolution.ts b/tests/cases/compiler/typeResolution.ts index 34832a8d9b2de..ab76032db3889 100644 --- a/tests/cases/compiler/typeResolution.ts +++ b/tests/cases/compiler/typeResolution.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @sourcemap: true export namespace TopLevelModule1 { diff --git a/tests/cases/compiler/typedArrays-es5.ts b/tests/cases/compiler/typedArrays-es5.ts index 73081fcf5ee0e..acfb3f70b237e 100644 --- a/tests/cases/compiler/typedArrays-es5.ts +++ b/tests/cases/compiler/typedArrays-es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 const float32Array = new Float32Array(1); diff --git a/tests/cases/compiler/typedArrays-es6.ts b/tests/cases/compiler/typedArrays-es6.ts index 9a9809d222f3a..fcf19659d7e1d 100644 --- a/tests/cases/compiler/typedArrays-es6.ts +++ b/tests/cases/compiler/typedArrays-es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 const float32Array = new Float32Array(1); diff --git a/tests/cases/compiler/typedArraysSubarray.ts b/tests/cases/compiler/typedArraysSubarray.ts index f85b953b83962..d0017a51cdeee 100644 --- a/tests/cases/compiler/typedArraysSubarray.ts +++ b/tests/cases/compiler/typedArraysSubarray.ts @@ -1,3 +1,4 @@ +// @strict: false function int8ArraySubarray() { var arr = new Int8Array(10); arr.subarray(); diff --git a/tests/cases/compiler/uncaughtCompilerError1.ts b/tests/cases/compiler/uncaughtCompilerError1.ts index 9e6c58254a8f5..79b68af21107d 100644 --- a/tests/cases/compiler/uncaughtCompilerError1.ts +++ b/tests/cases/compiler/uncaughtCompilerError1.ts @@ -1,3 +1,4 @@ +// @strict: false declare var index, lineTokens, token, tokens; function f() { diff --git a/tests/cases/compiler/undefinedTypeAssignment2.ts b/tests/cases/compiler/undefinedTypeAssignment2.ts index 3f42068e24e2e..d63095bdd01cb 100644 --- a/tests/cases/compiler/undefinedTypeAssignment2.ts +++ b/tests/cases/compiler/undefinedTypeAssignment2.ts @@ -1 +1,2 @@ +// @strict: false var undefined = void 0; diff --git a/tests/cases/compiler/underscoreTest1.ts b/tests/cases/compiler/underscoreTest1.ts index 27f74909b97d0..2604a88aa57b2 100644 --- a/tests/cases/compiler/underscoreTest1.ts +++ b/tests/cases/compiler/underscoreTest1.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: underscoreTest1_underscore.ts interface Dictionary { [x: string]: T; diff --git a/tests/cases/compiler/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts b/tests/cases/compiler/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts index 757c0f9917b37..1124f72104dc5 100644 --- a/tests/cases/compiler/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts +++ b/tests/cases/compiler/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts @@ -1,3 +1,4 @@ +// @strict: false interface IStringDictionary { [name: string]: V; } diff --git a/tests/cases/compiler/uniqueSymbolJs.ts b/tests/cases/compiler/uniqueSymbolJs.ts index faa4bd5fcf8ad..93b4323f8028b 100644 --- a/tests/cases/compiler/uniqueSymbolJs.ts +++ b/tests/cases/compiler/uniqueSymbolJs.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @checkJs: true // @allowJs: true diff --git a/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts b/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts index 2456cda2edfd5..da8c42d4c44f3 100644 --- a/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts +++ b/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts @@ -1,3 +1,4 @@ +// @strict: false // @noTypesAndSymbols: true // @esModuleInterop: true // @declaration: true diff --git a/tests/cases/compiler/unknownSymbols1.ts b/tests/cases/compiler/unknownSymbols1.ts index c091032a7da2a..c6c6502de7c31 100644 --- a/tests/cases/compiler/unknownSymbols1.ts +++ b/tests/cases/compiler/unknownSymbols1.ts @@ -1,3 +1,4 @@ +// @strict: false var x = asdf; var y: asdf; diff --git a/tests/cases/compiler/unknownSymbols2.ts b/tests/cases/compiler/unknownSymbols2.ts index 73b1706ec7060..ccc57f4fe633e 100644 --- a/tests/cases/compiler/unknownSymbols2.ts +++ b/tests/cases/compiler/unknownSymbols2.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { var x: asdf; var y = x + asdf; diff --git a/tests/cases/compiler/unknownTypeArgOnCall.ts b/tests/cases/compiler/unknownTypeArgOnCall.ts index f812a75d3bf2b..88a55542966c3 100644 --- a/tests/cases/compiler/unknownTypeArgOnCall.ts +++ b/tests/cases/compiler/unknownTypeArgOnCall.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { public clone() { return null; diff --git a/tests/cases/compiler/untypedArgumentInLambdaExpression.ts b/tests/cases/compiler/untypedArgumentInLambdaExpression.ts index 97fdc9e79adaf..a17ad6ea90f12 100644 --- a/tests/cases/compiler/untypedArgumentInLambdaExpression.ts +++ b/tests/cases/compiler/untypedArgumentInLambdaExpression.ts @@ -1,3 +1,4 @@ +// @strict: false declare function f(fn: (a: string) => string); f((input): string => { diff --git a/tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts b/tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts index 6f0e51577fcb1..bbc81cf04e1ff 100644 --- a/tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts +++ b/tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts @@ -1,3 +1,4 @@ +// @strict: false // none of these function calls should be allowed var x = function () { return; }; var r1 = x(); diff --git a/tests/cases/compiler/untypedModuleImport_withAugmentation2.ts b/tests/cases/compiler/untypedModuleImport_withAugmentation2.ts index 8cbf75b662b3b..18cbc927150fd 100644 --- a/tests/cases/compiler/untypedModuleImport_withAugmentation2.ts +++ b/tests/cases/compiler/untypedModuleImport_withAugmentation2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // This tests that augmenting an untyped module is forbidden even in an ambient context. Contrast with `moduleAugmentationInDependency.ts`. diff --git a/tests/cases/compiler/unusedDestructuring.ts b/tests/cases/compiler/unusedDestructuring.ts index 1d85f59c7d7ed..bfb47dfc87055 100644 --- a/tests/cases/compiler/unusedDestructuring.ts +++ b/tests/cases/compiler/unusedDestructuring.ts @@ -1,3 +1,4 @@ +// @strict: false // @noUnusedLocals: true // @noUnusedParameters: true diff --git a/tests/cases/compiler/unusedDestructuringParameters.ts b/tests/cases/compiler/unusedDestructuringParameters.ts index 7c04235104953..02dc332c8d225 100644 --- a/tests/cases/compiler/unusedDestructuringParameters.ts +++ b/tests/cases/compiler/unusedDestructuringParameters.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedParameters: true const f = ([a]) => { }; f([1]); diff --git a/tests/cases/compiler/unusedImports13.ts b/tests/cases/compiler/unusedImports13.ts index af188e70eae99..fb36ac6d41e66 100644 --- a/tests/cases/compiler/unusedImports13.ts +++ b/tests/cases/compiler/unusedImports13.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@module: commonjs //@jsx: preserve diff --git a/tests/cases/compiler/unusedImports14.ts b/tests/cases/compiler/unusedImports14.ts index 1823d4bb49b5f..6e18037561720 100644 --- a/tests/cases/compiler/unusedImports14.ts +++ b/tests/cases/compiler/unusedImports14.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@module: commonjs //@jsx: react diff --git a/tests/cases/compiler/unusedImports15.ts b/tests/cases/compiler/unusedImports15.ts index ef6b277d21de2..7ecc010fb6058 100644 --- a/tests/cases/compiler/unusedImports15.ts +++ b/tests/cases/compiler/unusedImports15.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@module: commonjs //@reactNamespace: Element diff --git a/tests/cases/compiler/unusedImports16.ts b/tests/cases/compiler/unusedImports16.ts index ff0c38bb75ea6..834c4752c8e8d 100644 --- a/tests/cases/compiler/unusedImports16.ts +++ b/tests/cases/compiler/unusedImports16.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@module: commonjs //@reactNamespace: Element diff --git a/tests/cases/compiler/unusedLocalsAndParameters.ts b/tests/cases/compiler/unusedLocalsAndParameters.ts index a3cab013b7e7e..d54c74a1853f4 100644 --- a/tests/cases/compiler/unusedLocalsAndParameters.ts +++ b/tests/cases/compiler/unusedLocalsAndParameters.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts b/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts index 75b98308199d5..b9aa2125c4901 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts b/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts index 32affb28be3d1..c7b520efb23ac 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts index b94f88845bc2e..d43d47d74f7ff 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts index 23d23a5bc1892..b0f8222262cb3 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts b/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts index 431d4fd15d8cb..79b3e615f5fe7 100644 --- a/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts +++ b/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts @@ -1,3 +1,4 @@ +// @strict: false // @noUnusedLocals:true // @Filename: /a.ts diff --git a/tests/cases/compiler/unusedMethodsInInterface.ts b/tests/cases/compiler/unusedMethodsInInterface.ts index 29769bc5b115c..d20364666e45c 100644 --- a/tests/cases/compiler/unusedMethodsInInterface.ts +++ b/tests/cases/compiler/unusedMethodsInInterface.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParameterProperty2.ts b/tests/cases/compiler/unusedParameterProperty2.ts index 4dc3c5d2dbf5d..21a3f728cb424 100644 --- a/tests/cases/compiler/unusedParameterProperty2.ts +++ b/tests/cases/compiler/unusedParameterProperty2.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParametersInLambda1.ts b/tests/cases/compiler/unusedParametersInLambda1.ts index 431ac1eb1dce7..4495c816e1de0 100644 --- a/tests/cases/compiler/unusedParametersInLambda1.ts +++ b/tests/cases/compiler/unusedParametersInLambda1.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParametersInLambda2.ts b/tests/cases/compiler/unusedParametersInLambda2.ts index ed4dfb3404b11..32c4678cc3c3a 100644 --- a/tests/cases/compiler/unusedParametersInLambda2.ts +++ b/tests/cases/compiler/unusedParametersInLambda2.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParametersWithUnderscore.ts b/tests/cases/compiler/unusedParametersWithUnderscore.ts index e7382e5c2af2c..e0f553b710833 100644 --- a/tests/cases/compiler/unusedParametersWithUnderscore.ts +++ b/tests/cases/compiler/unusedParametersWithUnderscore.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedPrivateMembers.ts b/tests/cases/compiler/unusedPrivateMembers.ts index 034446a63a09f..261023d59d3f5 100644 --- a/tests/cases/compiler/unusedPrivateMembers.ts +++ b/tests/cases/compiler/unusedPrivateMembers.ts @@ -1,3 +1,4 @@ +// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true //@target:ES5 diff --git a/tests/cases/compiler/varArgsOnConstructorTypes.ts b/tests/cases/compiler/varArgsOnConstructorTypes.ts index e6e4a2adc7221..6c70f1be95096 100644 --- a/tests/cases/compiler/varArgsOnConstructorTypes.ts +++ b/tests/cases/compiler/varArgsOnConstructorTypes.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd export class A { constructor(ctor) { } diff --git a/tests/cases/compiler/varAsID.ts b/tests/cases/compiler/varAsID.ts index ec8e61504b267..900559ea5e0f9 100644 --- a/tests/cases/compiler/varAsID.ts +++ b/tests/cases/compiler/varAsID.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { var; // ok diff --git a/tests/cases/compiler/varBlock.ts b/tests/cases/compiler/varBlock.ts index 5f3121656ba39..893ad101b69fe 100644 --- a/tests/cases/compiler/varBlock.ts +++ b/tests/cases/compiler/varBlock.ts @@ -1,3 +1,4 @@ +// @strict: false namespace m2 { export var a, b2: number = 10, b; diff --git a/tests/cases/compiler/vardecl.ts b/tests/cases/compiler/vardecl.ts index 8cdb4c8df225f..1e67daea2dc10 100644 --- a/tests/cases/compiler/vardecl.ts +++ b/tests/cases/compiler/vardecl.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true var simpleVar; diff --git a/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts b/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts index af0f733837910..16bcbc370b09e 100644 --- a/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts +++ b/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 namespace WinJS { export interface ValueCallback { diff --git a/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts b/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts index e3fcf1d34006d..9120386c13bb5 100644 --- a/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts +++ b/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: preserve // @verbatimModuleSyntax: true // @jsx: react diff --git a/tests/cases/compiler/voidOperator1.ts b/tests/cases/compiler/voidOperator1.ts index 90c1713edaea0..aa73e71d70f0a 100644 --- a/tests/cases/compiler/voidOperator1.ts +++ b/tests/cases/compiler/voidOperator1.ts @@ -1,3 +1,4 @@ +// @strict: false var x: any = void 1; var y: void = void 1; var z = void 1; \ No newline at end of file diff --git a/tests/cases/compiler/voidReturnLambdaValue.ts b/tests/cases/compiler/voidReturnLambdaValue.ts index 49aaa74af8f74..9432c65fac719 100644 --- a/tests/cases/compiler/voidReturnLambdaValue.ts +++ b/tests/cases/compiler/voidReturnLambdaValue.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(arg1, arg2, callback:(v1,v2,v3) => void):void { return callback(arg1, arg2, arg2); } \ No newline at end of file diff --git a/tests/cases/compiler/wellKnownSymbolExpando.ts b/tests/cases/compiler/wellKnownSymbolExpando.ts index b80fa2bb8b28d..e9ba31536e5ca 100644 --- a/tests/cases/compiler/wellKnownSymbolExpando.ts +++ b/tests/cases/compiler/wellKnownSymbolExpando.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @target: esnext diff --git a/tests/cases/compiler/widenedTypes1.ts b/tests/cases/compiler/widenedTypes1.ts index c4b20eff2ae49..1c61ec1c988ec 100644 --- a/tests/cases/compiler/widenedTypes1.ts +++ b/tests/cases/compiler/widenedTypes1.ts @@ -1,3 +1,4 @@ +// @strict: false var a = null; var b = undefined; diff --git a/tests/cases/compiler/withExportDecl.ts b/tests/cases/compiler/withExportDecl.ts index 0b13755c7ad1b..064d773e270f1 100644 --- a/tests/cases/compiler/withExportDecl.ts +++ b/tests/cases/compiler/withExportDecl.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @declaration: true var simpleVar; diff --git a/tests/cases/compiler/withImportDecl.ts b/tests/cases/compiler/withImportDecl.ts index 5da2eb17be2a3..f2391cfc65372 100644 --- a/tests/cases/compiler/withImportDecl.ts +++ b/tests/cases/compiler/withImportDecl.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd // @declaration: true // @Filename: withImportDecl_0.ts diff --git a/tests/cases/compiler/wrappedIncovations1.ts b/tests/cases/compiler/wrappedIncovations1.ts index 2c8ee00fe0eb2..7c858e6e87294 100644 --- a/tests/cases/compiler/wrappedIncovations1.ts +++ b/tests/cases/compiler/wrappedIncovations1.ts @@ -1,3 +1,4 @@ +// @strict: false var v = this .foo() .bar() diff --git a/tests/cases/compiler/wrappedIncovations2.ts b/tests/cases/compiler/wrappedIncovations2.ts index eba99b425e4cc..cfad042b84194 100644 --- a/tests/cases/compiler/wrappedIncovations2.ts +++ b/tests/cases/compiler/wrappedIncovations2.ts @@ -1,3 +1,4 @@ +// @strict: false var v = this. foo(). bar(). diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts index 58dfe44801310..00862a8821f57 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES5 namespace M { var Symbol: any; diff --git a/tests/cases/conformance/ambient/ambientDeclarations.ts b/tests/cases/conformance/ambient/ambientDeclarations.ts index 65312ebe82661..aac02d0712942 100644 --- a/tests/cases/conformance/ambient/ambientDeclarations.ts +++ b/tests/cases/conformance/ambient/ambientDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // Ambient variable without type annotation declare var n; diff --git a/tests/cases/conformance/ambient/ambientDeclarationsExternal.ts b/tests/cases/conformance/ambient/ambientDeclarationsExternal.ts index 698033cd27163..842925b05fea5 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsExternal.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsExternal.ts @@ -1,3 +1,4 @@ +// @strict: false //@Filename: decls.ts // Ambient external module with export assignment diff --git a/tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts b/tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts index d48f50bfa5059..4c5d12df3124b 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: declarations.d.ts declare module "foo*baz" { export function foo(s: string): void; diff --git a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging1.ts b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging1.ts index d9cd0802f417d..8de1bc560ffa7 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging1.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging1.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: types.ts declare module "*.foo" { let everywhere: string; diff --git a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging2.ts b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging2.ts index 7b02846c242b7..83c98ad7a3114 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging2.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging2.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: types.ts declare module "*.foo" { let everywhere: string; diff --git a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts index 85232eca2208b..715b6afa809b9 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: types.ts declare module "*.foo" { export interface OhNo { star: string } diff --git a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts index 76f9081906ca8..cd93a486d1c72 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts @@ -1 +1,2 @@ +// @strict: false declare module "too*many*asterisks" { } diff --git a/tests/cases/conformance/ambient/ambientErrors.ts b/tests/cases/conformance/ambient/ambientErrors.ts index ea0c92ab4fa37..9a91367b203e4 100644 --- a/tests/cases/conformance/ambient/ambientErrors.ts +++ b/tests/cases/conformance/ambient/ambientErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // Ambient variable with an initializer declare var x = 4; diff --git a/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts b/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts index a1b6cf479226f..0885ee94ab004 100644 --- a/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts +++ b/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { export declare var x; export declare function f(); diff --git a/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts b/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts index 937246c92dffb..6e550532bdb72 100644 --- a/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts +++ b/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd export declare var x; export declare function f(); diff --git a/tests/cases/conformance/async/asyncFunctionDeclarationParameterEvaluation.ts b/tests/cases/conformance/async/asyncFunctionDeclarationParameterEvaluation.ts index 034f10412d07f..942c566ad4d00 100644 --- a/tests/cases/conformance/async/asyncFunctionDeclarationParameterEvaluation.ts +++ b/tests/cases/conformance/async/asyncFunctionDeclarationParameterEvaluation.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015,es2017 // @lib: esnext // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts b/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts index 1ade02c09d2e8..8f6b822448d6c 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts index b11441372ffdc..5521f791d83e2 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true var f = (await) => { diff --git a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts index 9b5924fc1455f..a6be01fb86b77 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true function f(await = await) { diff --git a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts index aabe5a99372ad..953a245e86230 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts index 93254fee5c746..6d27ce06fdd2a 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true var foo = async (a = await => await): Promise => { diff --git a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es2017.ts b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es2017.ts index 9b63b7bd468c3..9f36c8447bcc3 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts b/tests/cases/conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts index 88ed3eea5fff4..574bf31123e10 100644 --- a/tests/cases/conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts +++ b/tests/cases/conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 class A { x() { diff --git a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration10_es2017.ts b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration10_es2017.ts index 9b744713945d0..ec91e7501ca4f 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration10_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration10_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true async function foo(a = await => await): Promise { diff --git a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration2_es2017.ts b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration2_es2017.ts index 08711a4cfbd8e..8d4264ef9c71e 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration2_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration2_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true function f(await) { diff --git a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration3_es2017.ts b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration3_es2017.ts index 9b5924fc1455f..a6be01fb86b77 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration3_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration3_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true function f(await = await) { diff --git a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration5_es2017.ts b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration5_es2017.ts index c57fb73d6d712..6bdfaaa5ab671 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration5_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration5_es2017.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2017 // @noEmitHelpers: true async function foo(await): Promise { diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts index e6bb588b2b0ac..025204f36ebd5 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 120b5127a0078..8ecd94eb07b51 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts index 810d7bc7e0568..8591b110fab9a 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts index 728e2e8ee7252..a70d7ec5c4264 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 7f1e072a3f2ae..8b5bc1317b98b 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts index 7db76c570848e..be37addad4f87 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/asyncSetter_es5.ts b/tests/cases/conformance/async/es5/asyncSetter_es5.ts index 419922b080618..8736cccfd67a5 100644 --- a/tests/cases/conformance/async/es5/asyncSetter_es5.ts +++ b/tests/cases/conformance/async/es5/asyncSetter_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts index f1cb80162bd40..a5831c35e1174 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts index 373677bf58f7a..2ffff7b450ee1 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts index b1e337938e00b..3a96ed9e35d40 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts index 810d7bc7e0568..8591b110fab9a 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts index 3c71741da143a..0accc5cfa74a7 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts b/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts index 1ade02c09d2e8..8f6b822448d6c 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts index bf39735d4603f..7f00a755f8686 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true var f = (await) => { diff --git a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts index 4ae27c596f1ab..1a990dc7c8383 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true function f(await = await) { diff --git a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts index 174a619bdf9f9..e7d58c107e94e 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts index da041fe472b30..e6ae414295971 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true var foo = async (a = await => await): Promise => { diff --git a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts index 6a5086f70d076..f49cd81f6945a 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es6/asyncSetter_es6.ts b/tests/cases/conformance/async/es6/asyncSetter_es6.ts index 8eedcbb5288a2..31ac42cd1d9ef 100644 --- a/tests/cases/conformance/async/es6/asyncSetter_es6.ts +++ b/tests/cases/conformance/async/es6/asyncSetter_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true class C { diff --git a/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts b/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts index 7b5ef4ac60b54..e2a7a52e7ae7b 100644 --- a/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts +++ b/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts @@ -1,4 +1,4 @@ -// @useUnknownInCatchVariables: false +// @strict: false // @target: es2015 // @noEmitHelpers: true // https://github.com/Microsoft/TypeScript/issues/20461 diff --git a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts index aab1f0013ecf9..1b7e814d548d6 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true async function foo(a = await => await): Promise { diff --git a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts index 74018b73678a9..f5407c313cf36 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true declare class Thenable { then(): void; } diff --git a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts index 25a153b4a3412..569920f2c94e1 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true function f(await) { diff --git a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts index 4ae27c596f1ab..1a990dc7c8383 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true function f(await = await) { diff --git a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts index eb3cd1db55675..50a0723847875 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @noEmitHelpers: true async function foo(await): Promise { diff --git a/tests/cases/conformance/asyncGenerators/asyncGeneratorParameterEvaluation.ts b/tests/cases/conformance/asyncGenerators/asyncGeneratorParameterEvaluation.ts index b4aef8f71d995..c315ef7af1677 100644 --- a/tests/cases/conformance/asyncGenerators/asyncGeneratorParameterEvaluation.ts +++ b/tests/cases/conformance/asyncGenerators/asyncGeneratorParameterEvaluation.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015,es2017,es2018 // @lib: esnext // @noEmitHelpers: true diff --git a/tests/cases/conformance/classes/awaitAndYieldInProperty.ts b/tests/cases/conformance/classes/awaitAndYieldInProperty.ts index 0de782de2132b..3e0d7a6b15799 100644 --- a/tests/cases/conformance/classes/awaitAndYieldInProperty.ts +++ b/tests/cases/conformance/classes/awaitAndYieldInProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2019 // @noTypesAndSymbols: true async function* test(x: Promise) { diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts index 2c59b6f93ccdf..6dff4c4e54af1 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 abstract class A { diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts index 747b8dafe6ec3..d1c4eda7e7d3c 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts @@ -1,3 +1,4 @@ +// @strict: false abstract class foo { protected abstract test(); } diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts index 14dfd1d86d840..f45c437677001 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts @@ -1,3 +1,4 @@ +// @strict: false declare abstract class A { abstract constructor() {} } diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractExtends.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractExtends.ts index 0aa57b75835f8..09afe442c31b6 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractExtends.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractExtends.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() {} diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractGeneric.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractGeneric.ts index f69ea30d0d69d..972f96881615a 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractGeneric.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractGeneric.ts @@ -1,3 +1,4 @@ +// @strict: false abstract class A { t: T; diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInheritance1.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInheritance1.ts index ced15607f84f9..9668986793d1e 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInheritance1.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInheritance1.ts @@ -1,3 +1,4 @@ +// @strict: false abstract class A {} abstract class B extends A {} diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts index 98a2091bc0cc5..d4b34334bea9c 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts @@ -1,3 +1,4 @@ +// @strict: false class A { abstract foo(); } diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts index 969a39288e09b..465f918893d70 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts @@ -1,3 +1,4 @@ +// @strict: false abstract class A { abstract foo_a(); diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverloads.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverloads.ts index c30a03f8217a8..57e049f43930c 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverloads.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false abstract class A { abstract foo(); abstract foo() : number; diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverrideWithAbstract.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverrideWithAbstract.ts index 7e02dbd4d9864..6afdcf18ed2e2 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverrideWithAbstract.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverrideWithAbstract.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() {} } diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSuperCalls.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSuperCalls.ts index e93a670b55fac..3286e775c209f 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSuperCalls.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSuperCalls.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo() { return 1; } diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractUsingAbstractMethods2.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractUsingAbstractMethods2.ts index e333811c67f1e..2e9e95333cb61 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractUsingAbstractMethods2.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractUsingAbstractMethods2.ts @@ -1,3 +1,4 @@ +// @strict: false class A { abstract foo(); } diff --git a/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts b/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts index e3664da024e28..c1380e36a3a7f 100644 --- a/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts +++ b/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts @@ -1,3 +1,4 @@ +// @strict: false function foo() { } var x = new foo(); // can be used as a constructor function diff --git a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.2.ts b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.2.ts index e7c43d68c98cd..6c4dd98275b7a 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.2.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.3.ts b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.3.ts index 7f55d82804fba..95611edacbde4 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.3.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.ts b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.ts index 1d6c683dc7486..f2d74313ad31e 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterInitializer.2.ts b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterInitializer.2.ts index a4f0657f2bfbd..387677c0cfb13 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterInitializer.2.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterInitializer.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts b/tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts index 75cdbd61d44ca..97037bd6d4b66 100644 --- a/tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts +++ b/tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2022 class C { diff --git a/tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts b/tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts index b3f535c4c3dfd..ca38abecd2b06 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor() { } // error constructor(x) { } // error diff --git a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts index bdbcd7f9592cb..b3ba19a8391ac 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(x); constructor(x = 1) { diff --git a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues2.ts b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues2.ts index a56389186ef1f..86e6bf1c0a2a0 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues2.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(x); constructor(public x: string = 1) { // error diff --git a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts index 3ec148a9729aa..61822575beaca 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo: string; constructor(x?, y?: any[]); diff --git a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyInAmbientClass.ts b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyInAmbientClass.ts index c84594eb4f097..a0e63f9e41433 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyInAmbientClass.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyInAmbientClass.ts @@ -1,3 +1,4 @@ +// @strict: false declare class C{ constructor(readonly x: number); method(readonly x: number); diff --git a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsWithThisArg.ts b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsWithThisArg.ts index 1ede3af785ccf..748e5ee30ff22 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsWithThisArg.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsWithThisArg.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { x: string; constructor(a) { } diff --git a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts index ab580777d8e5b..2cc495efc2e2b 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts @@ -1,3 +1,4 @@ +// @strict: false // @experimentaldecorators: true // @target: ES5 diff --git a/tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts b/tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts index 757a141bd7a4c..fc11a3fc40b65 100644 --- a/tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts +++ b/tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts @@ -1,3 +1,4 @@ +// @strict: false // private indexers not allowed var x = { diff --git a/tests/cases/conformance/classes/members/accessibility/classPropertyAsPrivate.ts b/tests/cases/conformance/classes/members/accessibility/classPropertyAsPrivate.ts index 04745bd8de561..ce5d89d7d5c46 100644 --- a/tests/cases/conformance/classes/members/accessibility/classPropertyAsPrivate.ts +++ b/tests/cases/conformance/classes/members/accessibility/classPropertyAsPrivate.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private x: string; private get y() { return null; } diff --git a/tests/cases/conformance/classes/members/accessibility/classPropertyAsProtected.ts b/tests/cases/conformance/classes/members/accessibility/classPropertyAsProtected.ts index ab40eef28b991..d97fec042548f 100644 --- a/tests/cases/conformance/classes/members/accessibility/classPropertyAsProtected.ts +++ b/tests/cases/conformance/classes/members/accessibility/classPropertyAsProtected.ts @@ -1,3 +1,4 @@ +// @strict: false class C { protected x: string; protected get y() { return null; } diff --git a/tests/cases/conformance/classes/members/accessibility/classPropertyIsPublicByDefault.ts b/tests/cases/conformance/classes/members/accessibility/classPropertyIsPublicByDefault.ts index 7d631175ee8db..27d11ad700e0d 100644 --- a/tests/cases/conformance/classes/members/accessibility/classPropertyIsPublicByDefault.ts +++ b/tests/cases/conformance/classes/members/accessibility/classPropertyIsPublicByDefault.ts @@ -1,3 +1,4 @@ +// @strict: false class C { x: string; get y() { return null; } diff --git a/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinClass.ts b/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinClass.ts index cbbf311a00e15..1f3acc71b860f 100644 --- a/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinClass.ts +++ b/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinClass.ts @@ -1,3 +1,4 @@ +// @strict: false // no errors class C { diff --git a/tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts b/tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts index f1be3445a5acd..67cc563f1f831 100644 --- a/tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts +++ b/tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { private foo: string; } diff --git a/tests/cases/conformance/classes/members/accessibility/privateProtectedMembersAreNotAccessibleDestructuring.ts b/tests/cases/conformance/classes/members/accessibility/privateProtectedMembersAreNotAccessibleDestructuring.ts index 5e25727d5f6c1..c9b1096f4929d 100644 --- a/tests/cases/conformance/classes/members/accessibility/privateProtectedMembersAreNotAccessibleDestructuring.ts +++ b/tests/cases/conformance/classes/members/accessibility/privateProtectedMembersAreNotAccessibleDestructuring.ts @@ -1,3 +1,4 @@ +// @strict: false class K { private priv; protected prot; diff --git a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts index 08f99af59727f..871261fa1315b 100644 --- a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts +++ b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // no errors diff --git a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassIncludesInheritedMembers.ts b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassIncludesInheritedMembers.ts index 297caa3030d78..08e95d434aaf1 100644 --- a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassIncludesInheritedMembers.ts +++ b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassIncludesInheritedMembers.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { a: string; b() { } diff --git a/tests/cases/conformance/classes/members/instanceAndStaticMembers/superInStaticMembers1.ts b/tests/cases/conformance/classes/members/instanceAndStaticMembers/superInStaticMembers1.ts index e716307be1171..6cfde08687620 100644 --- a/tests/cases/conformance/classes/members/instanceAndStaticMembers/superInStaticMembers1.ts +++ b/tests/cases/conformance/classes/members/instanceAndStaticMembers/superInStaticMembers1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5, es2015, es2021, es2022, esnext // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameAccessorsCallExpression.ts b/tests/cases/conformance/classes/members/privateNames/privateNameAccessorsCallExpression.ts index ce7dae715b6fa..ea5afe9baf7a9 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameAccessorsCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameAccessorsCallExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class A { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameBadSuper.ts b/tests/cases/conformance/classes/members/privateNames/privateNameBadSuper.ts index b3930010db77b..f0b06d6713ee1 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameBadSuper.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameBadSuper.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class B {}; class A extends B { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameBadSuperUseDefineForClassFields.ts b/tests/cases/conformance/classes/members/privateNames/privateNameBadSuperUseDefineForClassFields.ts index bb110342444b3..5326dbbd64d76 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameBadSuperUseDefineForClassFields.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameBadSuperUseDefineForClassFields.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2022 // @useDefineForClassFields: true class B {}; diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameComputedPropertyName3.ts b/tests/cases/conformance/classes/members/privateNames/privateNameComputedPropertyName3.ts index e6639b6bc711e..fe8b9a0565933 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameComputedPropertyName3.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameComputedPropertyName3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2022, es2015 class Foo { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameConstructorSignature.ts b/tests/cases/conformance/classes/members/privateNames/privateNameConstructorSignature.ts index 9f074b7b6fdd0..bd30223410129 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameConstructorSignature.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameConstructorSignature.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 interface D { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameDeclarationMerging.ts b/tests/cases/conformance/classes/members/privateNames/privateNameDeclarationMerging.ts index 018024073fb32..59827bac6d376 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameDeclarationMerging.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameDeclarationMerging.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 class D {}; diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameFieldCallExpression.ts b/tests/cases/conformance/classes/members/privateNames/privateNameFieldCallExpression.ts index 407a59185403e..466a4b79bba86 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameFieldCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameFieldCallExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class A { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameFieldInitializer.ts b/tests/cases/conformance/classes/members/privateNames/privateNameFieldInitializer.ts index decfa7aec78b4..91aa4c78c7410 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameFieldInitializer.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameFieldInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class A { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameFieldsESNext.ts b/tests/cases/conformance/classes/members/privateNames/privateNameFieldsESNext.ts index 54035233239f1..3c8f644404d0f 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameFieldsESNext.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameFieldsESNext.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2022 // @useDefineForClassFields: false diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameHashCharName.ts b/tests/cases/conformance/classes/members/privateNames/privateNameHashCharName.ts index 4a076565bfc62..6a2f4e29d7d42 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameHashCharName.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameHashCharName.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 # diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameLateSuper.ts b/tests/cases/conformance/classes/members/privateNames/privateNameLateSuper.ts index 5bc814b9ff87d..73b327e39ccd7 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameLateSuper.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameLateSuper.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class B {} class A extends B { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameLateSuperUseDefineForClassFields.ts b/tests/cases/conformance/classes/members/privateNames/privateNameLateSuperUseDefineForClassFields.ts index 7cee8f089c632..1789b2c4cc254 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameLateSuperUseDefineForClassFields.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameLateSuperUseDefineForClassFields.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2022 // @useDefineForClassFields: true class B {} diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameMethodCallExpression.ts b/tests/cases/conformance/classes/members/privateNames/privateNameMethodCallExpression.ts index d76deec97de3e..67f546d04f08e 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameMethodCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameMethodCallExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class AA { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts b/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts index e7d55345dbeee..45e3ab2f45218 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class Base { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameSetterNoGetter.ts b/tests/cases/conformance/classes/members/privateNames/privateNameSetterNoGetter.ts index ae0aeda5efd5e..45cc495fcbc71 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameSetterNoGetter.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameSetterNoGetter.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 const C = class { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameStaticAccessorsCallExpression.ts b/tests/cases/conformance/classes/members/privateNames/privateNameStaticAccessorsCallExpression.ts index ac5a5ade7e3d2..7e1e370c2a537 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticAccessorsCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticAccessorsCallExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class A { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldCallExpression.ts b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldCallExpression.ts index 723a36842c7f7..8ed0021c21eda 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldCallExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class A { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldInitializer.ts b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldInitializer.ts index 93763c9608e7d..0f85123fb16a6 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldInitializer.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015, es2022, esnext // @useDefineForClassFields: false diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldNoInitializer.ts b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldNoInitializer.ts index f596214129e05..1de2045ecd725 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldNoInitializer.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldNoInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015, es2022, esnext const C = class { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNameStaticMethodCallExpression.ts b/tests/cases/conformance/classes/members/privateNames/privateNameStaticMethodCallExpression.ts index 8205599dc96ab..fa6620870edaf 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticMethodCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticMethodCallExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class AA { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNamesInterfaceExtendingClass.ts b/tests/cases/conformance/classes/members/privateNames/privateNamesInterfaceExtendingClass.ts index c330e117003fe..01f6a8a74894a 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNamesInterfaceExtendingClass.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNamesInterfaceExtendingClass.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class C { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNamesUnique-2.ts b/tests/cases/conformance/classes/members/privateNames/privateNamesUnique-2.ts index dd79f670e57af..e0cb2da06f63c 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNamesUnique-2.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNamesUnique-2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 // @filename: a.ts export class Foo { diff --git a/tests/cases/conformance/classes/members/privateNames/privateNamesUseBeforeDef.ts b/tests/cases/conformance/classes/members/privateNames/privateNamesUseBeforeDef.ts index c47e709c284f1..604fd439ed28c 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNamesUseBeforeDef.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNamesUseBeforeDef.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 class A { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts index 43d061f9cf660..d51dd6f91cdff 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // No errors diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessor11.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessor11.ts index 69b1802417ffe..a1108bdda2d6d 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessor11.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessor11.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2022 class C { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts index 6039dedfe306d..d94ad6e55ee5c 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts @@ -1,3 +1,4 @@ +// @strict: false // @noTypesAndSymbols: true class A { get diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts index 36bdb0b4f3101..3ab2acb61c15d 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5, esnext // @useDefineForClassFields: true var x: "p" = "p" diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorLocals.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorLocals.ts index f620222358ed6..71d6e5a913520 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorLocals.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorLocals.ts @@ -1,3 +1,4 @@ +// @strict: false // Initializer expressions for instance member variables are evaluated in the scope of the class constructor body but are not permitted to reference parameters or local variables of the constructor. class C { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts index 988a45eda78df..82875c7d00ce1 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts @@ -1,3 +1,4 @@ +// @strict: false // Initializer expressions for instance member variables are evaluated in the scope of the class constructor body but are not permitted to reference parameters or local variables of the constructor. class C { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts index 7704e60c6069b..d6bbb1752f662 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 class C { diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionOverloadMixingStaticAndInstance.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionOverloadMixingStaticAndInstance.ts index d573375279310..f979aafd51889 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionOverloadMixingStaticAndInstance.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionOverloadMixingStaticAndInstance.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); static foo(); // error diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPrivateOverloads.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPrivateOverloads.ts index 45401bf0554c3..bed22049ac3a0 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPrivateOverloads.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPrivateOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private foo(x: number); private foo(x: number, y: string); diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicOverloads.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicOverloads.ts index 9114ae91650a0..f8927c743aec9 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicOverloads.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public foo(x: number); public foo(x: number, y: string); diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicPrivateOverloads.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicPrivateOverloads.ts index 45022a40bbf36..3507a48d545de 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicPrivateOverloads.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicPrivateOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false class C { private foo(x: number); public foo(x: number, y: string); // error diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/optionalProperty.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/optionalProperty.ts index cb563eedf1867..1aec8ffeae4a9 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/optionalProperty.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/optionalProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @useDefineForClassFields: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndAccessorWithSameName.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndAccessorWithSameName.ts index b6c3b62bbba8d..87352d086683a 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndAccessorWithSameName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndAccessorWithSameName.ts @@ -1,3 +1,4 @@ +// @strict: false class C { x: number; get x() { // error diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts index 362d2884a85db..f78d39dc4d9d4 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts @@ -1,3 +1,4 @@ +// @strict: false class C { x: number; x() { // error diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts index 5c098643712d5..2c02bac5c0073 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 class C { get x() { return 1; } diff --git a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts index e4b639254325d..ba17c07fae585 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static get x() { return 1; } static get x() { return 1; } // error diff --git a/tests/cases/conformance/declarationEmit/nullPropertyName.ts b/tests/cases/conformance/declarationEmit/nullPropertyName.ts index fb0b6ae0fb0e2..8e0baf1faa515 100644 --- a/tests/cases/conformance/declarationEmit/nullPropertyName.ts +++ b/tests/cases/conformance/declarationEmit/nullPropertyName.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function foo() {} diff --git a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts index 4d7ccc6a82536..c0545f05c9c37 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 // @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 ffbd27136219f..edb86bd521da5 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts b/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts index 4e0373ff5d13c..768abd5140e8d 100644 --- a/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts +++ b/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target:es5 // @experimentaldecorators: true declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod16.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod16.ts index 400d4fbe5a80a..8d0a4b82a5918 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod16.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod16.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts index 1aa25d7f3292c..0e2a4620e2590 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod18.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod18.ts index 9417c44c5bac4..eac6295a4991a 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod18.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod18.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts index 8f293b31f9063..e42d8876c6f2e 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2022, es2015 // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts index b951bd5c8c90a..c65aac9f68f3f 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts index 722463b33dab2..3e13ebe4ddfda 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 ee5a3f33bf10e..36f780ab115b3 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts index 026949fb5b8ec..5a32dcbe922f8 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 2b10c0aec0872..703742501bda5 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 eb720b20dff85..7503a8d27ca78 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 fb8841df243b4..fd2551c5c63e9 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts index 95977876681ac..5a35801a9cb0c 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES2015 // @experimentaldecorators: true declare function dec(target: any, propertyKey: string, desc: PropertyDescriptor): void; diff --git a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts index 01af3e6ee810e..c72735638f979 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 55fd6fe93e1e8..d3937c8c6b95e 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 412a592ece1a6..6c2512da30039 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @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 0e11e103ce746..00f762e7a4e88 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @experimentaldecorators: true declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void; diff --git a/tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2.ts b/tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2.ts index 1b99e0e186303..5cdff2c8b008b 100644 --- a/tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2.ts +++ b/tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: decoratorOnImportEquals2_0.ts export var X; diff --git a/tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts b/tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts index 815da8de4de27..c5777c92be9c8 100644 --- a/tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts +++ b/tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext declare function dec(target: T): T; diff --git a/tests/cases/conformance/decorators/missingDecoratorType.ts b/tests/cases/conformance/decorators/missingDecoratorType.ts index 9b8cdd276f22e..7980f81c87788 100644 --- a/tests/cases/conformance/decorators/missingDecoratorType.ts +++ b/tests/cases/conformance/decorators/missingDecoratorType.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 // @experimentaldecorators: true // @noLib: true diff --git a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.classMethods.es2015.ts b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.classMethods.es2015.ts index fe1bc56dd1550..6b81dd93ddc58 100644 --- a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.classMethods.es2015.ts +++ b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.classMethods.es2015.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 // @lib: esnext // @filename: C1.ts diff --git a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2015.ts b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2015.ts index 280bda810d0b8..fcb48c2044451 100644 --- a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2015.ts +++ b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2015.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 // @lib: esnext // @filename: F1.ts diff --git a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2015.ts b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2015.ts index d90e14a19d110..ad0a61d624d17 100644 --- a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2015.ts +++ b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2015.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 // @lib: esnext // @filename: F1.ts diff --git a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2015.ts b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2015.ts index 1998b8674a37e..e0bbb070a66ff 100644 --- a/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2015.ts +++ b/tests/cases/conformance/emitter/es2015/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2015.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 // @lib: esnext // @filename: O1.ts diff --git a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.classMethods.es2018.ts b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.classMethods.es2018.ts index 6e7dc0622bcb1..db5ff182993f6 100644 --- a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.classMethods.es2018.ts +++ b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.classMethods.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @filename: C1.ts diff --git a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2018.ts b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2018.ts index ebeee3e4e270c..b8b9f7e58b150 100644 --- a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2018.ts +++ b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionDeclarations.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @filename: F1.ts diff --git a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2018.ts b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2018.ts index 79bb5a3d25520..45519c9ffaa24 100644 --- a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2018.ts +++ b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.functionExpressions.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @filename: F1.ts diff --git a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2018.ts b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2018.ts index d5e1bc7b1f844..96826d10e5c41 100644 --- a/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2018.ts +++ b/tests/cases/conformance/emitter/es2018/asyncGenerators/emitter.asyncGenerators.objectLiteralMethods.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @filename: O1.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 0bd75b03649e0..6ce01831bf801 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,3 +1,4 @@ +// @strict: false // @target: es5 // @lib: esnext // @filename: C1.ts 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 f7b5caf181c97..038f4fef79209 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,3 +1,4 @@ +// @strict: false // @target: es5 // @lib: esnext // @filename: F1.ts 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 cc756a2f4adf6..7b1b585b11eae 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,3 +1,4 @@ +// @strict: false // @target: es5 // @lib: esnext // @filename: F1.ts 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 8c33be18d1f9e..a47cf524cb0ad 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,3 +1,4 @@ +// @strict: false // @target: es5 // @lib: esnext // @filename: O1.ts diff --git a/tests/cases/conformance/enums/awaitAndYield.ts b/tests/cases/conformance/enums/awaitAndYield.ts index c6b477f3929b7..41d683b297343 100644 --- a/tests/cases/conformance/enums/awaitAndYield.ts +++ b/tests/cases/conformance/enums/awaitAndYield.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES2019 // @noTypesAndSymbols: true async function* test(x: Promise) { diff --git a/tests/cases/conformance/enums/enumBasics.ts b/tests/cases/conformance/enums/enumBasics.ts index 0a0f9d920cb0e..f4ddc661a6b8d 100644 --- a/tests/cases/conformance/enums/enumBasics.ts +++ b/tests/cases/conformance/enums/enumBasics.ts @@ -1,3 +1,4 @@ +// @strict: false // Enum without initializers have first member = 0 and successive members = N + 1 enum E1 { A, diff --git a/tests/cases/conformance/es2019/globalThisUnknown.ts b/tests/cases/conformance/es2019/globalThisUnknown.ts index b1ae4224e1e29..b4cecd0f1f8b0 100644 --- a/tests/cases/conformance/es2019/globalThisUnknown.ts +++ b/tests/cases/conformance/es2019/globalThisUnknown.ts @@ -1,3 +1,4 @@ +// @strict: false declare let win: Window & typeof globalThis; // this access should be an error diff --git a/tests/cases/conformance/es2021/logicalAssignment/logicalAssignment10.ts b/tests/cases/conformance/es2021/logicalAssignment/logicalAssignment10.ts index 3a83ab8085ae7..c9e0eb78e0a87 100644 --- a/tests/cases/conformance/es2021/logicalAssignment/logicalAssignment10.ts +++ b/tests/cases/conformance/es2021/logicalAssignment/logicalAssignment10.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext, es2021, es2020, es2015 var count = 0; diff --git a/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts b/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts index 4e65648acca4e..b2c727d91d312 100644 --- a/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts +++ b/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 //@declaration: true class C { diff --git a/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts b/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts index 553aa871c38c3..a62d16de9f5af 100644 --- a/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts +++ b/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 //@declaration: true class C { diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty10.ts b/tests/cases/conformance/es6/Symbols/symbolProperty10.ts index 0f63356eaf686..a35f578e90f2f 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty10.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty10.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator]: { x; y }; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty11.ts b/tests/cases/conformance/es6/Symbols/symbolProperty11.ts index 1377970613ddf..9196e609f3afc 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty11.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty11.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { } interface I { diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty12.ts b/tests/cases/conformance/es6/Symbols/symbolProperty12.ts index 5a835a34b629f..e0f905ab9b825 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty12.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty12.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { private [Symbol.iterator]: { x }; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty13.ts b/tests/cases/conformance/es6/Symbols/symbolProperty13.ts index 4b5023e1d0655..c4535f1eafb21 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty13.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty13.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator]: { x; y }; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty14.ts b/tests/cases/conformance/es6/Symbols/symbolProperty14.ts index 0109ec3be251e..098061d6ab312 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty14.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty14.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator]: { x; y }; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty15.ts b/tests/cases/conformance/es6/Symbols/symbolProperty15.ts index 3ec6c6ecc7a9a..3b4acf21b737d 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty15.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty15.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { } interface I { diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty16.ts b/tests/cases/conformance/es6/Symbols/symbolProperty16.ts index 2b3a976df9883..f52a040d6a74f 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty16.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty16.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { private [Symbol.iterator]: { x }; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty19.ts b/tests/cases/conformance/es6/Symbols/symbolProperty19.ts index df9b99f5ca427..481ffccd7f808 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty19.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty19.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 var i = { [Symbol.iterator]: { p: null }, diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty39.ts b/tests/cases/conformance/es6/Symbols/symbolProperty39.ts index af3a95eb155ab..bc55c5c32b987 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty39.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty39.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator](x: string): string; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty40.ts b/tests/cases/conformance/es6/Symbols/symbolProperty40.ts index 91fd953a4d77a..41fd894d0c05b 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty40.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty40.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator](x: string): string; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty41.ts b/tests/cases/conformance/es6/Symbols/symbolProperty41.ts index 9c9583264cd7f..476524fe3122f 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty41.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty41.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator](x: string): { x: string }; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty42.ts b/tests/cases/conformance/es6/Symbols/symbolProperty42.ts index 79fbce7bb90cd..fa71ee0b6a287 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty42.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty42.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator](x: string): string; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty48.ts b/tests/cases/conformance/es6/Symbols/symbolProperty48.ts index b8d63f74fe8c2..34780ae8914b2 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty48.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty48.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 namespace M { var Symbol; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty49.ts b/tests/cases/conformance/es6/Symbols/symbolProperty49.ts index aa1ae1290c9a1..fe637df51775c 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty49.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty49.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 namespace M { export var Symbol; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty56.ts b/tests/cases/conformance/es6/Symbols/symbolProperty56.ts index a77c88a563752..7937bf3f2ce0d 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty56.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty56.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 var obj = { [Symbol.iterator]: 0 diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty57.ts b/tests/cases/conformance/es6/Symbols/symbolProperty57.ts index b60c18a05ee47..dc03bf0f5b17f 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty57.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty57.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 var obj = { [Symbol.iterator]: 0 diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty8.ts b/tests/cases/conformance/es6/Symbols/symbolProperty8.ts index 19c6583777ea5..c77acf58e4e23 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty8.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty8.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 interface I { [Symbol.unscopables]: number; diff --git a/tests/cases/conformance/es6/Symbols/symbolProperty9.ts b/tests/cases/conformance/es6/Symbols/symbolProperty9.ts index 33ffcb5ee2501..c1836c501bfc1 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty9.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty9.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [Symbol.iterator]: { x; y }; diff --git a/tests/cases/conformance/es6/Symbols/symbolType14.ts b/tests/cases/conformance/es6/Symbols/symbolType14.ts index c20a8be874b97..f59762296f053 100644 --- a/tests/cases/conformance/es6/Symbols/symbolType14.ts +++ b/tests/cases/conformance/es6/Symbols/symbolType14.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES6 new Symbol(); \ No newline at end of file diff --git a/tests/cases/conformance/es6/Symbols/symbolType17.ts b/tests/cases/conformance/es6/Symbols/symbolType17.ts index 95824f1794bd7..b26a20b356301 100644 --- a/tests/cases/conformance/es6/Symbols/symbolType17.ts +++ b/tests/cases/conformance/es6/Symbols/symbolType17.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 interface Foo { prop } var x: symbol | Foo; diff --git a/tests/cases/conformance/es6/Symbols/symbolType18.ts b/tests/cases/conformance/es6/Symbols/symbolType18.ts index caa841717371b..880770f95044a 100644 --- a/tests/cases/conformance/es6/Symbols/symbolType18.ts +++ b/tests/cases/conformance/es6/Symbols/symbolType18.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 interface Foo { prop } var x: symbol | Foo; diff --git a/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts b/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts index 6b932ded4400c..10b5c64d3e2a8 100644 --- a/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts +++ b/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts @@ -1,3 +1,4 @@ +// @strict: false var f1 = () => { } var f2 = (x: string, y: string) /* diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts index 33288184b16d6..e5c1e3ed79e45 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var s: string; var n: number; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts index d41c56fe953ed..c981a00628d3c 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var s: string; var n: number; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts index 01204a1e61949..f42ec5220bffa 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var s: string; var n: number; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts index c42e6e97177e5..fab59d89ae6bd 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var s: string; var n: number; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts index e52067cc7f42e..643a9a846a1e1 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var b: boolean; class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES6.ts index d795b527d064d..b9610d6c81893 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var b: boolean; class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts index 6cff3715d83a9..6baf229c2d43f 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var obj = { [this.bar]: 0 diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES6.ts index d31f63d2e87f8..578b7627be739 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var obj = { [this.bar]: 0 diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts index 7c2517cd5145a..7d72d1d233442 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var methodName = "method"; var accessorName = "accessor"; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES6.ts index c63ec81d4e64c..2e640fa5935eb 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var methodName = "method"; var accessorName = "accessor"; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts index 95099715ad820..694737043885f 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES6.ts index 36c4e91be4881..a0405cd209e58 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 cb931fc31d620..096ee4edd6032 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts index 09fe6235a1c11..d63f1813a0020 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 5ea07aa1605d8..49cd8e6d7ee19 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES6.ts index 9054979dbd816..57ea723d26421 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 929332c5d32eb..fcdacbe09ba09 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES6.ts index f8d4d2a01074a..337a0ef362906 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 1f34f9ad28728..ea6cc80a5edb6 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var id; class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts index 45db2c02fe259..bd50abe6d8b51 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var id; class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts index bba1068fef3b6..1fc31336f198a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES6.ts index 94d473193d9b9..1753352ba45c1 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 1e8ed7d6cd1ca..0cae4b439d577 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts index a376debec564d..16d9252c8879a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 fc181d5a54839..baf73448b638b 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES6.ts index ded6cb28ce76e..4e21f8ef4ec2e 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 c130692c11827..901ff61a4e689 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES6.ts index 2502827399742..d3b5ae7973a98 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 4c9422ed44e26..3c2368c42c476 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES6.ts index 04c4ad5ed5c36..f73a44d96655a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 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 c1eb09275c547..fc28430e78587 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts index e6e058f24abd7..4e8f7dc5f1322 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 class Foo { x } class Foo2 { x; y } diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES5.ts index 611d6a7d30fca..1bab0a038116b 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false var x = { p1: 10, diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES6.ts index 58f97a80feb95..1e82334c5342d 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var x = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES5.ts index f7411e7cb4f78..296ef42c40da4 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false var x = { p1: 10, diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES6.ts index c599477c2e251..b08aaa25475dd 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var x = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts index 874c8c79ac794..25358d08fe6a4 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 declare var b: boolean; var v = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES6.ts index 6d9a65002c40f..d258c0629f03d 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 declare var b: boolean; var v = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts index e1c675d95e434..8d5857870ce24 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 function f(s: string): string; function f(n: number): number; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES6.ts index 21dc4eaa1e9e0..05520f10d1c3a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function f(s: string): string; function f(n: number): number; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts index 1091304b6b2af..72c29d742a170 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @declaration: true class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES6.ts index 100c68653c368..5c8894f4b3322 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @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 b30b8e1306295..7e7758ab1ad1a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @declaration: true class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts index 2f353b854cdfb..07fbe1e10b592 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @declaration: true class C { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts index eb12ea9b471b4..02d01294445b2 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @declaration: true var v = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts index 3f24075abbfb8..366904c3f9bc0 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @declaration: true var v = { diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts index a025a074e3129..c59c7c48bf555 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var methodName = "method"; var accessorName = "accessor"; diff --git a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES6.ts b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES6.ts index 4d6fe09b80a00..9b2b16003c689 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var methodName = "method"; var accessorName = "accessor"; diff --git a/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts b/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts index 4f54960d2bcd8..ae2a253993776 100644 --- a/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts +++ b/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES2015 // @module: ES2015 // @experimentaldecorators: true diff --git a/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts b/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts index a3db3753de489..43f038308a5f5 100644 --- a/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts +++ b/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts @@ -1,2 +1,3 @@ +// @strict: false declare var [a, b]; // Error, destructuring declaration not allowed in ambient context declare var {c, d}; // Error, destructuring declaration not allowed in ambient context diff --git a/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts b/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts index 1fb8b07e585eb..727d0b35765ad 100644 --- a/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts +++ b/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts @@ -1,2 +1,3 @@ +// @strict: false var [a, b]; // Error, no initializer var {c, d}; // Error, no initializer diff --git a/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts b/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts index 781c224213fba..2706432eb126a 100644 --- a/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts +++ b/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts @@ -1,3 +1,4 @@ +// @strict: false function f0() { var [] = [1, "hello"]; var [x] = [1, "hello"]; diff --git a/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts b/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts index 243a297ed4381..1e1e9003789bd 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts @@ -1,3 +1,4 @@ +// @strict: false const [a, b = a] = [1]; // ok const [c, d = c, e = e] = [1]; // error for e = e const [f, g = f, h = i, i = f] = [1]; // error for h = i diff --git a/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts b/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts index 51333b1ca5333..c034fe47ad51b 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true interface a { a } diff --git a/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts b/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts index 17de6dd28583a..77a06f8f30d22 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts @@ -1,3 +1,4 @@ +// @strict: false // (arg: { x: any, y: any }) => void function f1({ x, y }) { } f1({ x: 1, y: 1 }); diff --git a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts index e9e99c6d0eb4a..04d4b74a372f0 100644 --- a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts +++ b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function f(a, []) { diff --git a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts index e9e99c6d0eb4a..04d4b74a372f0 100644 --- a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts +++ b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function f(a, []) { diff --git a/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter02.ts b/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter02.ts index 79d026eac9ec9..c42dd50f488a2 100644 --- a/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter02.ts +++ b/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter02.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function f(a, {}) { diff --git a/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter03.ts b/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter03.ts index c5d51b20cfa9a..149c4b7035c35 100644 --- a/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter03.ts +++ b/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter03.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function f({}, a) { diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts index 591cdd2b6a57c..1d1e036433ee2 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts index 83ab94decec74..5f8ec0daf9f3c 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern12.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern12.ts index 079eb25df4a75..d88a8580f233f 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern12.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern12.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern13.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern13.ts index f4909547e2656..28f7778ff3988 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern13.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern13.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern14.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern14.ts index 976c5148232e2..12b68205ea80d 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern14.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern14.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts index ecc686b634a52..db3a6c3927f42 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts index ba2c74681fe53..2978ff96c9d23 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function fun(...[a, b]: [Bar, Bar][]) { } fun(...new FooIteratorIterator); diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts index b81114cab2359..8acec1991c2eb 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts index a03713037d62b..3fe846f449720 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts index 32024e83b1b8a..9d522ed812267 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern20.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern20.ts index 6a0e9126734d4..5699956f6d221 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern20.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern20.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts index a47edb4e98761..a648256397256 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts index ff63aa7417959..bf2dd83e2027b 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts index 075ff3fd46793..1bfef44b685dc 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES6 const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]]) \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern4.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern4.ts index b5aef9003b134..aeda5f6e05742 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern4.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern4.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts index a3911b1f5efc6..ecc1a69c01450 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts index 057b9aeaffedf..00148faa0570e 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts index 965b715767072..af22dc9327d2d 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts index 5638b4c49c69b..c3b99d93b76fa 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class Bar { x } class Foo extends Bar { y } diff --git a/tests/cases/conformance/es6/destructuring/iterableArrayPattern9.ts b/tests/cases/conformance/es6/destructuring/iterableArrayPattern9.ts index 1573c55ca8e92..6c728b5c6aa42 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern9.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern9.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function fun([a, b] = new FooIterator) { } class Bar { x } diff --git a/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts b/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts index 1b03c533e7d4e..7090c0d316536 100644 --- a/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts +++ b/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false function foo1([...r] = null) { } diff --git a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration10_es6.ts b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration10_es6.ts index 42da7c8ff1cfa..2e027bbf90072 100644 --- a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration10_es6.ts +++ b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration10_es6.ts @@ -1,3 +1,4 @@ +// @noImplicitAny: false // @target: es6 function * foo(a = yield => yield) { } \ No newline at end of file diff --git a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts index 729d883e7fc14..7b3900b8513eb 100644 --- a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts +++ b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function f(yield) { } \ No newline at end of file diff --git a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts index 57e32e1d9018e..c33874b3b832f 100644 --- a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts +++ b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function * foo() { var v = { [yield]: foo } diff --git a/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts b/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts index eb2271a69045c..6c87aa320929a 100644 --- a/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts +++ b/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: commonjs // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingSystem.ts b/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingSystem.ts index 496ee04ef66f6..8a193e187a58c 100644 --- a/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingSystem.ts +++ b/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingSystem.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: system // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts b/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts index a6761600a1d70..7ec4531ee7582 100644 --- a/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts +++ b/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @target: ES5 diff --git a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts index ab72d10504a12..02cf6d53675c3 100644 --- a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts +++ b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @target: ES5 diff --git a/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts b/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts index a1d005c8fa99e..26e2890f107ea 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @target: ES5 diff --git a/tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts b/tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts index 7e29bc0b79e9b..b6db02faced4a 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @module: commonjs diff --git a/tests/cases/conformance/es6/modules/exportsAndImports1.ts b/tests/cases/conformance/es6/modules/exportsAndImports1.ts index 7775a425b2e9f..2d05a71ddc58b 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports1.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: t1.ts diff --git a/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts b/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts index 260e9499b5d1a..9bbbb88795970 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @target: ES5 diff --git a/tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts b/tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts index bf09ccde0b119..d1fe834426e12 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 // @module: commonjs diff --git a/tests/cases/conformance/es6/modules/exportsAndImports3.ts b/tests/cases/conformance/es6/modules/exportsAndImports3.ts index 1abfb5301cd7e..cff04d1b574fe 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports3.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports3.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: t1.ts diff --git a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts index cda2d4d2ce7a8..a2701681ff90b 100644 --- a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts +++ b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 const a = new.target; const b = () => new.target; diff --git a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts index 5043c160e101b..3383f2e6a096a 100644 --- a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts +++ b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 const a = new.target; const b = () => new.target; diff --git a/tests/cases/conformance/es6/propertyAccess/propertyAccessNumericLiterals.es6.ts b/tests/cases/conformance/es6/propertyAccess/propertyAccessNumericLiterals.es6.ts index 81e39965a6a82..5afede0d61121 100644 --- a/tests/cases/conformance/es6/propertyAccess/propertyAccessNumericLiterals.es6.ts +++ b/tests/cases/conformance/es6/propertyAccess/propertyAccessNumericLiterals.es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 0xffffffff.toString(); 0o01234.toString(); diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts index ffeab28958473..262829467672d 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 var a, b, c; diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts index bf4c2583c078d..33d369a17649f 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 var a, b, c; diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts index 1f44dc18ae86a..8286550293af7 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts @@ -1,3 +1,4 @@ +// @strict: false var x = { x, // OK undefinedVariable // Error diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts index 527154c66bd73..a59c95652b9ba 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts @@ -1,3 +1,4 @@ +// @strict: false // errors var y = { "stringLiteral", diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts index 8d69d1efdb2e2..1e689a886b13f 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts @@ -1,3 +1,4 @@ +// @strict: false // module export var x = "Foo"; namespace m { diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModule.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModule.ts index e5c14eb4bc59e..9d4aa4759d5df 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModule.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModule.ts @@ -1,3 +1,4 @@ +// @strict: false // module export namespace m { diff --git a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModuleES6.ts b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModuleES6.ts index 0fb20b3a15a6e..0c4b7a500b39d 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModuleES6.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModuleES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 namespace m { diff --git a/tests/cases/conformance/es6/spread/arrayLiteralSpread.ts b/tests/cases/conformance/es6/spread/arrayLiteralSpread.ts index da088cc09a052..7cc3ef01a2397 100644 --- a/tests/cases/conformance/es6/spread/arrayLiteralSpread.ts +++ b/tests/cases/conformance/es6/spread/arrayLiteralSpread.ts @@ -1,3 +1,4 @@ +// @strict: false function f0() { var a = [1, 2, 3]; var a1 = [...a]; diff --git a/tests/cases/conformance/es6/spread/arrayLiteralSpreadES5iterable.ts b/tests/cases/conformance/es6/spread/arrayLiteralSpreadES5iterable.ts index e6fedbc2e5f95..6967a1b3e0c59 100644 --- a/tests/cases/conformance/es6/spread/arrayLiteralSpreadES5iterable.ts +++ b/tests/cases/conformance/es6/spread/arrayLiteralSpreadES5iterable.ts @@ -1,3 +1,4 @@ +// @strict: false // @downlevelIteration: true function f0() { var a = [1, 2, 3]; diff --git a/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts b/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts index 17986424b1334..9ff50c96f89c4 100644 --- a/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts +++ b/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts @@ -1,2 +1,3 @@ +// @strict: false // @target:es6 const a \ No newline at end of file diff --git a/tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts b/tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts index 946d971c9dcb1..67cae6933fd48 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: es6 function* foo() { yield } \ No newline at end of file diff --git a/tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts b/tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts index 8cf089d33d3e6..52fa40836d9a8 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function* foo() { yield diff --git a/tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts b/tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts index 21b5d695d89a4..eecf15e1f4c1b 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function* foo() { yield; diff --git a/tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts b/tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts index bc4edfe28699b..90e39dde65f75 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function* foo() { yield*foo diff --git a/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts b/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts index d09e7b8004553..0b87209313798 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 function *g() { yield * []; diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts index f4082f7b46fa0..06d0547e3d3f8 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g2(): Iterator<() => Iterable<(x: string) => number>> { yield function* () { diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck36.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck36.ts index e304dda48281a..b7e91e6663483 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck36.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck36.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { yield yield 0; diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck37.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck37.ts index f9fe46f4285b7..29391c1e44b41 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck37.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck37.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { return yield yield 0; diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck38.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck38.ts index 03bb28ef0ec63..07b761b4f8d86 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck38.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck38.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 var yield; function* g() { diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts index 9dec1b36dc29c..15d9731662bd9 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 // @experimentalDecorators: true diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts index 2dee3dedf027d..9de53df48dac6 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { class C extends (yield 0) { } diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck41.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck41.ts index caa4eed0747a2..764c22a597e99 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck41.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck41.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { let x = { diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck43.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck43.ts index e2b72f4b790cf..729568a124950 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck43.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck43.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { let x = { diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck45.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck45.ts index ce0822da4122f..f527a703cc308 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck45.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck45.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 declare function foo(x: T, fun: () => Iterator<(x: T) => U>, fun2: (y: U) => T): T; diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck46.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck46.ts index 53c5c7131dbaa..0d842db1e726e 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck46.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck46.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 declare function foo(x: T, fun: () => Iterable<(x: T) => U>, fun2: (y: U) => T): T; diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts index 2041764a2f98e..8a7bfdc92b0bc 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { var x = class C extends (yield) {}; diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck56.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck56.ts index 7aa66480a166c..27bdd6bf25814 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck56.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck56.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { var x = class C { diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts index f972a2a60e33f..148c9d4e67b40 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { class C { diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts index 081979be50587..faa3cbb741bea 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { class C { diff --git a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts index 36747936f1749..651dd7c86d3a2 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function* g() { class C extends (yield) {}; diff --git a/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts b/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts index 14bbc3c4be7a5..e293847b46569 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: false // expected error for all the LHS of compound assignments (arithmetic and addition) var value: any; diff --git a/tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts b/tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts index 6323111b04d08..0fa989a5968c2 100644 --- a/tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts +++ b/tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts @@ -1,3 +1,4 @@ +// @strict: false const [...a,] = []; const {...b,} = {}; let c, d; diff --git a/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts b/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts index 6db7ec9c853f2..61885870524c1 100644 --- a/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts +++ b/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 function f1(x,) {} diff --git a/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts b/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts index be0fbf0fa4de0..c50d363adcb98 100644 --- a/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts +++ b/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @filename: global.ts diff --git a/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts b/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts index fe3085e8e989a..f2d3e4ad54e38 100644 --- a/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts +++ b/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @noEmitHelpers: true diff --git a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts index f27d19a1805f5..944fd230240a6 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext diff --git a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts index ff22999b0f655..b3dfac0f0255e 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext diff --git a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts index bcbce9f27d9cd..22d2c371e1201 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext diff --git a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts index a8c0fc8b667b2..94fc75a3bc559 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext diff --git a/tests/cases/conformance/expressions/arrayLiterals/arrayLiterals.ts b/tests/cases/conformance/expressions/arrayLiterals/arrayLiterals.ts index 41c5a0b8100bf..f363bde4588db 100644 --- a/tests/cases/conformance/expressions/arrayLiterals/arrayLiterals.ts +++ b/tests/cases/conformance/expressions/arrayLiterals/arrayLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false // Empty array literal with no contextual type has type Undefined[] var arr1= [[], [1], ['']]; diff --git a/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts b/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts index 7a97a74168ac0..c9c42069896b6 100644 --- a/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts +++ b/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts @@ -1,3 +1,4 @@ +// @strict: false declare var x; // Must emit as (x + 1) * 3 (x + 1 as number) * 3; diff --git a/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts b/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts index a4dd44a15add1..9bd4fd6001353 100644 --- a/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts +++ b/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo { } declare function as(...args: any[]); diff --git a/tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts b/tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts index 47c6ab7ccda7e..e69729d5bf2ff 100644 --- a/tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts +++ b/tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts @@ -1,3 +1,4 @@ +// @strict: false // expected error for all the LHS of assignments var value: any; diff --git a/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsReference.ts b/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsReference.ts index f49e788f21281..3d13d412afda7 100644 --- a/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsReference.ts +++ b/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsReference.ts @@ -1,3 +1,4 @@ +// @strict: false var value; // identifiers: variable and parameter diff --git a/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts b/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts index e91216d959a7c..c046e29f45b66 100644 --- a/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts +++ b/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnusedLabels: true // expected error for all the LHS of compound assignments (arithmetic and addition) diff --git a/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithAnyAndEveryType.ts b/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithAnyAndEveryType.ts index cf4e0b44b8812..49970fee7072f 100644 --- a/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithAnyAndEveryType.ts +++ b/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithAnyAndEveryType.ts @@ -1,3 +1,4 @@ +// @strict: false function foo() { } class C { public a: string; diff --git a/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithInvalidOperands.ts b/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithInvalidOperands.ts index 1f4a81366487b..fd121413a57e4 100644 --- a/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithInvalidOperands.ts +++ b/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithInvalidOperands.ts @@ -1,3 +1,4 @@ +// @strict: false function foo() { } class C { public a: string; diff --git a/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts b/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts index 6401feb11c5b4..acc61fd53bf8d 100644 --- a/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts +++ b/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class Base { public a: string; } diff --git a/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts b/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts index fcd7c16048688..de008698d93ee 100644 --- a/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts +++ b/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts @@ -1,3 +1,4 @@ +// @strict: false class Foo {} enum E { a } diff --git a/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithValidOperands.ts b/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithValidOperands.ts index 3ef01e09c8474..ecbb003dfe2a4 100644 --- a/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithValidOperands.ts +++ b/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithValidOperands.ts @@ -1,3 +1,4 @@ +// @strict: false var x: any; // valid left operands diff --git a/tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithEveryType.ts b/tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithEveryType.ts index 2fb6ceda7747e..8892f103c484f 100644 --- a/tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithEveryType.ts +++ b/tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithEveryType.ts @@ -1,3 +1,4 @@ +// @strict: false // The && operator permits the operands to be of any type and produces a result of the same // type as the second operand. diff --git a/tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithEveryType.ts b/tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithEveryType.ts index 5ad0fe3fc7059..5de7f9244f441 100644 --- a/tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithEveryType.ts +++ b/tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithEveryType.ts @@ -1,3 +1,4 @@ +// @strict: false // The || operator permits the operands to be of any type. // If the || expression is not contextually typed, the right operand is contextually typed // by the type of the left operand and the result is of the best common type of the two diff --git a/tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandAnyType.ts b/tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandAnyType.ts index be245dbd6bbe6..d981976c6c4f9 100644 --- a/tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandAnyType.ts +++ b/tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandAnyType.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true var ANY: any; diff --git a/tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts b/tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts index 5900614debb4e..bc97fa0a538ef 100644 --- a/tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts +++ b/tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true class Base { private p; } diff --git a/tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts b/tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts index 49dfe75ccc60e..429fc4a268a60 100644 --- a/tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts +++ b/tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts @@ -1,3 +1,4 @@ +// @strict: false function fun(g: (x: T) => T, x: T): T; function fun(g: (x: T) => T, h: (y: T) => T, x: T): T; diff --git a/tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts b/tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts index accb6df135d25..6e1bda6d6916a 100644 --- a/tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts +++ b/tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES6 interface X { diff --git a/tests/cases/conformance/expressions/functionCalls/grammarAmbiguities.ts b/tests/cases/conformance/expressions/functionCalls/grammarAmbiguities.ts index 02440a6b1ca4d..ce433fb8ac5e9 100644 --- a/tests/cases/conformance/expressions/functionCalls/grammarAmbiguities.ts +++ b/tests/cases/conformance/expressions/functionCalls/grammarAmbiguities.ts @@ -1,3 +1,4 @@ +// @strict: false function f(n: any) { return null; } function g(x: any) { return null; } interface A { } diff --git a/tests/cases/conformance/expressions/functionCalls/newWithSpread.ts b/tests/cases/conformance/expressions/functionCalls/newWithSpread.ts index d17919a703625..6695e747b2066 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpread.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpread.ts @@ -1,3 +1,4 @@ +// @strict: false function f(x: number, y: number, ...z: string[]) { } diff --git a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts index 25ef34446699c..a4a90e67a717c 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES5 function f(x: number, y: number, ...z: string[]) { diff --git a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES6.ts b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES6.ts index 0068b6cf80e41..9b013116ab8db 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES6.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES6.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 function f(x: number, y: number, ...z: string[]) { diff --git a/tests/cases/conformance/expressions/functionCalls/overloadResolution.ts b/tests/cases/conformance/expressions/functionCalls/overloadResolution.ts index 08d45a7fc4ad0..b8b02af31b159 100644 --- a/tests/cases/conformance/expressions/functionCalls/overloadResolution.ts +++ b/tests/cases/conformance/expressions/functionCalls/overloadResolution.ts @@ -1,3 +1,4 @@ +// @strict: false class SomeBase { private n; diff --git a/tests/cases/conformance/expressions/functionCalls/overloadResolutionClassConstructors.ts b/tests/cases/conformance/expressions/functionCalls/overloadResolutionClassConstructors.ts index 68384a294680d..976878007bd30 100644 --- a/tests/cases/conformance/expressions/functionCalls/overloadResolutionClassConstructors.ts +++ b/tests/cases/conformance/expressions/functionCalls/overloadResolutionClassConstructors.ts @@ -1,3 +1,4 @@ +// @strict: false class SomeBase { private n; diff --git a/tests/cases/conformance/expressions/functionCalls/overloadResolutionConstructors.ts b/tests/cases/conformance/expressions/functionCalls/overloadResolutionConstructors.ts index b674d7358fa1b..65f9d7c057004 100644 --- a/tests/cases/conformance/expressions/functionCalls/overloadResolutionConstructors.ts +++ b/tests/cases/conformance/expressions/functionCalls/overloadResolutionConstructors.ts @@ -1,3 +1,4 @@ +// @strict: false class SomeBase { private n; diff --git a/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts b/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts index a05e6a946d67e..0e5d9ad984040 100644 --- a/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts +++ b/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // Generic call with no parameters interface NoParams { new (); diff --git a/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts b/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts index df78d7a542167..4d3e3645d6179 100644 --- a/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts +++ b/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts @@ -1,3 +1,4 @@ +// @strict: false interface Computed { read(): T; write(value: T); diff --git a/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts b/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts index a3aa4eafc0723..ab02098a5350b 100644 --- a/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts +++ b/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts @@ -1,3 +1,4 @@ +// @strict: false // Arrow function used in with statement with (window) { diff --git a/tests/cases/conformance/expressions/functions/arrowFunctionExpressions.ts b/tests/cases/conformance/expressions/functions/arrowFunctionExpressions.ts index 707ef02de822a..ef1723458962b 100644 --- a/tests/cases/conformance/expressions/functions/arrowFunctionExpressions.ts +++ b/tests/cases/conformance/expressions/functions/arrowFunctionExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false // ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } var a = (p: string) => p.length; var a = (p: string) => { return p.length; } diff --git a/tests/cases/conformance/expressions/functions/contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts b/tests/cases/conformance/expressions/functions/contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts index 0a1aceaf376a3..c03d2fcb0ec6e 100644 --- a/tests/cases/conformance/expressions/functions/contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts +++ b/tests/cases/conformance/expressions/functions/contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts @@ -1,3 +1,4 @@ +// @strict: false declare function foo(x: (y: string) => (y2: number) => void); // Contextually type the parameter even if there is a return annotation diff --git a/tests/cases/conformance/expressions/functions/contextuallyTypedIife.ts b/tests/cases/conformance/expressions/functions/contextuallyTypedIife.ts index ca0d6e6771151..2e27ffce9eb53 100644 --- a/tests/cases/conformance/expressions/functions/contextuallyTypedIife.ts +++ b/tests/cases/conformance/expressions/functions/contextuallyTypedIife.ts @@ -1,3 +1,4 @@ +// @strict: false // arrow (jake => { })("build"); // function expression diff --git a/tests/cases/conformance/expressions/newOperator/newOperatorConformance.ts b/tests/cases/conformance/expressions/newOperator/newOperatorConformance.ts index b50751c7ae0f6..bf376cc235ef5 100644 --- a/tests/cases/conformance/expressions/newOperator/newOperatorConformance.ts +++ b/tests/cases/conformance/expressions/newOperator/newOperatorConformance.ts @@ -1,3 +1,4 @@ +// @strict: false class C0 { diff --git a/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts b/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts index 3279a42a137ab..92125d0b2b3fa 100644 --- a/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts +++ b/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts @@ -1,3 +1,4 @@ +// @strict: false class C0 { diff --git a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts index 54f6923c3e66c..e72ec1910de1e 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @lib: esnext // @noEmitHelpers: true diff --git a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.2.ts b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.2.ts index 5925fe4d86327..1ccd8375b133f 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.2.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.ts b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.ts index 1231cb5d0fea5..315e66e5fa64c 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.2.ts b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.2.ts index c3da31aa20300..580cd038dbfca 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.2.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.ts b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.ts index f8c5da3042582..96a04c03a594e 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/expressions/objectLiterals/objectLiteralGettersAndSetters.ts b/tests/cases/conformance/expressions/objectLiterals/objectLiteralGettersAndSetters.ts index af0622179ac7f..b8784e5d1d721 100644 --- a/tests/cases/conformance/expressions/objectLiterals/objectLiteralGettersAndSetters.ts +++ b/tests/cases/conformance/expressions/objectLiterals/objectLiteralGettersAndSetters.ts @@ -1,3 +1,4 @@ +// @strict: false // Get and set accessor with the same name var sameName1a = { get 'a'() { return ''; }, set a(n) { var p = n; var p: string; } }; var sameName2a = { get 0.0() { return ''; }, set 0(n) { var p = n; var p: string; } }; diff --git a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.2.ts b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.2.ts index 423e8a465139d..3255b3df4b73c 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.2.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.ts b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.ts index 38cabea7aeef2..38f05fec38d8f 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterInitializer.2.ts b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterInitializer.2.ts index 707be27f114c1..11226d13084b4 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterInitializer.2.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterInitializer.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @noTypesAndSymbols: true // @noEmit: true diff --git a/tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts b/tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts index c5df48cc118e9..3f5595cb32734 100644 --- a/tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts +++ b/tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts @@ -1,3 +1,4 @@ +// @strict: false class A { a!: number; } diff --git a/tests/cases/conformance/expressions/propertyAccess/propertyAccessNumericLiterals.ts b/tests/cases/conformance/expressions/propertyAccess/propertyAccessNumericLiterals.ts index 11feb1932b46d..c44fde6a19e79 100644 --- a/tests/cases/conformance/expressions/propertyAccess/propertyAccessNumericLiterals.ts +++ b/tests/cases/conformance/expressions/propertyAccess/propertyAccessNumericLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false 0xffffffff.toString(); 0o01234.toString(); 0b01101101.toString(); diff --git a/tests/cases/conformance/expressions/superCalls/errorSuperCalls.ts b/tests/cases/conformance/expressions/superCalls/errorSuperCalls.ts index 996bde4f9240c..952ca1562136a 100644 --- a/tests/cases/conformance/expressions/superCalls/errorSuperCalls.ts +++ b/tests/cases/conformance/expressions/superCalls/errorSuperCalls.ts @@ -1,3 +1,4 @@ +// @strict: false //super call in class constructor with no base type class NoBase { constructor() { diff --git a/tests/cases/conformance/expressions/superPropertyAccess/errorSuperPropertyAccess.ts b/tests/cases/conformance/expressions/superPropertyAccess/errorSuperPropertyAccess.ts index 252a707821dc0..a15541ad8ff86 100644 --- a/tests/cases/conformance/expressions/superPropertyAccess/errorSuperPropertyAccess.ts +++ b/tests/cases/conformance/expressions/superPropertyAccess/errorSuperPropertyAccess.ts @@ -1,3 +1,4 @@ +// @strict: false //super property access in constructor of class with no base type //super property access in instance member function of class with no base type //super property access in instance member accessor(get and set) of class with no base type diff --git a/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts b/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts index dcc167f2aef5c..fa183689cd940 100644 --- a/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts +++ b/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 //super.publicInstanceMemberFunction in constructor of derived class //super.publicInstanceMemberFunction in instance member function of derived class diff --git a/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContexts.ts b/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContexts.ts index 3d408c1af3378..fdc2400ee4272 100644 --- a/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContexts.ts +++ b/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContexts.ts @@ -1,3 +1,4 @@ +// @strict: false class BaseErrClass { constructor(t: any) { } } diff --git a/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts b/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts index bf017ea70843f..5dca8287eb7da 100644 --- a/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts +++ b/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts @@ -1,3 +1,4 @@ +// @strict: false class BaseErrClass { constructor(t: any) { } } diff --git a/tests/cases/conformance/expressions/thisKeyword/typeOfThisGeneral.ts b/tests/cases/conformance/expressions/thisKeyword/typeOfThisGeneral.ts index cd651f54867e6..db8f2a5c562ae 100644 --- a/tests/cases/conformance/expressions/thisKeyword/typeOfThisGeneral.ts +++ b/tests/cases/conformance/expressions/thisKeyword/typeOfThisGeneral.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @useDefineForClassFields: false class MyTestClass { diff --git a/tests/cases/conformance/expressions/typeAssertions/typeAssertions.ts b/tests/cases/conformance/expressions/typeAssertions/typeAssertions.ts index 7b2c75757bec9..63c8e9a5f1b2a 100644 --- a/tests/cases/conformance/expressions/typeAssertions/typeAssertions.ts +++ b/tests/cases/conformance/expressions/typeAssertions/typeAssertions.ts @@ -1,3 +1,4 @@ +// @strict: false // Function call whose argument is a 1 arg generic function call with explicit type arguments function fn1(t: T) { } function fn2(t: any) { } diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardFunction.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardFunction.ts index 57d56ccc3b68d..d5c6c860ebce7 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunction.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunction.ts @@ -1,3 +1,4 @@ +// @strict: false class A { propA: number; diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionGenerics.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionGenerics.ts index d0e108b5735b7..e36c28a925b6d 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionGenerics.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionGenerics.ts @@ -1,3 +1,4 @@ +// @strict: false class A { propA: number; diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts index 12f6687c4015a..ae594be9d2c4f 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true class RoyalGuard { isLeader(): this is LeadGuard { diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts index 68d2713e17a1b..08f9b77f2a044 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true class RoyalGuard { isLeader(): this is LeadGuard { diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts index 1ed8e6ebb04ba..cea7eec58f77f 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts @@ -1,3 +1,4 @@ +// @strict: false var str: string; var bool: boolean; var num: number; diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts index 1d72f35828471..9a75076c2643b 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts @@ -1,3 +1,4 @@ +// @strict: false var str: string; var bool: boolean; var num: number; diff --git a/tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts b/tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts index 29d3f1932e5aa..a45486260d05f 100644 --- a/tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // ~ operator on any type diff --git a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherType.ts b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherType.ts index b6562299cb7de..e7f28b2c3d439 100644 --- a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherType.ts @@ -1,3 +1,4 @@ +// @strict: false // -- operator on any type var ANY: any; diff --git a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts index cbcbd14b5fcb5..7847102411f51 100644 --- a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts @@ -1,3 +1,4 @@ +// @strict: false // -- operator on any type declare var ANY1: any; var ANY2: any[] = ["", ""]; diff --git a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts index fca19d38daa45..1faae5c4fb80f 100644 --- a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts @@ -1,3 +1,4 @@ +// @strict: false // -- operator on enum type enum ENUM { }; diff --git a/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithAnyOtherType.ts b/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithAnyOtherType.ts index 91fdec9e5337e..2b3569db3e0d5 100644 --- a/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithAnyOtherType.ts @@ -1,3 +1,4 @@ +// @strict: false // delete operator on any type declare var ANY: any; diff --git a/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherType.ts b/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherType.ts index c36cd5ca480b0..85a99657b894d 100644 --- a/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherType.ts @@ -1,3 +1,4 @@ +// @strict: false // ++ operator on any type var ANY: any; diff --git a/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts b/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts index e8ef25e450345..8bd7a659f81a5 100644 --- a/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts @@ -1,3 +1,4 @@ +// @strict: false // ++ operator on any type var ANY1: any; var ANY2: any[] = [1, 2]; diff --git a/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts b/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts index 4d564fa7b0830..a5e675e575230 100644 --- a/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts @@ -1,3 +1,4 @@ +// @strict: false // + operator on any type declare var ANY: any; diff --git a/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts b/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts index 63cb2f2c05be3..fa41f0af0a8b4 100644 --- a/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts @@ -1,3 +1,4 @@ +// @strict: false // Unary operator typeof // opreand before typeof diff --git a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts index 7eb4b20abe828..6cd35588b22b6 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts @@ -1,3 +1,4 @@ +// @strict: false // Unary operator void // operand before void diff --git a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithBooleanType.ts b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithBooleanType.ts index ffbe615132f41..6a4f2b8c4445b 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithBooleanType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithBooleanType.ts @@ -1,3 +1,4 @@ +// @strict: false // void operator on boolean type var BOOLEAN: boolean; diff --git a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithEnumType.ts b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithEnumType.ts index 038aaed648353..007f146446895 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithEnumType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithEnumType.ts @@ -1,3 +1,4 @@ +// @strict: false // void operator on enum type enum ENUM { }; diff --git a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithNumberType.ts b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithNumberType.ts index aad5daf7586f1..e1a6062bd4431 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithNumberType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithNumberType.ts @@ -1,3 +1,4 @@ +// @strict: false // void operator on number type var NUMBER: number; var NUMBER1: number[] = [1, 2]; diff --git a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithStringType.ts b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithStringType.ts index fe4d83149a735..7ed383d669085 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithStringType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithStringType.ts @@ -1,3 +1,4 @@ +// @strict: false // void operator on string type var STRING: string; var STRING1: string[] = ["", "abc"]; diff --git a/tests/cases/conformance/expressions/valuesAndReferences/assignments.ts b/tests/cases/conformance/expressions/valuesAndReferences/assignments.ts index 5746716b10665..432f2a3e8d234 100644 --- a/tests/cases/conformance/expressions/valuesAndReferences/assignments.ts +++ b/tests/cases/conformance/expressions/valuesAndReferences/assignments.ts @@ -1,3 +1,4 @@ +// @strict: false // In this file: // Assign to a module // Assign to a class diff --git a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts index 713cfe7a9f937..3b8e36d70d701 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: es2015 diff --git a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts index 2c53a8a9254af..fe0e5e337fccc 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: esnext diff --git a/tests/cases/conformance/externalModules/exportAssignTypes.ts b/tests/cases/conformance/externalModules/exportAssignTypes.ts index 767aef93a7d6b..14b5d1af2dfb7 100644 --- a/tests/cases/conformance/externalModules/exportAssignTypes.ts +++ b/tests/cases/conformance/externalModules/exportAssignTypes.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: expString.ts var x = "test"; export = x; diff --git a/tests/cases/conformance/externalModules/exportAssignmentCircularModules.ts b/tests/cases/conformance/externalModules/exportAssignmentCircularModules.ts index 025e4f93c9886..1b3d19f4a6ac6 100644 --- a/tests/cases/conformance/externalModules/exportAssignmentCircularModules.ts +++ b/tests/cases/conformance/externalModules/exportAssignmentCircularModules.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: amd // @Filename: foo_0.ts import foo1 = require('./foo_1'); diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts index 4875a90842487..dc72652eb61b0 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: amd var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts index a4a9bbc997d83..420cce6234c79 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: commonjs var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts index 0daf3e422d70c..396ef500d9242 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts index a10175975e56a..3d767964d26d6 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: system var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts index c92632defd812..030bbd189e05a 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts @@ -1,3 +1,4 @@ +// @strict: false //@module: umd var; diff --git a/tests/cases/conformance/externalModules/initializersInDeclarations.ts b/tests/cases/conformance/externalModules/initializersInDeclarations.ts index b1b5ed6d7c438..77bb4a510bdd2 100644 --- a/tests/cases/conformance/externalModules/initializersInDeclarations.ts +++ b/tests/cases/conformance/externalModules/initializersInDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: file1.d.ts // Errors: Initializers & statements in declaration file diff --git a/tests/cases/conformance/externalModules/topLevelAmbientModule.ts b/tests/cases/conformance/externalModules/topLevelAmbientModule.ts index cab2b9827a989..9a664184e040d 100644 --- a/tests/cases/conformance/externalModules/topLevelAmbientModule.ts +++ b/tests/cases/conformance/externalModules/topLevelAmbientModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: foo_0.ts declare module "foo" { diff --git a/tests/cases/conformance/externalModules/topLevelAwait.1.ts b/tests/cases/conformance/externalModules/topLevelAwait.1.ts index 5a93880a5abda..185aff68775a2 100644 --- a/tests/cases/conformance/externalModules/topLevelAwait.1.ts +++ b/tests/cases/conformance/externalModules/topLevelAwait.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015,es2017 // @module: es2022,esnext,system // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/topLevelAwait.2.ts b/tests/cases/conformance/externalModules/topLevelAwait.2.ts index 7fd2c1782a7f2..8b652343dcdf5 100644 --- a/tests/cases/conformance/externalModules/topLevelAwait.2.ts +++ b/tests/cases/conformance/externalModules/topLevelAwait.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwait.3.ts b/tests/cases/conformance/externalModules/topLevelAwait.3.ts index 6deeb59afe385..0a9c0bdbbfe49 100644 --- a/tests/cases/conformance/externalModules/topLevelAwait.3.ts +++ b/tests/cases/conformance/externalModules/topLevelAwait.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext // @filename: index.d.ts diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts index 7ff5f4f5c892a..d63287dd4a464 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext // @experimentalDecorators: true diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.10.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.10.ts index af60e3db79005..703d3e995cffb 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.10.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.10.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts index c200b17ef3598..b8465398597f1 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: commonjs diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.12.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.12.ts index 73c126628bf64..122ad32c5eeb1 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.12.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.12.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts index 609e374c2cc7e..a33140f42311e 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts index 2841a03e0d70a..5c70c272b5bb4 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts index d2216b95ad032..bea8f377988d2 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts index aa76902829906..16e1ae47dd88a 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts index ebee5efe3ed39..abf1d73a08fbd 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts index 10058cc2d8d41..8f9bca530a3a8 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts index 7f6dcb8e134a7..4210e1f51fd96 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts b/tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts index 7b8d4866927d4..bf9a52327cf89 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts b/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts index 97d4b3b624134..09a2b1bedcf87 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: es2022,esnext await x; diff --git a/tests/cases/conformance/externalModules/topLevelFileModule.ts b/tests/cases/conformance/externalModules/topLevelFileModule.ts index e6680889d2604..fb6001496a2e6 100644 --- a/tests/cases/conformance/externalModules/topLevelFileModule.ts +++ b/tests/cases/conformance/externalModules/topLevelFileModule.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: vs/foo_0.ts export var x: number; diff --git a/tests/cases/conformance/externalModules/topLevelFileModuleMissing.ts b/tests/cases/conformance/externalModules/topLevelFileModuleMissing.ts index 860c4fe8294f4..d917df62fd3c2 100644 --- a/tests/cases/conformance/externalModules/topLevelFileModuleMissing.ts +++ b/tests/cases/conformance/externalModules/topLevelFileModuleMissing.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: vs/foo_0.ts export var x: number; diff --git a/tests/cases/conformance/externalModules/topLevelModuleDeclarationAndFile.ts b/tests/cases/conformance/externalModules/topLevelModuleDeclarationAndFile.ts index 456527acfaeda..f393f65a68c00 100644 --- a/tests/cases/conformance/externalModules/topLevelModuleDeclarationAndFile.ts +++ b/tests/cases/conformance/externalModules/topLevelModuleDeclarationAndFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @Filename: vs/foo_0/index.ts export var x: number = 42; diff --git a/tests/cases/conformance/externalModules/umd-errors.ts b/tests/cases/conformance/externalModules/umd-errors.ts index 95e6cb7c7a451..2d052fb11a8af 100644 --- a/tests/cases/conformance/externalModules/umd-errors.ts +++ b/tests/cases/conformance/externalModules/umd-errors.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: commonjs // @filename: err1.d.ts diff --git a/tests/cases/conformance/fixSignatureCaching.ts b/tests/cases/conformance/fixSignatureCaching.ts index bfc37919f7823..1f388dce98877 100644 --- a/tests/cases/conformance/fixSignatureCaching.ts +++ b/tests/cases/conformance/fixSignatureCaching.ts @@ -1,3 +1,4 @@ +// @strict: false // Repro from #10697 (function (define, undefined) { diff --git a/tests/cases/conformance/functions/functionImplementationErrors.ts b/tests/cases/conformance/functions/functionImplementationErrors.ts index edae8bd2b5aa9..d880d2c3de764 100644 --- a/tests/cases/conformance/functions/functionImplementationErrors.ts +++ b/tests/cases/conformance/functions/functionImplementationErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // FunctionExpression with no return type annotation with multiple return statements with unrelated types diff --git a/tests/cases/conformance/functions/functionImplementations.ts b/tests/cases/conformance/functions/functionImplementations.ts index 3c5adefd2e40a..e13088f7aa13d 100644 --- a/tests/cases/conformance/functions/functionImplementations.ts +++ b/tests/cases/conformance/functions/functionImplementations.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // FunctionExpression with no return type annotation and no return statement returns void diff --git a/tests/cases/conformance/functions/functionNameConflicts.ts b/tests/cases/conformance/functions/functionNameConflicts.ts index 0b12a231fb7ea..d48d3019548a9 100644 --- a/tests/cases/conformance/functions/functionNameConflicts.ts +++ b/tests/cases/conformance/functions/functionNameConflicts.ts @@ -1,3 +1,4 @@ +// @strict: false //Function and variable of the same name in same declaration space //Function overload with different name from implementation signature diff --git a/tests/cases/conformance/functions/functionOverloadErrors.ts b/tests/cases/conformance/functions/functionOverloadErrors.ts index 1f917b17fa215..d05d7962fb210 100644 --- a/tests/cases/conformance/functions/functionOverloadErrors.ts +++ b/tests/cases/conformance/functions/functionOverloadErrors.ts @@ -1,3 +1,4 @@ +// @strict: false //Function overload signature with initializer function fn1(x = 3); function fn1() { } diff --git a/tests/cases/conformance/functions/functionOverloadErrorsSyntax.ts b/tests/cases/conformance/functions/functionOverloadErrorsSyntax.ts index 6c482fb70fcf3..803ad40af2d4a 100644 --- a/tests/cases/conformance/functions/functionOverloadErrorsSyntax.ts +++ b/tests/cases/conformance/functions/functionOverloadErrorsSyntax.ts @@ -1,3 +1,4 @@ +// @strict: false //Function overload signature with optional parameter followed by non-optional parameter function fn4a(x?: number, y: string); function fn4a() { } diff --git a/tests/cases/conformance/functions/functionParameterObjectRestAndInitializers.ts b/tests/cases/conformance/functions/functionParameterObjectRestAndInitializers.ts index 41c6af41b9513..7c8ac7addd246 100644 --- a/tests/cases/conformance/functions/functionParameterObjectRestAndInitializers.ts +++ b/tests/cases/conformance/functions/functionParameterObjectRestAndInitializers.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/47079 diff --git a/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList.ts b/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList.ts index d4b8ced9b42a5..2863f3ad6165c 100644 --- a/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList.ts +++ b/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList.ts @@ -1,3 +1,4 @@ +// @strict: false function a(a = 10) { "use strict"; } diff --git a/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList_es2016.ts b/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList_es2016.ts index 6c9fadd1ac1e7..3daeecc0900c5 100644 --- a/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList_es2016.ts +++ b/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList_es2016.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2016 function a(a = 10) { diff --git a/tests/cases/conformance/functions/parameterInitializersBackwardReferencing.ts b/tests/cases/conformance/functions/parameterInitializersBackwardReferencing.ts index dce4818a5094e..b721ca502940a 100644 --- a/tests/cases/conformance/functions/parameterInitializersBackwardReferencing.ts +++ b/tests/cases/conformance/functions/parameterInitializersBackwardReferencing.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5, es2015, esnext // @noEmit: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/functions/parameterInitializersForwardReferencing.2.ts b/tests/cases/conformance/functions/parameterInitializersForwardReferencing.2.ts index 7aa08e2dbf03d..c2fc0788c2660 100644 --- a/tests/cases/conformance/functions/parameterInitializersForwardReferencing.2.ts +++ b/tests/cases/conformance/functions/parameterInitializersForwardReferencing.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5, es2015, esnext // @noEmit: true // @noTypesAndSymbols: true diff --git a/tests/cases/conformance/functions/parameterInitializersForwardReferencing.ts b/tests/cases/conformance/functions/parameterInitializersForwardReferencing.ts index fa3549ea2c5bd..31320e24828ae 100644 --- a/tests/cases/conformance/functions/parameterInitializersForwardReferencing.ts +++ b/tests/cases/conformance/functions/parameterInitializersForwardReferencing.ts @@ -1,3 +1,4 @@ +// @strict: false function left(a, b = a, c = b) { a; b; diff --git a/tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts b/tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts index f83eb2dd34ec6..dbe389eb21119 100644 --- a/tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts +++ b/tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 let foo: string = ""; diff --git a/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts b/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts index 0bac9af2ce139..4e18948b3f502 100644 --- a/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts +++ b/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { export interface Point { x: number; diff --git a/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts b/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts index 7f37fe232ce6d..7fa49691c1753 100644 --- a/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts +++ b/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { export interface Point { x: number; diff --git a/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts b/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts index 7cd7cf2315b52..748212d654981 100644 --- a/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts +++ b/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { export interface Point { diff --git a/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts b/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts index f6c4feb4c3c17..ed9a0636c5434 100644 --- a/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts +++ b/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts @@ -1,3 +1,4 @@ +// @strict: false namespace A { interface Point { diff --git a/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts b/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts index 73e29590d63ed..4ed7f1b59830d 100644 --- a/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts +++ b/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts @@ -1,3 +1,4 @@ +// @strict: false namespace Inner { var; diff --git a/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts b/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts index 213b66908d907..93c3063d35643 100644 --- a/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts +++ b/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/callbackTag2.ts b/tests/cases/conformance/jsdoc/callbackTag2.ts index 34e71b55bcd71..e353e82aaa956 100644 --- a/tests/cases/conformance/jsdoc/callbackTag2.ts +++ b/tests/cases/conformance/jsdoc/callbackTag2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts b/tests/cases/conformance/jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts index 09ea30c0cc013..a4e4ab5ff3c3b 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJS: true // @suppressOutputPathCheck: true diff --git a/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts b/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts index e8e6ad971fb3c..ef523a6524c70 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJS: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts b/tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts index ecd597c6eb5da..c762dd3707f61 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts b/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts index 73b387c203e7e..31ac22ce59757 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts b/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts index 2981292ba7e58..131bffc892e95 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts b/tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts index d991d2f6e1660..39f1ec9e1bc03 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJS: true // @suppressOutputPathCheck: true diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassAccessor.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassAccessor.ts index 2e5717ed05b10..e01d7ebbc9adc 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassAccessor.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassAccessor.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es2019 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts index b3b27f096e9a9..e1a8c071a6475 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es5 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts index f8732cb41479b..82c288f390d76 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es5 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts index fb4749e50868b..b172d8026df79 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es5 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportedClassAliases.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportedClassAliases.ts index 37f092d07726b..3f56466132731 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportedClassAliases.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportedClassAliases.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts index cfa747d48c8b6..224f06d9a94be 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es5 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts index dc58d1e05b4ca..741395cff39f3 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es5 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts index aacd499707485..80fc4200d200c 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts index ff9396ac90479..e8d5d0d79b253 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es5 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts index c924ef7455282..89d782095b38c 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es5 diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts index 6872741c16baa..3c1c90db4f069 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: es6 diff --git a/tests/cases/conformance/jsdoc/enumTag.ts b/tests/cases/conformance/jsdoc/enumTag.ts index a857d4eccce93..214c3267dd4a0 100644 --- a/tests/cases/conformance/jsdoc/enumTag.ts +++ b/tests/cases/conformance/jsdoc/enumTag.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/enumTagCircularReference.ts b/tests/cases/conformance/jsdoc/enumTagCircularReference.ts index c4015b7098566..6d9ebcc10affe 100644 --- a/tests/cases/conformance/jsdoc/enumTagCircularReference.ts +++ b/tests/cases/conformance/jsdoc/enumTagCircularReference.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/enumTagImported.ts b/tests/cases/conformance/jsdoc/enumTagImported.ts index 84ce46aa1a317..a660632f49926 100644 --- a/tests/cases/conformance/jsdoc/enumTagImported.ts +++ b/tests/cases/conformance/jsdoc/enumTagImported.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/enumTagOnExports.ts b/tests/cases/conformance/jsdoc/enumTagOnExports.ts index ce8bd0b1237d3..9ee015274a742 100644 --- a/tests/cases/conformance/jsdoc/enumTagOnExports.ts +++ b/tests/cases/conformance/jsdoc/enumTagOnExports.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: enumTagOnExports.js // @allowjs: true // @checkjs: true diff --git a/tests/cases/conformance/jsdoc/enumTagOnExports2.ts b/tests/cases/conformance/jsdoc/enumTagOnExports2.ts index 3a4633138375d..0f0318cd2c1fc 100644 --- a/tests/cases/conformance/jsdoc/enumTagOnExports2.ts +++ b/tests/cases/conformance/jsdoc/enumTagOnExports2.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename: enumTagOnExports.js // @allowjs: true // @checkjs: true diff --git a/tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts b/tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts index f8f92b7bcc1bf..afcc357b47a1f 100644 --- a/tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts +++ b/tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/errorIsolation.ts b/tests/cases/conformance/jsdoc/errorIsolation.ts index d06d76dcac86a..dd9fbb92a33b6 100644 --- a/tests/cases/conformance/jsdoc/errorIsolation.ts +++ b/tests/cases/conformance/jsdoc/errorIsolation.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @checkJs: true // @filename: errorIsolation.js diff --git a/tests/cases/conformance/jsdoc/importTag24.ts b/tests/cases/conformance/jsdoc/importTag24.ts index 1db1fe46b9e26..a0c0350634e98 100644 --- a/tests/cases/conformance/jsdoc/importTag24.ts +++ b/tests/cases/conformance/jsdoc/importTag24.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts b/tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts index b49f732c1bb1c..ece26491d8017 100644 --- a/tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts +++ b/tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: esnext diff --git a/tests/cases/conformance/jsdoc/jsdocLinkTag8.ts b/tests/cases/conformance/jsdoc/jsdocLinkTag8.ts index ac817f70f1175..b5eb6ff929826 100644 --- a/tests/cases/conformance/jsdoc/jsdocLinkTag8.ts +++ b/tests/cases/conformance/jsdoc/jsdocLinkTag8.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @target: esnext diff --git a/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts b/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts index c16a87a57fc34..2d5d261a1b7f6 100644 --- a/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts +++ b/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkjs: true // @filename: jsdocOuterTypeParameters1.js /** @return {T} */ diff --git a/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts b/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts index ed814d315ca21..6c652888f3277 100644 --- a/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts +++ b/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkjs: true // @filename: jsdocOuterTypeParameters1.js /** @return {T} */ diff --git a/tests/cases/conformance/jsdoc/jsdocParamTag2.ts b/tests/cases/conformance/jsdoc/jsdocParamTag2.ts index 0d34ee5496a69..d607371be9a5d 100644 --- a/tests/cases/conformance/jsdoc/jsdocParamTag2.ts +++ b/tests/cases/conformance/jsdoc/jsdocParamTag2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJS: true // @checkJS: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts b/tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts index 1036c2eb7a855..bbe2ff6ffe862 100644 --- a/tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts +++ b/tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @target: esnext diff --git a/tests/cases/conformance/jsdoc/jsdocTemplateTag.ts b/tests/cases/conformance/jsdoc/jsdocTemplateTag.ts index e69756c094101..51b9eb5099a12 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTag.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTag.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts b/tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts index b7e706f124aa4..578e69a615a4c 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts b/tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts index e05438d304de7..dd603593747d8 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts b/tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts index c93359a7a6eb3..d9c615bc1b950 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts b/tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts index a5b4d052ad2de..047ba1bc9a92e 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @outDir: out diff --git a/tests/cases/conformance/jsdoc/overloadTag1.ts b/tests/cases/conformance/jsdoc/overloadTag1.ts index 4eb66b596df44..b7f72c2f30f8b 100644 --- a/tests/cases/conformance/jsdoc/overloadTag1.ts +++ b/tests/cases/conformance/jsdoc/overloadTag1.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @outdir: foo diff --git a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts index 03c79ce9e1cb4..f79e7ed4ada6a 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts index a6a68aa0861ed..ff703fc07a58b 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts index 8307688a0cdbd..309666dceb0c0 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts index 5840308fa0dac..d82d2e478c5d6 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsdoc/parseLinkTag.ts b/tests/cases/conformance/jsdoc/parseLinkTag.ts index c58548cd9b471..8b3b182b36869 100644 --- a/tests/cases/conformance/jsdoc/parseLinkTag.ts +++ b/tests/cases/conformance/jsdoc/parseLinkTag.ts @@ -1,3 +1,4 @@ +// @strict: false /** trailing @link tag {@link */ var x; /** @returns trailing @link tag {@link */ diff --git a/tests/cases/conformance/jsdoc/syntaxErrors.ts b/tests/cases/conformance/jsdoc/syntaxErrors.ts index e8a3641cde2d8..2514fa4f5768b 100644 --- a/tests/cases/conformance/jsdoc/syntaxErrors.ts +++ b/tests/cases/conformance/jsdoc/syntaxErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts b/tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts index ee71909c2edd9..cce135344befa 100644 --- a/tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts +++ b/tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/jsx/jsxAttributeInitializer.ts b/tests/cases/conformance/jsx/jsxAttributeInitializer.ts index 95e4c66820531..a0cd1adbb8aa0 100644 --- a/tests/cases/conformance/jsx/jsxAttributeInitializer.ts +++ b/tests/cases/conformance/jsx/jsxAttributeInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // @jsx: preserve, react // @filename: a.tsx declare var React: any; diff --git a/tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts b/tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts index 08b6149d37d91..40de9c2b5101b 100644 --- a/tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts +++ b/tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: jsxParserRecovery.tsx // @jsx: preserve diff --git a/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts b/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts index 1c5103442a6bb..4b1f0b6a26507 100644 --- a/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts +++ b/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts @@ -1,3 +1,4 @@ +// @strict: false // @jsx: react // @target: es2015,es2018,esnext // @filename: test.tsx diff --git a/tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts b/tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts index 9ddb1dcec8e33..3d46f1b1fff21 100644 --- a/tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts +++ b/tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts @@ -1,3 +1,4 @@ +// @strict: false // @moduleResolution: classic,node16,nodenext,bundler // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/moduleResolution/packageJsonMain.ts b/tests/cases/conformance/moduleResolution/packageJsonMain.ts index 6bf21cfaa3a82..9e60250fb65b6 100644 --- a/tests/cases/conformance/moduleResolution/packageJsonMain.ts +++ b/tests/cases/conformance/moduleResolution/packageJsonMain.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @currentDirectory: / // @traceResolution: true diff --git a/tests/cases/conformance/moduleResolution/packageJsonMain_isNonRecursive.ts b/tests/cases/conformance/moduleResolution/packageJsonMain_isNonRecursive.ts index c6e684b3fe1ba..c495a87ad2cfb 100644 --- a/tests/cases/conformance/moduleResolution/packageJsonMain_isNonRecursive.ts +++ b/tests/cases/conformance/moduleResolution/packageJsonMain_isNonRecursive.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @currentDirectory: / // @traceResolution: true diff --git a/tests/cases/conformance/moduleResolution/untypedModuleImport.ts b/tests/cases/conformance/moduleResolution/untypedModuleImport.ts index 2ea07db3ee496..cb335181e4607 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @currentDirectory: / // This tests that importing from a JS file globally works in an untyped way. diff --git a/tests/cases/conformance/moduleResolution/untypedModuleImport_allowJs.ts b/tests/cases/conformance/moduleResolution/untypedModuleImport_allowJs.ts index fe509189d9667..bf4704f73033b 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport_allowJs.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport_allowJs.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @currentDirectory: / // @allowJs: true diff --git a/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts b/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts index e157772a5edad..2f27b67f0e535 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @currentDirectory: / // This tests that an ambient module declaration overrides an untyped import. diff --git a/tests/cases/conformance/moduleResolution/untypedModuleImport_withAugmentation.ts b/tests/cases/conformance/moduleResolution/untypedModuleImport_withAugmentation.ts index e27c1232d2587..b62fc6a7245e3 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport_withAugmentation.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport_withAugmentation.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitReferences: true // @currentDirectory: / // This tests that augmenting an untyped module is forbidden. diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts index 7e16936af2a1d..9cc719adac682 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false // @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 4443169375e7e..9bef9ae71b79c 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: node16,node18,node20,nodenext // @declaration: true // @allowJs: true diff --git a/tests/cases/conformance/node/nodeModulesImportAssignments.ts b/tests/cases/conformance/node/nodeModulesImportAssignments.ts index 2e702fe5b2a23..88bd450c5f5b0 100644 --- a/tests/cases/conformance/node/nodeModulesImportAssignments.ts +++ b/tests/cases/conformance/node/nodeModulesImportAssignments.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts b/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts index 8829c0fcdfd70..6b4e070a98fae 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts b/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts index 455cc038bd691..bc412a1729510 100644 --- a/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts +++ b/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: node16,node18,node20,nodenext // @declaration: true // @outDir: out diff --git a/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts b/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts index fd796367e694a..e4ea126385260 100644 --- a/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts +++ b/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts @@ -1,3 +1,4 @@ +// @strict: false // @module: node16,node18,node20,nodenext // @declaration: true // @filename: subfolder/index.ts diff --git a/tests/cases/conformance/override/override_js2.ts b/tests/cases/conformance/override/override_js2.ts index 2de6b1662712e..c48ae80a0bfc6 100644 --- a/tests/cases/conformance/override/override_js2.ts +++ b/tests/cases/conformance/override/override_js2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitOverride: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/override/override_js3.ts b/tests/cases/conformance/override/override_js3.ts index f36a29e37796d..110359c01475d 100644 --- a/tests/cases/conformance/override/override_js3.ts +++ b/tests/cases/conformance/override/override_js3.ts @@ -1,3 +1,4 @@ +// @strict: false // @noImplicitOverride: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.classMethods.es2018.ts b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.classMethods.es2018.ts index 719d373983b54..5ba5c2f9a662b 100644 --- a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.classMethods.es2018.ts +++ b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.classMethods.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @noEmit: true diff --git a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionDeclarations.es2018.ts b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionDeclarations.es2018.ts index 10cbc2204bb15..1b52bac20c9e7 100644 --- a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionDeclarations.es2018.ts +++ b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionDeclarations.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @noEmit: true diff --git a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionExpressions.es2018.ts b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionExpressions.es2018.ts index 92bbcf50c5983..20bb2d7900ed3 100644 --- a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionExpressions.es2018.ts +++ b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionExpressions.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @noEmit: true diff --git a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.es2018.ts b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.es2018.ts index dc9ffb4dddb12..8f7699ace8e26 100644 --- a/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.es2018.ts +++ b/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.es2018.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @skipLibCheck: true // @lib: esnext diff --git a/tests/cases/conformance/parser/ecmascript3/Accessors/parserES3Accessors2.ts b/tests/cases/conformance/parser/ecmascript3/Accessors/parserES3Accessors2.ts index 99fab6497f30d..4921161305155 100644 --- a/tests/cases/conformance/parser/ecmascript3/Accessors/parserES3Accessors2.ts +++ b/tests/cases/conformance/parser/ecmascript3/Accessors/parserES3Accessors2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { set Foo(a) { } } \ 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 a2ba74bdb14eb..d4a19bf73ea75 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set Foo(a) { } diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts index 5fc896002d7d5..8b501afda3ec1 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: es5 var v = { set Foo(a) { } }; \ 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 4d2aa80828be6..2a0a0773fc61e 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 declare class C { set foo(v) { } diff --git a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts index 2d8af279224dd..f3240641c58b4 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: es5 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 7f61bd2d4d636..9c88ffc54e054 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts @@ -1,2 +1,3 @@ +// @strict: false // @target: es5 var v = { set foo(a, b) { } } \ 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 8b3d11292780d..b4e3165652b27 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 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 16a09906d76d9..77f42555cecfc 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set foo(v) { } diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts index 66fb0382581fc..0ae4ac42cf9e7 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression11.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression11.ts index 1009993375376..117a0a1ac61f9 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression11.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression11.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts index fd06ce651c6bf..7aa2de1787c27 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression15.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression15.ts index 7eae203ea576f..882f87fff7944 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression15.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression15.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression16.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression16.ts index 27a7591865c82..86151af372d12 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression16.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression16.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression17.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression17.ts index 94a4f59b5c3be..92e8f14f636db 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression17.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression17.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression8.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression8.ts index 6590f0dac984f..d88d00e033c21 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression8.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression8.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression9.ts b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression9.ts index 504425234039c..03548b7b82cb0 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression9.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression9.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowjs: true // @checkjs: true // @outdir: out diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration10.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration10.ts index 5dbbdbaca85c3..8aa2e7918068e 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration10.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration10.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(); foo(); diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration12.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration12.ts index 86d64905d5c3d..5248d023f6e9b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration12.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration12.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(); constructor(a) { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration13.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration13.ts index f58340bc491da..bbc057e4bb478 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration13.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration13.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); bar() { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration14.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration14.ts index a91f34253fa11..ad7333d9bb42a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration14.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration14.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); constructor(); diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration15.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration15.ts index 6b28c5200893b..78caec37b2f4d 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration15.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration15.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); constructor() { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration16.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration16.ts index b345892ec2e11..46af221520b3c 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration16.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration16.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); foo() { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration17.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration17.ts index a709f7d7bcca0..d9a9c5aa1e553 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration17.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration17.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es5 declare class Enumerator { public atEnd(): boolean; diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration19.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration19.ts index 65d9bd0a57c6a..3bf18835e3276 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration19.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration19.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); "foo"() { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration20.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration20.ts index 6c8540e833d71..f65a2e85274d0 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration20.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration20.ts @@ -1,3 +1,4 @@ +// @strict: false class C { 0(); "0"() { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration21.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration21.ts index c9a54f97ef598..eeff13aebe850 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration21.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration21.ts @@ -1,3 +1,4 @@ +// @strict: false class C { 0(); 1() { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration22.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration22.ts index ec6da6d269c7c..ba9c8ab0552f1 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration22.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration22.ts @@ -1,3 +1,4 @@ +// @strict: false class C { "foo"(); "bar"() { } diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration26.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration26.ts index 4d5395733a774..92be5906ff2d9 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration26.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration26.ts @@ -1,3 +1,4 @@ +// @strict: false class C { var public diff --git a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration9.ts b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration9.ts index 620dc45a4df52..84d4d63da65c3 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration9.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration9.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(); } \ 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 b5e27ecc71b38..8d5c2dd8b0b65 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES5 class C { [e](); diff --git a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts index 280dc1a5a0ddd..43117e32fb72b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES5 class C { [e] diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts index 30045cf9f056e..18a0b86e396d3 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts @@ -1,3 +1,4 @@ +// @strict: false class Outer { static public; diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts index 49db39132c623..777c4eb3881d5 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts @@ -1,3 +1,4 @@ +// @strict: false class Outer { static public diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts index 75f4e7105fcbb..78e9a9fb4c236 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts @@ -1,3 +1,4 @@ +// @strict: false class Outer { static public \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts index a63e70a4ac15b..a008321d28cc7 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts @@ -1,3 +1,4 @@ +// @strict: false var v = (a, b) => { }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts index a63e70a4ac15b..a008321d28cc7 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts @@ -1,3 +1,4 @@ +// @strict: false var v = (a, b) => { }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts index 7399b78df859f..971b62177d5a5 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts @@ -1,3 +1,4 @@ +// @strict: false // Interface interface IPoint { getDist(): number; diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts index 05ad1d455a6df..f77b6342d271e 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts @@ -1,2 +1,3 @@ +// @strict: false function f(a { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts index 1d42033558839..fac3459cbea16 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts @@ -1,2 +1,3 @@ +// @strict: false function f(a, { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts index 57e008de50736..cd105b4afd572 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts @@ -1 +1,2 @@ +// @strict: false var s = $.extend< { workItem: any }, { workItem: any, width: string }>({ workItem: this._workItem }, {}); diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts index a63016987d328..ad51a67dc153a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts @@ -1,3 +1,4 @@ +// @strict: false class a { //constructor (); constructor (n: number); diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts index 1ea7f809eadd9..e53e5cac1fcc7 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { where(filter: Iterator): Query { return fromDoWhile(test => diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature1.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature1.ts index ffd28ee38320b..844b7603426c0 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature1.ts @@ -1,3 +1,4 @@ +// @strict: false interface Foo{ public biz; } diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature2.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature2.ts index 97230c998999e..0059be4dd720f 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature2.ts @@ -1,3 +1,4 @@ +// @strict: false interface Foo{ public biz; diff --git a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts index c029cbf8b12dc..6fece13180a39 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts @@ -1,3 +1,4 @@ +// @strict: false return { "set": function (key, value) { diff --git a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration1.ts b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration1.ts index e6360d755c2f8..d86483408693d 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration1.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration1.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace M { declare function F(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration4.ts b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration4.ts index 07ca5a5cd92a1..7117d66d34eba 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration4.ts @@ -1,2 +1,3 @@ +// @strict: false function foo(); function bar() { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration5.ts b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration5.ts index 971b7757ba9d1..afea76ed86fbb 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration5.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration5.ts @@ -1,2 +1,3 @@ +// @strict: false function foo(); function foo() { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration6.ts b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration6.ts index 4f656130ae1bb..6f19f19b93d2d 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration6.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration6.ts @@ -1,3 +1,4 @@ +// @strict: false { function foo(); function bar() { } diff --git a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration7.ts b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration7.ts index 3684110c82ca0..a74836f3639a3 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration7.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration7.ts @@ -1,3 +1,4 @@ +// @strict: false namespace M { function foo(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration8.ts b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration8.ts index f1b8f0efc027d..70f8e590a44ab 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration8.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration8.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace M { function foo(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts b/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts index de73aaa7d73d9..918af917d257d 100644 --- a/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts +++ b/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts @@ -1,3 +1,4 @@ +// @strict: false export class Game { private position = new DisplayPosition([), 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 0], NoMove, 0); private prevConfig: SeedCoords[][]; diff --git a/tests/cases/conformance/parser/ecmascript5/Generics/parserCastVersusArrowFunction1.ts b/tests/cases/conformance/parser/ecmascript5/Generics/parserCastVersusArrowFunction1.ts index 1f19bd2b39da9..bf20c3ca7accc 100644 --- a/tests/cases/conformance/parser/ecmascript5/Generics/parserCastVersusArrowFunction1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Generics/parserCastVersusArrowFunction1.ts @@ -1,3 +1,4 @@ +// @strict: false var v = () => 1; var v = a; diff --git a/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts b/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts index 2a99284ab03f6..41288f466d67d 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static static [x: string]: string; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts index 853817d41c5e6..a3abdcdde2e5d 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [...a] } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts index 06b9ce8393d51..c1956c8960023 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [a, b]: number } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts index 1c78f24a213b3..e2a14b1de0682 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [p]; // Used to be indexer, now it is a computed property [p1: string]; diff --git a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts index 58cd613071434..f7aa09975a572 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [public a] } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts index fe072303e1211..bd9fccda234cc 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [a?] } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts index a6cf3a720a9cf..d5e54619ebf2e 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [a = 0] // Used to be indexer, now it is a computed property } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts index e77c8fe9bb08d..93d927d88b529 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { [a] // Used to be indexer, now it is a computed property } \ 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 935f70c1c907e..c84e7864a81f8 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set Foo() { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts index 1bb0a7c7ebcb7..2ed7d3b077e28 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set Foo(a = 1) { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts index 94a7a62295ec7..cb9a38201b84e 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set Foo(...a) { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts index e27e000ef2026..3de5bf8e3ee27 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set a(i) { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts index 4e71fad535b0f..cc0173de8d22b 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set "a"(i) { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts index 1ef5cb83fbd96..db71579f82ee1 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { set 0(i) { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts index f95d5f109308c..f1d099e1ea1c6 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 class C { static static get Foo() { } diff --git a/tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration2.ts b/tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration2.ts index 5bde3b5913acb..30eb9fef1db70 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration2.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static static Foo() { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration1.ts b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration1.ts index 9bf32173ca1b0..776ae1b30227c 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration1.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public public Foo; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration2.ts b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration2.ts index 17edcab37be77..7e67163a11898 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration2.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static static Foo; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration3.ts b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration3.ts index bb77460191af2..3d5916ae9c1c9 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration3.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration3.ts @@ -1,3 +1,4 @@ +// @strict: false class C { static public Foo; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts index 7f647ffb3bf8d..00b86bfe6a042 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts @@ -1,3 +1,4 @@ +// @strict: false class C { export Foo; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration5.ts b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration5.ts index 98c4f9a75bbf3..6470b2935eea0 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration5.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration5.ts @@ -1,3 +1,4 @@ +// @strict: false class C { declare Foo; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature1.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature1.ts index 070155319e87d..87b8bd74cea5c 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature1.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { A(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature10.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature10.ts index a58885e8489a1..31397cca82ef1 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature10.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature10.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 1?(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature11.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature11.ts index 864121a7e5fdd..f1b07b30bcdcb 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature11.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature11.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 2(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature12.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature12.ts index c051e41cec6c1..75c2de1554ce8 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature12.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature12.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 3?(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature2.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature2.ts index b20ebadc1ff05..1f06aa8d0a8a4 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { B?(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature3.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature3.ts index da0ec4e395b6f..e2582b30388fb 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature3.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature3.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { C(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts index daa26cb933b0b..ce21c60d9a28c 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { D?(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature5.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature5.ts index 1f0688a37f4b8..8cdae039cd923 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature5.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature5.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { "E"(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature6.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature6.ts index 601f48a2f3211..9e8bd6797a889 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature6.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature6.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { "F"?(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature7.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature7.ts index ff9df7bffe599..aeae8a0e12c0b 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature7.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature7.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { "G"(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature8.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature8.ts index 7af4b0bf93b59..42cb46b04cb2b 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature8.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature8.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { "H"?(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature9.ts b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature9.ts index a54321bbec453..6b5c3984a6a5b 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature9.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature9.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 0(); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts b/tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts index e0045fc9f9e9a..ea167f26c4e0f 100644 --- a/tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts +++ b/tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace string { interface X { } export function foo(s: string); diff --git a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType3.ts b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType3.ts index b154600fb0982..2494b1c0d8a11 100644 --- a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType3.ts +++ b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType3.ts @@ -1,3 +1,4 @@ +// @strict: false var v: { x; y diff --git a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType4.ts b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType4.ts index e0b986e88bf34..c2116f9639913 100644 --- a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType4.ts @@ -1,3 +1,4 @@ +// @strict: false var v: { x y diff --git a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType5.ts b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType5.ts index 0687805280beb..c86b1a9590b6a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType5.ts +++ b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType5.ts @@ -1,3 +1,4 @@ +// @strict: false var v: { A: B ; diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts index 7d3efaab39d8f..8a92b2c448e3b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts @@ -1,3 +1,4 @@ +// @strict: false class C { F(...A, B) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList10.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList10.ts index 0f9d35c39046b..b22b8b09522e9 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList10.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList10.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(...bar = 0) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList12.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList12.ts index 83756bdfa69dd..caa7adaddbe03 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList12.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList12.ts @@ -1,2 +1,3 @@ +// @strict: false function F(a,) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList13.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList13.ts index 1e0e09b84f576..3733f417b4776 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList13.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList13.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { new (public x); } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList14.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList14.ts index 41a3ab483579a..6cdcb6aa41dbd 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList14.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList14.ts @@ -1,3 +1,4 @@ +// @strict: false declare class C { foo(a = 1): void; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList15.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList15.ts index 02f258e24598e..6745ee6d9ed8b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList15.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList15.ts @@ -1,2 +1,3 @@ +// @strict: false function foo(a = 4); function foo(a, b) {} \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts index 08a64f51b1604..61262507ea982 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(a = 4); foo(a, b) { } diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts index 27ada9c2c76b9..b926a94e3fdf9 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(a = 4); constructor(a, b) { } diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList3.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList3.ts index 2e5a617fb08a1..8ec5c7eddc07f 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList3.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList3.ts @@ -1,3 +1,4 @@ +// @strict: false class C { F(A?, B) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts index 71e4fe05f5bce..2ad3af4d4c94a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts @@ -1,2 +1,3 @@ +// @strict: false function F(public A) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts index 667875b36d8d6..70b8f80822cfe 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts @@ -1,2 +1,3 @@ +// @strict: false function A(): (public B) => C { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList6.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList6.ts index 3e81cd934a1f5..e36ac5d9ac5b2 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList6.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList6.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(C: (public A) => any) { } diff --git a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts index be93e72f12938..d77bc5ed6ab02 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo(...bar?) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature1.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature1.ts index ae94fdfc67158..223403620d3ae 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature1.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { A; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature10.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature10.ts index f43b28d14e22b..53c395b340cd7 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature10.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature10.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 1?; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature11.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature11.ts index 97066c891696a..295b10e03a80c 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature11.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature11.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 2:any; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature12.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature12.ts index 2adf46d49928c..7b1f967c9d80f 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature12.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature12.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 3?:any; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature2.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature2.ts index ecf5feacb5ef3..e00309c71402a 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature2.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { B?; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature5.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature5.ts index b20b6918b55d2..056d174930af3 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature5.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature5.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { "E"; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature6.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature6.ts index 059de959e2f6b..a39694926d907 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature6.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature6.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { "F"?; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature9.ts b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature9.ts index 685fff45b85c9..b7bf2d8660056 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature9.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature9.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { 0; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts b/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts index 5337751fb1e3c..12294a7534ab2 100644 --- a/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts +++ b/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { protected p diff --git a/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts b/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts index 4e24e28ec1a76..962d4e6208fd9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts +++ b/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(protected p) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts index 3183bebe93a43..1ba81956186af 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts @@ -1,3 +1,4 @@ +// @strict: false "use strict"; var config = require("../config"); module.exports.route = function (server) { diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts index bfb48ee0e303b..e3516c0efd144 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts @@ -1,3 +1,4 @@ +// @strict: false export class Logger { public } diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts index bfb48ee0e303b..e3516c0efd144 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts @@ -1,3 +1,4 @@ +// @strict: false export class Logger { public } diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts index ca1a460120445..327009cf50ebb 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts @@ -1,3 +1,4 @@ +// @strict: false "use strict"; export class Logger { diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509630.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509630.ts index 65a4bf7522e2c..2dc54cfcd1333 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509630.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509630.ts @@ -1,3 +1,4 @@ +// @strict: false class Type { public examples = [ // typing here } diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts index 52fbbb38c443c..09b2e296d956e 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts @@ -1,3 +1,4 @@ +// @strict: false class test { constructor (static) { } } diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts index 5152a182c7c16..5a103888509d7 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts @@ -1,3 +1,4 @@ +// @strict: false "use strict"; class test { diff --git a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser643728.ts b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser643728.ts index e0fa488500d72..d60d751e3521d 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser643728.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser643728.ts @@ -1,3 +1,4 @@ +// @strict: false interface C { foo; new; diff --git a/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression6.ts b/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression6.ts index 7180a2f6540a4..d7effca46b22f 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression6.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression6.ts @@ -1,3 +1,4 @@ +// @strict: false declare var a; a /= 1; // parse as infix a = /=/; // parse as regexp \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity6.ts b/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity6.ts index e2e742fd6bf9e..d43674f4b795a 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity6.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity6.ts @@ -1,3 +1,4 @@ +// @strict: false function c255lsqr8h(a7, a6, a5, a4, a3, a2, a1, a0) { let r = []; let v; diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts index a7dff6f225bd7..759cc1a505eb9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES5 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 730f574be33ea..944aa894881a5 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES5 for (var of in of) { } \ 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 edffb88a1e367..226342f484fb0 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES5 for (var of = 0 in of) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement2.ts b/tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement2.ts index 387d2cbe88fdb..1e6bc2d015ab9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement2.ts @@ -1,3 +1,4 @@ +// @strict: false var a; var b = []; var c; diff --git a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts index 623418abc1721..a7cb8588b130d 100644 --- a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts +++ b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts @@ -1,3 +1,4 @@ +// @strict: false "use strict"; function f(eval) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts index 58c6e0ef7b5d8..d7456bbda0673 100644 --- a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts +++ b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts @@ -1,3 +1,4 @@ +// @strict: false "use strict"; var v = function f(eval) { }; \ 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 e83743471968f..d18966e8fdcf6 100644 --- a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts +++ b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: ES5 "use strict"; var v = { set foo(eval) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts b/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts index 14b003f4f9369..202f2af208467 100644 --- a/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts @@ -1,3 +1,4 @@ +// @strict: false declare namespace M { declare var v; } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts index 69499c512c2b7..aa5fb320c4383 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts index 9e0016bd99e35..55ae0a8df9858 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts index e4aff55ca36e1..e3d085b835bca 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts index 3a50638c3d205..3108bdee2a0fb 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts index 22966321e9b9d..78cd98eab4275 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts index 49bb0ad75a3ab..8e8623060269a 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts index a961fceb518e6..4b4854e868c61 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts index e2c93f08e17db..472113ccb6f84 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts index c1546dc54e144..2c6b6ada72440 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts b/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts index ae26f557656e7..56412e17fcea1 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. diff --git a/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts b/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts index 00def2926f002..cdac07097671b 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts @@ -1,3 +1,4 @@ +// @strict: false // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. diff --git a/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts b/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts index 130fee103af10..74d2f43b1f113 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts @@ -1,3 +1,4 @@ +// @strict: false function define(constructor, instanceMembers, staticMembers) { constructor = constructor || function () { }; PluginUtilities.Utilities.markSupportedForProcessing(constructor); diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts index 17af42fcca36a..180b5a7ebc43b 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [e](); diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts index 6e6485ea85f31..fc2284dd2fdff 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES6 var v = { set [e](v) { } } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts index f190dadb92c9e..38a686bb2427a 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES6 var v: { [e]? }; \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts index 8ff0f753e1fa5..62b7194212589 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { set [e](v) { } diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts index 3bf29e66baeb0..f246ef43f92e6 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { // No ASI diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts index e6eaa682b5922..5ffdb26021252 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 enum E { // No ASI diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts index d52b7d43cfc94..9b1f43147e01f 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { // No ASI diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts index 2ca7ac84af70d..1d8211c7627bd 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { // No ASI diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts index 8f918c6116049..322e0acd43d5c 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { [e] diff --git a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts index 6e55c04b7a17c..44887f508dda3 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts @@ -1,3 +1,4 @@ +// @strict: false //@target: ES6 class C { public [e] diff --git a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts index 268dc163dde25..1ff351dc4a58b 100644 --- a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts +++ b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES6 for (var of of of) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts index 4dff469112b74..16352bafe4951 100644 --- a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts +++ b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES6 for (var of in of) { } \ No newline at end of file diff --git a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts index d0b7b75175da9..ea05df9e8555c 100644 --- a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts +++ b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts @@ -1,2 +1,3 @@ +// @strict: false //@target: ES6 for (var of = 0 in of) { } \ No newline at end of file diff --git a/tests/cases/conformance/salsa/binderUninitializedModuleExportsAssignment.ts b/tests/cases/conformance/salsa/binderUninitializedModuleExportsAssignment.ts index ef3ef213d3608..b75daaffd967e 100644 --- a/tests/cases/conformance/salsa/binderUninitializedModuleExportsAssignment.ts +++ b/tests/cases/conformance/salsa/binderUninitializedModuleExportsAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/circularMultipleAssignmentDeclaration.ts b/tests/cases/conformance/salsa/circularMultipleAssignmentDeclaration.ts index bc2c992dafcc8..21e45070a9c7e 100644 --- a/tests/cases/conformance/salsa/circularMultipleAssignmentDeclaration.ts +++ b/tests/cases/conformance/salsa/circularMultipleAssignmentDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false // @filename:circularMultipleAssignmentDeclaration.js // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/commonJSAliasedExport.ts b/tests/cases/conformance/salsa/commonJSAliasedExport.ts index 08eda40909058..b42ba3f383b0c 100644 --- a/tests/cases/conformance/salsa/commonJSAliasedExport.ts +++ b/tests/cases/conformance/salsa/commonJSAliasedExport.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @outdir: out/ // @declaration: true diff --git a/tests/cases/conformance/salsa/conflictingCommonJSES2015Exports.ts b/tests/cases/conformance/salsa/conflictingCommonJSES2015Exports.ts index 35acd416e79b1..32ab91dcd3d6c 100644 --- a/tests/cases/conformance/salsa/conflictingCommonJSES2015Exports.ts +++ b/tests/cases/conformance/salsa/conflictingCommonJSES2015Exports.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJS: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/constructorFunctions.ts b/tests/cases/conformance/salsa/constructorFunctions.ts index 35eae4b0e2891..28b9b5720b26f 100644 --- a/tests/cases/conformance/salsa/constructorFunctions.ts +++ b/tests/cases/conformance/salsa/constructorFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/constructorFunctions2.ts b/tests/cases/conformance/salsa/constructorFunctions2.ts index 439fe5e49113c..73de94a16940f 100644 --- a/tests/cases/conformance/salsa/constructorFunctions2.ts +++ b/tests/cases/conformance/salsa/constructorFunctions2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/expandoOnAlias.ts b/tests/cases/conformance/salsa/expandoOnAlias.ts index 1a2ecb09f8170..0c592d030cfb8 100644 --- a/tests/cases/conformance/salsa/expandoOnAlias.ts +++ b/tests/cases/conformance/salsa/expandoOnAlias.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/conformance/salsa/exportNestedNamespaces2.ts b/tests/cases/conformance/salsa/exportNestedNamespaces2.ts index 3745d3bd2c402..6ab567f50da04 100644 --- a/tests/cases/conformance/salsa/exportNestedNamespaces2.ts +++ b/tests/cases/conformance/salsa/exportNestedNamespaces2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/inferringClassMembersFromAssignments8.ts b/tests/cases/conformance/salsa/inferringClassMembersFromAssignments8.ts index 2126bd17ff1c7..8d57ec12f6de9 100644 --- a/tests/cases/conformance/salsa/inferringClassMembersFromAssignments8.ts +++ b/tests/cases/conformance/salsa/inferringClassMembersFromAssignments8.ts @@ -1,3 +1,4 @@ +// @strict: false // no inference in TS files, even for `this` aliases: var app = function() { diff --git a/tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts b/tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts index 4991d674d5e75..c5acf58763f99 100644 --- a/tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts +++ b/tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts @@ -1,3 +1,4 @@ +// @strict: false // @outFile: output.js // @allowJs: true diff --git a/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts b/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts index 8dd13383df00c..723e06254cbb4 100644 --- a/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts +++ b/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts @@ -1,3 +1,4 @@ +// @strict: false // Should not crash: #34642 var arr = []; arr[0].prop[2] = {}; diff --git a/tests/cases/conformance/salsa/moduleExportAlias2.ts b/tests/cases/conformance/salsa/moduleExportAlias2.ts index 027cc83e6f1e2..76b9494b5a180 100644 --- a/tests/cases/conformance/salsa/moduleExportAlias2.ts +++ b/tests/cases/conformance/salsa/moduleExportAlias2.ts @@ -1,3 +1,4 @@ +// @strict: false // @checkJs: true // @allowJS: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/moduleExportAssignment2.ts b/tests/cases/conformance/salsa/moduleExportAssignment2.ts index decb27392126c..ad5cba5229441 100644 --- a/tests/cases/conformance/salsa/moduleExportAssignment2.ts +++ b/tests/cases/conformance/salsa/moduleExportAssignment2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/moduleExportAssignment4.ts b/tests/cases/conformance/salsa/moduleExportAssignment4.ts index 979c423b6ddac..46458ff364b81 100644 --- a/tests/cases/conformance/salsa/moduleExportAssignment4.ts +++ b/tests/cases/conformance/salsa/moduleExportAssignment4.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/privateIdentifierExpando.ts b/tests/cases/conformance/salsa/privateIdentifierExpando.ts index 2f31c3a369982..048141ddd81e8 100644 --- a/tests/cases/conformance/salsa/privateIdentifierExpando.ts +++ b/tests/cases/conformance/salsa/privateIdentifierExpando.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/conformance/salsa/propertyAssignmentOnImportedSymbol.ts b/tests/cases/conformance/salsa/propertyAssignmentOnImportedSymbol.ts index 083cf23baac06..77637f760014d 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentOnImportedSymbol.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentOnImportedSymbol.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts b/tests/cases/conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts index 7bfd76959a01a..2fdb6150c2383 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts b/tests/cases/conformance/salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts index a879367e06f2a..c279603da69cb 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/propertyAssignmentUseParentType1.ts b/tests/cases/conformance/salsa/propertyAssignmentUseParentType1.ts index 500ae6f2fe377..0719ba037aa0b 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentUseParentType1.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentUseParentType1.ts @@ -1,3 +1,4 @@ +// @strict: false interface N { (): boolean num: 123; diff --git a/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts b/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts index 53696abbf8110..7f2a22a54dc33 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/propertyAssignmentUseParentType3.ts b/tests/cases/conformance/salsa/propertyAssignmentUseParentType3.ts index 9a1357fd52bee..e8924a5bc132f 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentUseParentType3.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentUseParentType3.ts @@ -1,3 +1,4 @@ +// @strict: false // don't use the parent type if it's a function declaration (#33741) function foo1(): number { diff --git a/tests/cases/conformance/salsa/topLevelThisAssignment.ts b/tests/cases/conformance/salsa/topLevelThisAssignment.ts index 7cf806450a0ef..51750fc37b42c 100644 --- a/tests/cases/conformance/salsa/topLevelThisAssignment.ts +++ b/tests/cases/conformance/salsa/topLevelThisAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false // @outFile: output.js // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts index d8b9a28c56953..cef975fe3e727 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts index aa700b2800262..fe454857fc9c4 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts index 5e5228874d223..cf76bc6993e25 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts index 308da40f3c46b..90624bd19751f 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts index 9724da7198246..4fd632a0ec59e 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts index 201560d5055ef..bd629bccc54e0 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts index b3aaaf1702b80..28472ca2583ae 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts index c8099a033953c..2e8ae589f1189 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts index 534e3bcc4c3aa..2816e4c74ea32 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts index 14358c8a725dd..d82c879de184d 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts index 40525ef019179..9cb6d0167c0cf 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts index 985dd5714ef82..7cae0bfc73df3 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts index 5931a9960fdc4..f60f42d09964c 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts index 13214cbf4480e..146c1fd591976 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts index 968a8206c195e..da9906d145f06 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts index 18923e0a5a8f6..a6081940e44a1 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts index e11d9c7ac5523..35bca77d21d2e 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts index 37c24366da9eb..47f7a1c077dab 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts index 71963749f1a1b..1489a87f1df48 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts index 5a9ffd3e415ce..53142852cb0aa 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts index 1882731c8f106..fd5f7e8b4a2c8 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function ExpandoDecl(n: number) { return n.toString(); diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts index 1ae7f06f5b2c3..4ead372ce20ad 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts index e24c8ec2b944a..35fb35a1d85e9 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts @@ -1,3 +1,4 @@ +// @strict: false interface Combo { (): number; p?: { [s: string]: number }; diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts index 7c11a2a64bbec..33bbdee513fd6 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts @@ -1,3 +1,4 @@ +// @strict: false function ExpandoMerge(n: number) { return n; } diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts index 498aa151e7306..97ea9a2c9b296 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: expando.ts function ExpandoMerge(n: number) { return n; diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts index d98f689329dd3..22d62e807028e 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts @@ -1,3 +1,4 @@ +// @strict: false // @Filename: ns.ts namespace ExpandoMerge { export var p3 = 333; diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts index 1c6be8f01718d..768e48bfa6a84 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowjs: true // @checkjs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts index 952fdd7c9c02d..e0a2cd5e55073 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts index 0e60c78621ead..abadd6fc0953e 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts index 14e84ad556817..a744914afce93 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts index 43600eac441ad..7b6a8b15d0771 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts index 844f308f9b888..cfa3f0edd8717 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts index fb66f9399729b..a86e315806a49 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts index 7e42915ddcb41..43e34c7cea01b 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts index 798ede6a0c59a..687438b1b5b9e 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts index 2d6040e319dba..fc2fd66dd8954 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts index cdb2a0e2af3f2..aea087753ad1f 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts index 61f6de98abbae..30dfc536cdc0b 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts index f0d861a6a29d3..515dca1e21e96 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts @@ -1,3 +1,4 @@ +// @strict: false // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/tests/cases/conformance/salsa/typeFromPropertyAssignmentWithExport.ts b/tests/cases/conformance/salsa/typeFromPropertyAssignmentWithExport.ts index ed4ca168bf7cf..5a3c9991a88eb 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignmentWithExport.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignmentWithExport.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @Filename: a.js diff --git a/tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts b/tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts index 426e327981c6e..6c728b1d98522 100644 --- a/tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts +++ b/tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @emitDeclarationOnly: true diff --git a/tests/cases/conformance/salsa/unannotatedParametersAreOptional.ts b/tests/cases/conformance/salsa/unannotatedParametersAreOptional.ts index d64261a572eef..50240a42abfa9 100644 --- a/tests/cases/conformance/salsa/unannotatedParametersAreOptional.ts +++ b/tests/cases/conformance/salsa/unannotatedParametersAreOptional.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts b/tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts index dda7d3b6c6064..234edfebf6c1d 100644 --- a/tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts +++ b/tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false interface I { id: number; } diff --git a/tests/cases/conformance/statements/VariableStatements/recursiveInitializer.ts b/tests/cases/conformance/statements/VariableStatements/recursiveInitializer.ts index ddfba652201fe..34a71a14a78bb 100644 --- a/tests/cases/conformance/statements/VariableStatements/recursiveInitializer.ts +++ b/tests/cases/conformance/statements/VariableStatements/recursiveInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // number unless otherwise specified var n1 = n1++; var n2: number = n2 + n2; diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts index 71ab320393561..eb9bc5f0ef6a8 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.10.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.10.ts index 1f132c396407c..952eb3609ffbd 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.10.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts index d22e7abcc7086..15cb3adb39a72 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts index 6013970105c30..e376ffbac2501 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts index c1a88f304148d..b3354d67e05f7 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts index 9a32c0614ee45..b18fa19085070 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts index f92136565435d..ea3fd765b2534 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.16.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.16.ts index 867d58ae3ffde..7bf67b4d8f597 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.16.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.16.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.17.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.17.ts index 21b021fb1ddb4..8c4fc694f6248 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.17.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.17.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts index cf1eee443b6bc..8a76e1d0481f8 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts index b172bdab826f5..a2c2990f336e1 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts index f246cd1aaab41..5f9c6198e3b79 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.8.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.8.ts index 1dfa88ce88b6f..0b7e0d469fc07 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.8.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.9.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.9.ts index b9fba2635669e..0a686d3414b9e 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.9.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: es2022 diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts index 0f075d4a752b8..e702087171535 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts index 77f00d6463624..5d290c678e7f1 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts index bf52c85e25aa3..f60e2bdd16d81 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5,esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts index 8f488313a91d9..210cc162be3ce 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForIn.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForIn.ts index 12621f830853e..71186e858a34a 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForIn.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForIn.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts index cd26c931d2acd..28542ff4d1e65 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.2.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.2.ts index 4d6ac155a9c46..5202438a73a2c 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.3.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.3.ts index e686baa1120c7..d13bd315e303f 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts index 6edaa895a3bc7..9ea33f0e27c77 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts index 2838da346d2f8..a3f38ef64ace4 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5,esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts index 2dd393031dffb..a9a1bcae83c3b 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2022 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithIteratorObject.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithIteratorObject.ts index de8fdd378da79..05a979365dcad 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithIteratorObject.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithIteratorObject.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts index 9cc4228a349f7..84ea08b65ccd9 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.10.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.10.ts index 13a77b4379a94..f72a70d9a2662 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.10.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts index 603e25901b9bd..d7cdd5a6b24e6 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts index fd24eff921836..d8b80703fae64 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts index 164c1fae81852..f3b0819e562e0 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.14.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.14.ts index 7489f99a03d60..2f517ff29af41 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.14.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.14.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.15.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.15.ts index 79b0032da9003..042912b97e641 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.15.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.15.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.16.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.16.ts index 570d8c22990ce..596fac8b2cf34 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.16.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.16.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.17.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.17.ts index 6b3eef52e2e9b..7e4cae4904bf9 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.17.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.17.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts index 90991a578edce..aaf51c860419e 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts index c328e3e9914d1..3cd6fa06aceba 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts index 4f0a3620529d3..ee3aad12129cc 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.8.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.8.ts index 70859a4313708..fd38283c95968 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.8.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.9.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.9.ts index cec1bd79ee30c..a317447a87d33 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.9.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: es2022 diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInFor.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInFor.ts index a7209fa70ceba..6eec19e39511f 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInFor.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInFor.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForAwaitOf.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForAwaitOf.ts index 807e2acce50d1..d0bad2154c1b0 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForAwaitOf.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForAwaitOf.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts index ea9c191edd4a5..dc9b62f7df5e6 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts index be2412cb1b24f..64c2a7dd71c96 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.2.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.2.ts index 50ffa8ec3555d..983199ac6b208 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts index a897bf1961330..9ce3cd28ecd7b 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.4.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.4.ts index 359a01d2b06fd..bc2b809bd12e3 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.1.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.1.ts index e6da37efd08f2..c94abd98e798a 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts index 09228bd94e081..20a5a6ddc25e3 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.11.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.11.ts index e3b426e0669e2..0fd95a1e53c75 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.11.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts index e925063f9d346..640ec5f3bd688 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts index d34b1d21e54b6..f56b769d92b9b 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts index f3fdfea70b31a..d408a100d180a 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts index 9ef4a5802bac2..b2b5274080baf 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts index 4062f99c9b062..9a6a93bd53b8a 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts index 334e1a3a21d12..38f9d89dad2a5 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts index 8e24ea3bd5c9e..42311c685dd7d 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts index fad68539c46cf..80c1f30368d35 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts index cc26af1c70bf2..79728432e8c57 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithImportHelpers.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithImportHelpers.ts index 5a96faa75f873..525ca7ce67373 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithImportHelpers.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithImportHelpers.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2022 // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithIteratorObject.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithIteratorObject.ts index 59ba2516fea27..51829b00ae823 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithIteratorObject.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithIteratorObject.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @module: esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.1.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.1.ts index 72d1e56f2d204..8bab888b9129e 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts index be1f669030e1b..66ae56daff785 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts index b7a7e36341113..68734242536f7 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts index d650e4a248952..48025f27a56c1 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts index 58d5a73ca3f33..82f53984a7116 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts index 680afb945a8e3..655addbfada33 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts index 61a67f91fe984..fc271fffb46cd 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts index f3fb2c4980159..950ce59e8dca8 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts index 27d3c78e46e7b..11d81f432452b 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts index 972810f29da56..a20996720eab4 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts index 9ea6a419e8750..e4890799bce42 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts index 48dc496c5e325..71446fad573de 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext diff --git a/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts b/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts index ffc99ee904bf3..b83bec4725bde 100644 --- a/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts +++ b/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnusedLabels: true for(var x in {}) { diff --git a/tests/cases/conformance/statements/continueStatements/forInContinueStatements.ts b/tests/cases/conformance/statements/continueStatements/forInContinueStatements.ts index b5ccd8189ca1b..377a16c63bdaa 100644 --- a/tests/cases/conformance/statements/continueStatements/forInContinueStatements.ts +++ b/tests/cases/conformance/statements/continueStatements/forInContinueStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnusedLabels: true for(var x in {}) { diff --git a/tests/cases/conformance/statements/for-inStatements/for-inStatements.ts b/tests/cases/conformance/statements/for-inStatements/for-inStatements.ts index daaeeee0c1494..48d838bdbae67 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatements.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatements.ts @@ -1,3 +1,4 @@ +// @strict: false var aString: string; for (aString in {}) { } diff --git a/tests/cases/conformance/statements/for-inStatements/for-inStatementsArray.ts b/tests/cases/conformance/statements/for-inStatements/for-inStatementsArray.ts index 6acf8d4b35515..213aba60de795 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsArray.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsArray.ts @@ -1,3 +1,4 @@ +// @strict: false let a: Date[]; let b: boolean[]; diff --git a/tests/cases/conformance/statements/for-inStatements/for-inStatementsAsyncIdentifier.ts b/tests/cases/conformance/statements/for-inStatements/for-inStatementsAsyncIdentifier.ts index ae63dd31362ab..71b053ced4d35 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsAsyncIdentifier.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsAsyncIdentifier.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext var async; diff --git a/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring3.ts b/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring3.ts index 411261dee43a0..69cb50b0d049e 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring3.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring3.ts @@ -1,2 +1,3 @@ +// @strict: false var a, b; for ([a, b] in []) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring4.ts b/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring4.ts index 816dd564b6a1b..21f320eddf053 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring4.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring4.ts @@ -1,2 +1,3 @@ +// @strict: false var a, b; for ({a, b} in []) { } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts b/tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts index 664a68b8172cf..8d7f216e7adcb 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts @@ -1,3 +1,4 @@ +// @strict: false var aNumber: number; for (aNumber in {}) { } diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of14.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of14.ts index 26dcea71a0eef..0ebaef0e46656 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of14.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of14.ts @@ -1,3 +1,4 @@ +// @strict: false for (const v of []) { var x = v; } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of15.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of15.ts index 2124870d7e39a..23ce008a9d996 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of15.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of15.ts @@ -1,3 +1,4 @@ +// @strict: false for (let v of []) { v; for (const v of []) { diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of16.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of16.ts index d1354999340af..48020436de103 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of16.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of16.ts @@ -1,3 +1,4 @@ +// @strict: false for (let v of []) { v; for (let v of []) { diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of18.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of18.ts index e7de82d278587..8fc00c02d73ba 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of18.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of18.ts @@ -1,3 +1,4 @@ +// @strict: false for (let v of []) { v; } diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of19.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of19.ts index 447048c374b07..fff8fef1633dc 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of19.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of19.ts @@ -1,3 +1,4 @@ +// @strict: false for (let v of []) { v; function foo() { diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of2.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of2.ts index 5015082a4a954..882c9d86b2fac 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of2.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of2.ts @@ -1,3 +1,4 @@ +// @strict: false for (var v of []) { var x = v; } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts index 6a1a77d82ae7f..010164a7aaa6c 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts @@ -1,3 +1,4 @@ +// @strict: false for (let v of []) { let v; for (let v of [v]) { diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of21.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of21.ts index cb0c3cf2329e1..87338239529fc 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of21.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of21.ts @@ -1,3 +1,4 @@ +// @strict: false for (let v of []) { for (let _i of []) { } } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts index ef35b6efd9c23..fa74f83a195fb 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts @@ -1,3 +1,4 @@ +// @strict: false for (var x of [1, 2, 3]) { let _a = 0; console.log(x); diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts index 7d93246f2bbe3..76c90c718c5df 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts @@ -1,3 +1,4 @@ +// @strict: false for (var x of [1, 2, 3]) { var _a = 0; console.log(x); diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of24.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of24.ts index 7e025183f5fed..82c6ade7dabe5 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of24.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of24.ts @@ -1,3 +1,4 @@ +// @strict: false var a = [1, 2, 3]; for (var v of a) { let a = 0; diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of25.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of25.ts index 7017991c7f2fb..1ca3f8dbb4a80 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of25.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of25.ts @@ -1,3 +1,4 @@ +// @strict: false //@sourcemap: true var a = [1, 2, 3]; for (var v of a) { diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts index 13a386309bb64..376e979d3ad12 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts @@ -1,3 +1,4 @@ +// @strict: false //@sourcemap: true for (var [a = 0, b = 1] of [2, 3]) { a; diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts index 4a56779b68db4..356bdc0d863ee 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts @@ -1,3 +1,4 @@ +// @strict: false for (var {x: a = 0, y: b = 1} of [2, 3]) { a; b; diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts index 00f36f7d5d231..d43be28ce6b3c 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts @@ -1,3 +1,4 @@ +// @strict: false for (let [a = 0, b = 1] of [2, 3]) { a; b; diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of29.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of29.ts index 5b5e52e75c5f2..2354253f9a842 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of29.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of29.ts @@ -1,3 +1,4 @@ +// @strict: false for (const {x: a = 0, y: b = 1} of [2, 3]) { a; b; diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts index 42fb4c01bdcd6..2d01d97abeff2 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts @@ -1,3 +1,4 @@ +// @strict: false for (var v of []) var x = v; var y = v; \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of5.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of5.ts index ee968515d6545..a32ecb13c06c3 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of5.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of5.ts @@ -1,3 +1,4 @@ +// @strict: false for (var _a of []) { var x = _a; } \ No newline at end of file diff --git a/tests/cases/conformance/statements/for-ofStatements/ES5For-of6.ts b/tests/cases/conformance/statements/for-ofStatements/ES5For-of6.ts index a04ee2d6177bf..9afd8ac36b3c3 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of6.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of6.ts @@ -1,3 +1,4 @@ +// @strict: false for (var w of []) { for (var v of []) { var x = [w, v]; diff --git a/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts b/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts index c5875327b50af..ba4b438609eaa 100644 --- a/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts +++ b/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true function fn(x) { diff --git a/tests/cases/conformance/statements/throwStatements/throwStatements.ts b/tests/cases/conformance/statements/throwStatements/throwStatements.ts index 5825ed6c2e0df..0a350061f834a 100644 --- a/tests/cases/conformance/statements/throwStatements/throwStatements.ts +++ b/tests/cases/conformance/statements/throwStatements/throwStatements.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // all legal diff --git a/tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts b/tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts index dfa60a415f91a..7915a9168ad8c 100644 --- a/tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts +++ b/tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts @@ -1,3 +1,4 @@ +// @strict: false declare function isFooError(x: any): x is { type: 'foo'; dontPanic(); }; function tryCatch() { diff --git a/tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts b/tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts index 473bd349b5f91..64b313f9babf4 100644 --- a/tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts +++ b/tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts @@ -1,3 +1,4 @@ +// @strict: false declare var x: any; declare function isFunction(x): x is Function; declare function isObject(x): x is Object; diff --git a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts index 6d39be9cef75e..2c8dd74d59f81 100644 --- a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts +++ b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @noEmit: true diff --git a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts index 0053f71b98679..f17847f022502 100644 --- a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts +++ b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2018 // @lib: esnext // @noEmit: true diff --git a/tests/cases/conformance/types/contextualTypes/partiallyAnnotatedFunction/partiallyAnnotatedFunctionInferenceError.ts b/tests/cases/conformance/types/contextualTypes/partiallyAnnotatedFunction/partiallyAnnotatedFunctionInferenceError.ts index 867b6526c1277..0a05c1c353f95 100644 --- a/tests/cases/conformance/types/contextualTypes/partiallyAnnotatedFunction/partiallyAnnotatedFunctionInferenceError.ts +++ b/tests/cases/conformance/types/contextualTypes/partiallyAnnotatedFunction/partiallyAnnotatedFunctionInferenceError.ts @@ -1,3 +1,4 @@ +// @strict: false class C { test: string } diff --git a/tests/cases/conformance/types/intersection/operatorsAndIntersectionTypes.ts b/tests/cases/conformance/types/intersection/operatorsAndIntersectionTypes.ts index 5689d2218401a..fc451895739d8 100644 --- a/tests/cases/conformance/types/intersection/operatorsAndIntersectionTypes.ts +++ b/tests/cases/conformance/types/intersection/operatorsAndIntersectionTypes.ts @@ -1,3 +1,4 @@ +// @strict: false type Guid = string & { $Guid }; // Tagged string type type SerialNo = number & { $SerialNo }; // Tagged number type diff --git a/tests/cases/conformance/types/localTypes/localTypes4.ts b/tests/cases/conformance/types/localTypes/localTypes4.ts index 388d5efb637d4..422782c6f669f 100644 --- a/tests/cases/conformance/types/localTypes/localTypes4.ts +++ b/tests/cases/conformance/types/localTypes/localTypes4.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true function f1() { diff --git a/tests/cases/conformance/types/mapped/mappedTypeProperties.ts b/tests/cases/conformance/types/mapped/mappedTypeProperties.ts index 407e0eaf56da7..67adc2c75c220 100644 --- a/tests/cases/conformance/types/mapped/mappedTypeProperties.ts +++ b/tests/cases/conformance/types/mapped/mappedTypeProperties.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true export type PlaceType = 'openSky' | 'roofed' | 'garage' type Before = { diff --git a/tests/cases/conformance/types/members/augmentedTypeAssignmentCompatIndexSignature.ts b/tests/cases/conformance/types/members/augmentedTypeAssignmentCompatIndexSignature.ts index 2997cec1734ee..d72c0ea809d1c 100644 --- a/tests/cases/conformance/types/members/augmentedTypeAssignmentCompatIndexSignature.ts +++ b/tests/cases/conformance/types/members/augmentedTypeAssignmentCompatIndexSignature.ts @@ -1,3 +1,4 @@ +// @strict: false interface Foo { a } interface Bar { b } diff --git a/tests/cases/conformance/types/members/augmentedTypeBracketAccessIndexSignature.ts b/tests/cases/conformance/types/members/augmentedTypeBracketAccessIndexSignature.ts index 0efb6c2a19c8d..0154918e0a1fc 100644 --- a/tests/cases/conformance/types/members/augmentedTypeBracketAccessIndexSignature.ts +++ b/tests/cases/conformance/types/members/augmentedTypeBracketAccessIndexSignature.ts @@ -1,3 +1,4 @@ +// @strict: false interface Foo { a } interface Bar { b } diff --git a/tests/cases/conformance/types/members/classWithPrivateProperty.ts b/tests/cases/conformance/types/members/classWithPrivateProperty.ts index bdc9a5356ac10..d833fbc141d9e 100644 --- a/tests/cases/conformance/types/members/classWithPrivateProperty.ts +++ b/tests/cases/conformance/types/members/classWithPrivateProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // accessing any private outside the class is an error class C { diff --git a/tests/cases/conformance/types/members/classWithProtectedProperty.ts b/tests/cases/conformance/types/members/classWithProtectedProperty.ts index 96bc615c020f1..6ef87e1dfc44b 100644 --- a/tests/cases/conformance/types/members/classWithProtectedProperty.ts +++ b/tests/cases/conformance/types/members/classWithProtectedProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // accessing any protected outside the class is an error class C { diff --git a/tests/cases/conformance/types/members/classWithPublicProperty.ts b/tests/cases/conformance/types/members/classWithPublicProperty.ts index 804e4991fe4a2..a850c24e9ebea 100644 --- a/tests/cases/conformance/types/members/classWithPublicProperty.ts +++ b/tests/cases/conformance/types/members/classWithPublicProperty.ts @@ -1,3 +1,4 @@ +// @strict: false class C { public x; public a = ''; diff --git a/tests/cases/conformance/types/members/duplicatePropertyNames.ts b/tests/cases/conformance/types/members/duplicatePropertyNames.ts index 15335b7c5f129..822d7a8b235f1 100644 --- a/tests/cases/conformance/types/members/duplicatePropertyNames.ts +++ b/tests/cases/conformance/types/members/duplicatePropertyNames.ts @@ -1,3 +1,4 @@ +// @strict: false // duplicate property names are an error in all types interface Number { diff --git a/tests/cases/conformance/types/members/objectTypeHidingMembersOfExtendedObject.ts b/tests/cases/conformance/types/members/objectTypeHidingMembersOfExtendedObject.ts index dfa7c9c52207b..ba2f68e12cc86 100644 --- a/tests/cases/conformance/types/members/objectTypeHidingMembersOfExtendedObject.ts +++ b/tests/cases/conformance/types/members/objectTypeHidingMembersOfExtendedObject.ts @@ -1,3 +1,4 @@ +// @strict: false // @skipDefaultLibCheck: false class A { foo!: string; diff --git a/tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts b/tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts index 4361d082e30ec..db3cf5bc5e77a 100644 --- a/tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts +++ b/tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts @@ -1,3 +1,4 @@ +// @strict: false // object types with call signatures can override members of Function // no errors expected below diff --git a/tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts b/tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts index b9fb469940287..4d78c2c947e8d 100644 --- a/tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts +++ b/tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts @@ -1,3 +1,4 @@ +// @strict: false interface Function { data: number; [x: string]: Object; diff --git a/tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts b/tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts index a3fc549b7a035..3fa36deaa0b3b 100644 --- a/tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts +++ b/tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts @@ -1,3 +1,4 @@ +// @strict: false // numeric properties must be distinct after a ToNumber operation // so the below are all errors diff --git a/tests/cases/conformance/types/members/objectTypeWithStringIndexerHidingObjectIndexer.ts b/tests/cases/conformance/types/members/objectTypeWithStringIndexerHidingObjectIndexer.ts index d5c6a4a395477..3ef2800bd4cfa 100644 --- a/tests/cases/conformance/types/members/objectTypeWithStringIndexerHidingObjectIndexer.ts +++ b/tests/cases/conformance/types/members/objectTypeWithStringIndexerHidingObjectIndexer.ts @@ -1,3 +1,4 @@ +// @strict: false // @skipDefaultLibCheck: false // object types can define string indexers that are more specific than the default 'any' that would be returned // no errors expected below diff --git a/tests/cases/conformance/types/members/objectTypeWithStringNamedPropertyOfIllegalCharacters.ts b/tests/cases/conformance/types/members/objectTypeWithStringNamedPropertyOfIllegalCharacters.ts index 766f56bdd2681..a34f2b679e64a 100644 --- a/tests/cases/conformance/types/members/objectTypeWithStringNamedPropertyOfIllegalCharacters.ts +++ b/tests/cases/conformance/types/members/objectTypeWithStringNamedPropertyOfIllegalCharacters.ts @@ -1,3 +1,4 @@ +// @strict: false class C { " ": number; "a b": string; diff --git a/tests/cases/conformance/types/members/typesWithSpecializedCallSignatures.ts b/tests/cases/conformance/types/members/typesWithSpecializedCallSignatures.ts index 9eef3476f2da1..5b424461d4b50 100644 --- a/tests/cases/conformance/types/members/typesWithSpecializedCallSignatures.ts +++ b/tests/cases/conformance/types/members/typesWithSpecializedCallSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // basic uses of specialized signatures without errors class Base { foo: string } diff --git a/tests/cases/conformance/types/members/typesWithSpecializedConstructSignatures.ts b/tests/cases/conformance/types/members/typesWithSpecializedConstructSignatures.ts index 7c84e76f14e3b..d55fdb12f1453 100644 --- a/tests/cases/conformance/types/members/typesWithSpecializedConstructSignatures.ts +++ b/tests/cases/conformance/types/members/typesWithSpecializedConstructSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // basic uses of specialized signatures without errors class Base { foo: string } diff --git a/tests/cases/conformance/types/namedTypes/genericInstantiationEquivalentToObjectLiteral.ts b/tests/cases/conformance/types/namedTypes/genericInstantiationEquivalentToObjectLiteral.ts index a6686f0ae3524..b1a21aeefd202 100644 --- a/tests/cases/conformance/types/namedTypes/genericInstantiationEquivalentToObjectLiteral.ts +++ b/tests/cases/conformance/types/namedTypes/genericInstantiationEquivalentToObjectLiteral.ts @@ -1,3 +1,4 @@ +// @strict: false interface Pair { first: T1; second: T2; } var x: Pair var y: { first: string; second: number; } diff --git a/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts b/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts index 2ec8cf83cb740..930d3ecb07da4 100644 --- a/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts +++ b/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts @@ -1,3 +1,4 @@ +// @strict: false var a: object; for (var key in a) { diff --git a/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts b/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts index 36c860133c290..7e5b781642a98 100644 --- a/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts +++ b/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts @@ -1,3 +1,4 @@ +// @strict: false var a: object = {}; diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithOptionalParameterAndInitializer.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithOptionalParameterAndInitializer.ts index 3f1fcbb6f1bc3..ccfb5d1505596 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithOptionalParameterAndInitializer.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithOptionalParameterAndInitializer.ts @@ -1,3 +1,4 @@ +// @strict: false // Optional parameters cannot also have initializer expressions, these are all errors function foo(x?: number = 1) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutAnnotationsOrBody.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutAnnotationsOrBody.ts index a73e224112eae..ef42d00e9bb17 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutAnnotationsOrBody.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutAnnotationsOrBody.ts @@ -1,3 +1,4 @@ +// @strict: false // Call signatures without a return type annotation and function body return 'any' function foo(x) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutReturnTypeAnnotationInference.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutReturnTypeAnnotationInference.ts index fa3de3127291a..0390d0b68cf89 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutReturnTypeAnnotationInference.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutReturnTypeAnnotationInference.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowUnreachableCode: true // Call signatures without a return type should infer one from the function body (if present) diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType.ts index 84b63bf8dee36..4190b2677783d 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType.ts @@ -1,3 +1,4 @@ +// @strict: false // Each pair of signatures in these types has a signature that should cause an error. // Overloads, generic or not, that differ only by return type are an error. interface I { diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts index c131052a73633..c212c6bb6791b 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts @@ -1,3 +1,4 @@ +// @strict: false // Normally it is an error to have multiple overloads which differ only by return type in a single type declaration. // Here the multiple overloads come from multiple bases. diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts index 3b5cef704445e..3fa12759ff1ce 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts @@ -1,3 +1,4 @@ +// @strict: false // Normally it is an error to have multiple overloads with identical signatures in a single type declaration. // Here the multiple overloads come from multiple merged declarations. diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithAccessibilityModifiersOnParameters.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithAccessibilityModifiersOnParameters.ts index 82489f6e4c460..a2f8853e12123 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithAccessibilityModifiersOnParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithAccessibilityModifiersOnParameters.ts @@ -1,3 +1,4 @@ +// @strict: false // Call signature parameters do not allow accessibility modifiers function foo(public x, private y) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithDuplicateParameters.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithDuplicateParameters.ts index d5ff0c1f56fe2..0b72aa8ab4106 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithDuplicateParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithDuplicateParameters.ts @@ -1,3 +1,4 @@ +// @strict: false // Duplicate parameter names are always an error function foo(x, x) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters.ts index 34edfba671d80..69034b7e6a6fd 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters.ts @@ -1,3 +1,4 @@ +// @strict: false // Optional parameters should be valid in all the below casts function foo(x?: number) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters2.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters2.ts index 4f31726f8299a..c93c4c8a2b1b7 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters2.ts @@ -1,3 +1,4 @@ +// @strict: false // Optional parameters should be valid in all the below casts function foo(x?: number); diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers.ts index 6baa9f5ffd180..33ca662118c34 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers.ts @@ -1,3 +1,4 @@ +// @strict: false // Optional parameters allow initializers only in implementation signatures function foo(x = 1) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers2.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers2.ts index ff27018c7eb11..4a49fe35f76cb 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers2.ts @@ -1,3 +1,4 @@ +// @strict: false // Optional parameters allow initializers only in implementation signatures // All the below declarations are errors diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters.ts index e2f9dbce983cb..eb9b12e44a6dd 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters.ts @@ -1,3 +1,4 @@ +// @strict: false // Parameter properties are only valid in constructor definitions, not even in other forms of construct signatures class C { diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters2.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters2.ts index bebaa03276122..9869db0261903 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters2.ts @@ -1,3 +1,4 @@ +// @strict: false // Parameter properties are not valid in overloads of constructors class C { diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures.ts index 0bbedcc253135..a47383bdac2ae 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // Each pair of call signatures in these types have a duplicate signature error. // Identical call signatures should generate an error. interface I { diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures2.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures2.ts index 1d9bb8443560e..abb6b97923c93 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures2.ts @@ -1,3 +1,4 @@ +// @strict: false // Normally it is an error to have multiple overloads with identical signatures in a single type declaration. // Here the multiple overloads come from multiple bases. diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts index 2c47993fbe53c..5c95b74a84030 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts @@ -1,3 +1,4 @@ +// @strict: false // Normally it is an error to have multiple overloads with identical signatures in a single type declaration. // Here the multiple overloads come from multiple merged declarations, so we do not report errors. diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts index 432c905765443..d39cd000621bf 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts @@ -1,3 +1,4 @@ +// @strict: false function foo(x) { return x; } var f = function foo(x) { return x; } var f2 = (x) => x; diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParameterWithoutAnnotationIsAnyArray.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParameterWithoutAnnotationIsAnyArray.ts index 9dd2960a7a11f..c6a94dfa17c7f 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParameterWithoutAnnotationIsAnyArray.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParameterWithoutAnnotationIsAnyArray.ts @@ -1,3 +1,4 @@ +// @strict: false // Rest parameters without type annotations are 'any', errors only for the functions with 2 rest params function foo(...x) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes.ts index 8b816f42ee5fa..5edf17ea4acfa 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes.ts @@ -1,3 +1,4 @@ +// @strict: false // Rest parameters must be an array type if they have a type annotation, so all these are errors function foo(...x: string) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes2.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes2.ts index 2b5cfec1bb364..5f5e07260a576 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes2.ts @@ -1,3 +1,4 @@ +// @strict: false // Rest parameters must be an array type if they have a type annotation, // user defined subtypes of array do not count, all of these are errors diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersWithArrayTypeAnnotations.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersWithArrayTypeAnnotations.ts index 4f37f4ce1cbd4..51393c27a02e1 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersWithArrayTypeAnnotations.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersWithArrayTypeAnnotations.ts @@ -1,3 +1,4 @@ +// @strict: false // Rest parameters must be an array type if they have a type annotation, errors only for the functions with 2 rest params function foo(...x: number[]) { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts index 01f33fbd7bb50..f5f4b98738d6c 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function foo(x: 'a'); diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsSubtypeOfNonSpecializedSignature.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsSubtypeOfNonSpecializedSignature.ts index 70735b8edd78d..32ce43d7e3c36 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsSubtypeOfNonSpecializedSignature.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsSubtypeOfNonSpecializedSignature.ts @@ -1,3 +1,4 @@ +// @strict: false // Specialized signatures must be a subtype of a non-specialized signature // All the below should not be errors diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures.ts index a8bf323850b2f..3a267792e19a1 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // String literal types are only valid in overload signatures function foo(x: 'hi') { } diff --git a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures2.ts b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures2.ts index baaea8ee750a5..21fd1b682f5e9 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures2.ts @@ -1,3 +1,4 @@ +// @strict: false // String literal types are only valid in overload signatures function foo(x: any); diff --git a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations.ts b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations.ts index 44f6ed27bbf9e..f0cb8bdaafa2c 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // String indexer types constrain the types of named properties in their containing type interface MyNumber extends Number { diff --git a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations2.ts b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations2.ts index e9dd1e9ec3038..44ac9a67e80fb 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations2.ts @@ -1,3 +1,4 @@ +// @strict: false // String indexer providing a constraint of a user defined type class A { diff --git a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations.ts b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations.ts index 83e56cb037915..6aa24a0d2db60 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations.ts @@ -1,3 +1,4 @@ +// @strict: false // String indexer types constrain the types of named properties in their containing type interface MyString extends String { diff --git a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.ts b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.ts index d38850a6ae203..d2bd70e8e0d2f 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.ts @@ -1,3 +1,4 @@ +// @strict: false // String indexer providing a constraint of a user defined type class A { diff --git a/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/objectTypesWithOptionalProperties2.ts b/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/objectTypesWithOptionalProperties2.ts index 4f1c79d0268e1..1a2663252225f 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/objectTypesWithOptionalProperties2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/objectTypesWithOptionalProperties2.ts @@ -1,3 +1,4 @@ +// @strict: false // Illegal attempts to define optional methods var a: { diff --git a/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts b/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts index 42f42eb3127c2..714b9eb6edd9e 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo; } diff --git a/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNamesOfReservedWords.ts b/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNamesOfReservedWords.ts index 6673465381f50..ac849df89c397 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNamesOfReservedWords.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNamesOfReservedWords.ts @@ -1,3 +1,4 @@ +// @strict: false class C { abstract; as; diff --git a/tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts b/tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts index 7082bcccb440e..89b379effd225 100644 --- a/tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts +++ b/tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts @@ -1,3 +1,4 @@ +// @strict: false var x: 'hi'; function f(x: 'hi'); diff --git a/tests/cases/conformance/types/rest/objectRest.ts b/tests/cases/conformance/types/rest/objectRest.ts index e3eebf0d011e3..48aca913bfd52 100644 --- a/tests/cases/conformance/types/rest/objectRest.ts +++ b/tests/cases/conformance/types/rest/objectRest.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 var o = { a: 1, b: 'no' } var { ...clone } = o; diff --git a/tests/cases/conformance/types/rest/objectRest2.ts b/tests/cases/conformance/types/rest/objectRest2.ts index 4a38123f1ac15..221900907519e 100644 --- a/tests/cases/conformance/types/rest/objectRest2.ts +++ b/tests/cases/conformance/types/rest/objectRest2.ts @@ -1,3 +1,4 @@ +// @strict: false // @lib: es2015 // @target: es2015 // test for #12203 diff --git a/tests/cases/conformance/types/rest/objectRestAssignment.ts b/tests/cases/conformance/types/rest/objectRestAssignment.ts index dedc99b1f713a..6063cc26b9ec2 100644 --- a/tests/cases/conformance/types/rest/objectRestAssignment.ts +++ b/tests/cases/conformance/types/rest/objectRestAssignment.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 let ka: any; let nested: { ki }; diff --git a/tests/cases/conformance/types/rest/objectRestCatchES5.ts b/tests/cases/conformance/types/rest/objectRestCatchES5.ts index ec7e5b950206f..0bc69dd38ebb2 100644 --- a/tests/cases/conformance/types/rest/objectRestCatchES5.ts +++ b/tests/cases/conformance/types/rest/objectRestCatchES5.ts @@ -1,4 +1,4 @@ -// @useUnknownInCatchVariables: false +// @strict: false let a = 1, b = 2; try {} catch ({ a, ...b }) {} \ No newline at end of file diff --git a/tests/cases/conformance/types/rest/objectRestForOf.ts b/tests/cases/conformance/types/rest/objectRestForOf.ts index 4f675b1f15b91..59351ffa1e5cd 100644 --- a/tests/cases/conformance/types/rest/objectRestForOf.ts +++ b/tests/cases/conformance/types/rest/objectRestForOf.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 let array: { x: number, y: string }[]; for (let { x, ...restOf } of array) { diff --git a/tests/cases/conformance/types/rest/objectRestParameter.ts b/tests/cases/conformance/types/rest/objectRestParameter.ts index 5b6faeb797829..abdf0d0b6b571 100644 --- a/tests/cases/conformance/types/rest/objectRestParameter.ts +++ b/tests/cases/conformance/types/rest/objectRestParameter.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es2015 function cloneAgain({ a, ...clone }: { a: number, b: string }): void { } diff --git a/tests/cases/conformance/types/rest/objectRestParameterES5.ts b/tests/cases/conformance/types/rest/objectRestParameterES5.ts index 07a15ffbd4415..a7388b68bd1d1 100644 --- a/tests/cases/conformance/types/rest/objectRestParameterES5.ts +++ b/tests/cases/conformance/types/rest/objectRestParameterES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es5 function cloneAgain({ a, ...clone }: { a: number, b: string }): void { } diff --git a/tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts b/tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts index 2e4e17dc302ce..b4865e3ed97b9 100644 --- a/tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts +++ b/tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts @@ -1,3 +1,4 @@ +// @strict: false var {...a, x } = { x: 1 }; // Error, rest must be last property ({...a, x } = { x: 1 }); // Error, rest must be last property diff --git a/tests/cases/conformance/types/rest/objectRestReadonly.ts b/tests/cases/conformance/types/rest/objectRestReadonly.ts index be6006203481b..8e819edd57a95 100644 --- a/tests/cases/conformance/types/rest/objectRestReadonly.ts +++ b/tests/cases/conformance/types/rest/objectRestReadonly.ts @@ -1,3 +1,4 @@ +// @strict: false // #23734 type ObjType = { foo: string diff --git a/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts b/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts index bed9753b5f9fa..3015596580a18 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts @@ -1,3 +1,4 @@ +// @strict: false // valid uses of arrays of function types var x: () => string[]; diff --git a/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts b/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts index 48397b90a820a..728d399c9f334 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts @@ -1,3 +1,4 @@ +// @strict: false // valid uses of arrays of function types var x: new () => string[]; diff --git a/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads.ts b/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads.ts index d3ffdbe56a3d0..c141070943f40 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false // basic uses of function literals with overloads var f: { diff --git a/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts b/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts index 4ba6a76000f18..5f40d9c85caaa 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts @@ -1,3 +1,4 @@ +// @strict: false // basic uses of function literals with constructor overloads class C { diff --git a/tests/cases/conformance/types/specifyingTypes/typeLiterals/parenthesizedTypes.ts b/tests/cases/conformance/types/specifyingTypes/typeLiterals/parenthesizedTypes.ts index 92959698885c5..eb4f22d1e83de 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/parenthesizedTypes.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/parenthesizedTypes.ts @@ -1,3 +1,4 @@ +// @strict: false var a: string; var a: (string); var a: ((string) | string | (((string)))); diff --git a/tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts b/tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts index d80f16458f04d..2e72559acbce8 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts @@ -1,3 +1,4 @@ +// @strict: false type typeAlias1 = typeof varOfAliasedType1; var varOfAliasedType1: typeAlias1; diff --git a/tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryOnClass.ts b/tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryOnClass.ts index 3e8ee82c74924..ad0fb1169273c 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryOnClass.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryOnClass.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(x: number); constructor(x: string); diff --git a/tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts b/tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts index df1898a5436a4..5afbe5ab57daf 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts @@ -1,3 +1,4 @@ +// @strict: false class C { constructor(x: number); constructor(x: string); diff --git a/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts b/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts index 5099887a7491c..b6db5a13ac18f 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts @@ -1,3 +1,4 @@ +// @strict: false // it is an error to use a generic type without type arguments // all of these are errors diff --git a/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts b/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts index 5099887a7491c..b6db5a13ac18f 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts @@ -1,3 +1,4 @@ +// @strict: false // it is an error to use a generic type without type arguments // all of these are errors diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAndTuples01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAndTuples01.ts index 388f4567ed72a..41fb04f247102 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAndTuples01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAndTuples01.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true // Should all be strings. diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts index ba1894065339d..b766ad6b5d85b 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type Kind = "A" | "B" diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags02.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags02.ts index 9fdc942a3f25a..509ac4e41c462 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags02.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type Kind = "A" | "B" diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags03.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags03.ts index 96011d27255d9..d8b439bbf9890 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags03.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags03.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type Kind = "A" | "B" diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes01.ts index 05f8c5111180b..57f983b3ef079 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes01.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type T = "foo" | "bar" | "baz"; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes02.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes02.ts index ee61efc37cac5..004553c8a3d7b 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes02.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type T = string | "foo" | "bar" | "baz"; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes03.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes03.ts index 96a4f035c4baa..356b3455f25e9 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes03.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes03.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type T = number | "foo" | "bar"; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes04.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes04.ts index 9f37e272b460c..d3ddb1fb3b6ce 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes04.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes04.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type T = "" | "foo"; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInVariableDeclarations01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInVariableDeclarations01.ts index 4f0063876876a..d253cdc04b36a 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInVariableDeclarations01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInVariableDeclarations01.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true let a: ""; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads01.ts index 0044113440561..660dc62ac91af 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads01.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type PrimitiveName = 'string' | 'number' | 'boolean'; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads02.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads02.ts index 9e142702026d5..a0634cceb2d04 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads02.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true function getFalsyPrimitive(x: "string"): string; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesTypePredicates01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesTypePredicates01.ts index 2199ff3a7c782..1876c5742cc06 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesTypePredicates01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesTypePredicates01.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true type Kind = "A" | "B" diff --git a/tests/cases/conformance/types/thisType/contextualThisTypeInJavascript.ts b/tests/cases/conformance/types/thisType/contextualThisTypeInJavascript.ts index 53e6c1bae7ebf..5d4620dcd2994 100644 --- a/tests/cases/conformance/types/thisType/contextualThisTypeInJavascript.ts +++ b/tests/cases/conformance/types/thisType/contextualThisTypeInJavascript.ts @@ -1,3 +1,4 @@ +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/conformance/types/thisType/thisTypeInFunctions.ts b/tests/cases/conformance/types/thisType/thisTypeInFunctions.ts index f4a2eb19e2e5e..ca7d3c7f44a6e 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctions.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctions.ts @@ -1,3 +1,4 @@ +// @strict: false // body checking class B { n: number; diff --git a/tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts b/tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts index 01d7fd0430bfa..660c691bde1b6 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts @@ -1,3 +1,4 @@ +// @strict: false declare class Base { check(prop: TProp): boolean; } diff --git a/tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts b/tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts index ade3e65e02902..c8e268a60f7a2 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts @@ -1,3 +1,4 @@ +// @strict: false type WrongObject = {value: number}; type CorrectObject = {name: string}; diff --git a/tests/cases/conformance/types/thisType/thisTypeInFunctionsNegative.ts b/tests/cases/conformance/types/thisType/thisTypeInFunctionsNegative.ts index 62db5f28c0e8f..d21c22b9a4bcb 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctionsNegative.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctionsNegative.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: es6 class C { diff --git a/tests/cases/conformance/types/tuple/named/namedTupleMembers.ts b/tests/cases/conformance/types/tuple/named/namedTupleMembers.ts index 9846c4f5b0f98..510a08c4b061a 100644 --- a/tests/cases/conformance/types/tuple/named/namedTupleMembers.ts +++ b/tests/cases/conformance/types/tuple/named/namedTupleMembers.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true export type Segment = [length: number, count: number]; diff --git a/tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts b/tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts index ecd90aebd7ddd..2c4fddcdf7a2d 100644 --- a/tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts +++ b/tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @declaration: true export type Segment1 = [length: number, number]; diff --git a/tests/cases/conformance/types/typeAliases/asiPreventsParsingAsTypeAlias02.ts b/tests/cases/conformance/types/typeAliases/asiPreventsParsingAsTypeAlias02.ts index 9357dbbfe09b7..609f77330f2a0 100644 --- a/tests/cases/conformance/types/typeAliases/asiPreventsParsingAsTypeAlias02.ts +++ b/tests/cases/conformance/types/typeAliases/asiPreventsParsingAsTypeAlias02.ts @@ -1,3 +1,4 @@ +// @strict: false var type; var string; diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts index 00ae809df851d..5540f0e1973ca 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts @@ -1,3 +1,4 @@ +// @strict: false // it is always illegal to provide type arguments to a non-generic function // all invocations here are illegal diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction.ts index ba1c5b003f703..daa34e6945e1e 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction.ts @@ -1,3 +1,4 @@ +// @strict: false // satisfaction of a constraint to Function, no errors expected function foo(x: T): T { return x; } diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts index 7094d67c8a6b4..5ef8fcce82557 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts @@ -1,3 +1,4 @@ +// @strict: false // satisfaction of a constraint to Function, all of these invocations are errors unless otherwise noted function foo(x: T): T { return x; } diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts index 6c32014789621..04ff6c0b5b423 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts @@ -1,3 +1,4 @@ +// @strict: false // satisfaction of a constraint to Function, no errors expected function foo string>(x: T): T { return x; } diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/instantiateNonGenericTypeWithTypeArguments.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/instantiateNonGenericTypeWithTypeArguments.ts index 1d916beddd23e..1bb94fe4c354d 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/instantiateNonGenericTypeWithTypeArguments.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/instantiateNonGenericTypeWithTypeArguments.ts @@ -1,3 +1,4 @@ +// @strict: false // it is an error to provide type arguments to a non-generic call // all of these are errors diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively.ts index 0a4e70a2890b0..7152a2968f8d1 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively.ts @@ -1,3 +1,4 @@ +// @strict: false // using a type parameter as a constraint for a type parameter is valid // no errors expected diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively2.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively2.ts index f1e074aa9f7a0..66fcf669f82c9 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively2.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively2.ts @@ -1,3 +1,4 @@ +// @strict: false // using a type parameter as a constraint for a type parameter is invalid // these should be errors at the type parameter constraint declarations, and have no downstream errors diff --git a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints.ts b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints.ts index b89016ecff50d..ff7372615a667 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints.ts @@ -1,3 +1,4 @@ +// @strict: false // generic types should behave as if they have properties of their constraint type // no errors expected diff --git a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints2.ts b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints2.ts index 10f3a498848f8..33ffdde834cf4 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints2.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints2.ts @@ -1,3 +1,4 @@ +// @strict: false // generic types should behave as if they have properties of their constraint type class A { diff --git a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts index 6167485f1be3a..d33e2c5a17874 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts @@ -1,3 +1,4 @@ +// @strict: false // generic types should behave as if they have properties of their constraint type class A { diff --git a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints4.ts b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints4.ts index 221970c3e8c25..7d1989a9339c0 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints4.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints4.ts @@ -1,3 +1,4 @@ +// @strict: false class C { f() { var x: T = {} as any; diff --git a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts index 61804660045da..d9a36e843268a 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts @@ -1,3 +1,4 @@ +// @strict: false class A { foo(): string { return ''; } } diff --git a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts index 1660d67a4e2ed..656d2e472c95f 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts @@ -1,3 +1,4 @@ +// @strict: false class C { f() { var x: T; diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignabilityInInheritance.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignabilityInInheritance.ts index ae927567cce1d..7af0408fdd736 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignabilityInInheritance.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignabilityInInheritance.ts @@ -1,3 +1,4 @@ +// @strict: false // any is not a subtype of any other types, errors expected on all the below derived classes unless otherwise noted interface I { diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts index 2f3831196ddf8..7ce16225bae76 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts @@ -1,3 +1,4 @@ +// @strict: false // any is not a subtype of any other types, but is assignable, all the below should work interface I { diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts index 4d7240b9ae3fc..a0ae57dc67b34 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts @@ -1,3 +1,4 @@ +// @strict: false // call signatures in derived types must have the same or fewer optional parameters as the target for assignment namespace ClassTypeParam { diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers.ts index 74a2c2e941088..10d9652615f7a 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers.ts @@ -1,3 +1,4 @@ +// @strict: false // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // no errors expected diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers2.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers2.ts index a45da064822a6..4572f93998e10 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers2.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers2.ts @@ -1,3 +1,4 @@ +// @strict: false // 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 diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers3.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers3.ts index 6e9a210db4b1c..2e239afdc1cbf 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers3.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers3.ts @@ -1,3 +1,4 @@ +// @strict: false // 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 diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers4.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers4.ts index 1d4011d9ed5f3..27b35033718dd 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers4.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers4.ts @@ -1,3 +1,4 @@ +// @strict: false // members N and M of types S and T have the same name, same accessibility, same optionality, and N is not assignable M namespace OnlyDerived { diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts index ca2457e65867c..3c901625b61c7 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersAccessibility.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersAccessibility.ts index eec029faeb61d..649c124b2f884 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersAccessibility.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersAccessibility.ts @@ -1,3 +1,4 @@ +// @strict: false // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M namespace TargetIsPublic { diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersNumericNames.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersNumericNames.ts index b25c949f42626..0a4a44e5adebb 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersNumericNames.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersNumericNames.ts @@ -1,3 +1,4 @@ +// @strict: false // 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 diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality.ts index d86d7015d694b..54ea1f3871c96 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality.ts @@ -1,3 +1,4 @@ +// @strict: false // Derived member is not optional but base member is, should be ok class Base { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts index fa1fa745a776a..22298bfaa6986 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts @@ -1,3 +1,4 @@ +// @strict: false // 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 diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.ts index 7f1d24bd5dcc3..32e1ec0bb2ee8 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.ts @@ -1,3 +1,4 @@ +// @strict: false // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M // string named numeric properties work correctly, errors below unless otherwise noted diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignabilityInInheritance.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignabilityInInheritance.ts index c04673b29fc67..af0f6dffc1ca4 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignabilityInInheritance.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignabilityInInheritance.ts @@ -1,3 +1,4 @@ +// @strict: false // enum is only a subtype of number, no types are subtypes of enum, all of these except the first are errors diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignableToEveryType.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignableToEveryType.ts index b0f55331d7033..3b26b385b660c 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignableToEveryType.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignableToEveryType.ts @@ -1,3 +1,4 @@ +// @strict: false class C { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts index 9c3cd92571a34..b923cb8250003 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts @@ -1,2 +1,3 @@ +// @strict: false var x = undefined = null; // error var y: typeof undefined = null; // ok, widened \ No newline at end of file diff --git a/tests/cases/conformance/types/typeRelationships/bestCommonType/heterogeneousArrayLiterals.ts b/tests/cases/conformance/types/typeRelationships/bestCommonType/heterogeneousArrayLiterals.ts index e9a0121e45536..a49055f337a1b 100644 --- a/tests/cases/conformance/types/typeRelationships/bestCommonType/heterogeneousArrayLiterals.ts +++ b/tests/cases/conformance/types/typeRelationships/bestCommonType/heterogeneousArrayLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false // type of an array is the best common type of its elements (plus its contextual type if it exists) var a = [1, '']; // {}[] diff --git a/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithIntersectionTypes01.ts b/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithIntersectionTypes01.ts index 1afc760ef851a..398903b5400ac 100644 --- a/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithIntersectionTypes01.ts +++ b/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithIntersectionTypes01.ts @@ -1,3 +1,4 @@ +// @strict: false interface I1 { p1: number } diff --git a/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithUnionTypes01.ts b/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithUnionTypes01.ts index 3010c5f159a76..784f052b7f517 100644 --- a/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithUnionTypes01.ts +++ b/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithUnionTypes01.ts @@ -1,3 +1,4 @@ +// @strict: false interface I1 { p1: number } diff --git a/tests/cases/conformance/types/typeRelationships/recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts b/tests/cases/conformance/types/typeRelationships/recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts index e7260831a432f..e2162c923ee2d 100644 --- a/tests/cases/conformance/types/typeRelationships/recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts +++ b/tests/cases/conformance/types/typeRelationships/recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts @@ -1,3 +1,4 @@ +// @strict: false class List { data: T; next: List>; diff --git a/tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts b/tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts index 6eba1f2836aa4..80ea279e1d648 100644 --- a/tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts +++ b/tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts @@ -1,3 +1,4 @@ +// @strict: false class List { data: T; next: List>; diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts index 8d312791b649b..c480ec2117804 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts @@ -1,3 +1,4 @@ +// @strict: false // enums are only subtypes of number, any and no other types enum E { A } diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/nullIsSubtypeOfEverythingButUndefined.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/nullIsSubtypeOfEverythingButUndefined.ts index ec976b6227016..1e24417d6071a 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/nullIsSubtypeOfEverythingButUndefined.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/nullIsSubtypeOfEverythingButUndefined.ts @@ -1,3 +1,4 @@ +// @strict: false // null is a subtype of any other types except undefined var r0 = true ? null : null; diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts index 01e0c7ba067a6..5369064f03d1c 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts @@ -1,3 +1,4 @@ +// @strict: false // string literal types are subtypes of string, any // ok diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts index fc24f4120deaf..6409c57290210 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts @@ -1,3 +1,4 @@ +// @strict: false // every type is a subtype of any, no errors expected interface I { diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts index 188cc9142bb87..badb7cfc1bb8f 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts @@ -1,3 +1,4 @@ +// @strict: false enum E { e1, e2 } interface I8 { [x: string]: number[]; } class A { foo: number; } diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts index e86fc51d443ee..ebdcce2b2a920 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts @@ -1,3 +1,4 @@ +// @strict: false // checking subtype relations for function types as it relates to contextual signature instantiation class Base { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts index 830139d3fafd2..689834cf6639d 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts @@ -1,3 +1,4 @@ +// @strict: false // checking subtype relations for function types as it relates to contextual signature instantiation class Base { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/unionSubtypeIfEveryConstituentTypeIsSubtype.ts b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/unionSubtypeIfEveryConstituentTypeIsSubtype.ts index 1004d557cc418..a42120749d1a2 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/unionSubtypeIfEveryConstituentTypeIsSubtype.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/unionSubtypeIfEveryConstituentTypeIsSubtype.ts @@ -1,3 +1,4 @@ +// @strict: false enum e { e1, e2 diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity.ts index 225a974181478..aec2eb15fad0d 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity2.ts index fefde23a69416..6573636412789 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures.ts index 94038f6df9de3..34c60a4c6475c 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures2.ts index 699f0f73f7a02..873a3cd8dea6d 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures3.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures3.ts index e054c29a2f16f..c4087f7a11fa3 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures3.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally interface I { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts index b62b558d06533..4d333face5b86 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts index 0e8ba5340a15e..7a0fc6d79f295 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally interface I { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesWithOverloads.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesWithOverloads.ts index 0aaf7c30f20ed..c5b729ae184cd 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesWithOverloads.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesWithOverloads.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts index d31e756e9ccb7..be4745e51e1f1 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts @@ -1,3 +1,4 @@ +// @strict: false interface A { (x: T, y: S): void diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures.ts index efec6a715b3da..4e18f23eebb01 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures2.ts index 63e5167a4c924..7ee4838fc6727 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class B { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts index b8fc424b21b6b..cdb7c572fa223 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class B { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures.ts index d95bc486dfc4d..cf3409181ce56 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures2.ts index 5c009926a09d6..f49a0300961c5 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts index ede6da40400a9..004375a62d765 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts index 5fb315c4da98f..89314d01c95a9 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts index aaae2cbf33330..d8a8ddaec0610 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts index 97a657606e2bd..5b76b5425cdc5 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts index df7533d9063f6..08810f4422a04 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts index e3bd868941608..4536033bda8b5 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts index 95239269b9a07..da26115e20e32 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts index 9e01aaec49fe4..32d51862afd64 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts index c5454cc41e181..91b4cdaee0c13 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts index b8620f04d1dc7..b6bff8bb3d57e 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts index f39d23637acc0..97642263acd84 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts index 974f53cb9c222..3460bf9e10383 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts index 47bab5dab815d..9384c6b35f40d 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts index 14f4933a154ba..ad681a20e77a0 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts index 9c072e8936abf..9ec72b56e46b6 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts index 2e0a98d557681..b5a22b535222a 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts index fe01df25646b6..bc79ca5ac6674 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class B { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts index 20d7dbab13ffe..10343aa044157 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class B { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts index 56dc5a051cd8b..70fecca5edeee 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts index 6c4a282228d93..d40f8fa075373 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts index 8c9a08137f7ee..9b181400cacd6 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts @@ -1,3 +1,4 @@ +// @strict: false // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers1.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers1.ts index 867199d9051e0..4a4a5d03d9ab0 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers1.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers1.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers2.ts index ea9d7d04ee227..66ea74752f8d9 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class Base { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers3.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers3.ts index d3f22604c4477..5217c6abae488 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers3.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts index 7c241951050e3..2bf8d68664520 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts index b9e390158cc45..c407e3364cfa6 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts index 769e59f06d1fd..35e9aae1785f7 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class C { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPublics.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPublics.ts index 813a8333e5fb4..5b9d1428e3fe6 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPublics.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPublics.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers.ts index f511e56bc30f2..2534d9a2dbe67 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class A { diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers2.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers2.ts index d8af511910d96..a544c47721281 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers2.ts @@ -1,3 +1,4 @@ +// @strict: false // object types are identical structurally class Base { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/primtiveTypesAreIdentical.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/primtiveTypesAreIdentical.ts index d560122724a98..b43fd1cb7f297 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/primtiveTypesAreIdentical.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/primtiveTypesAreIdentical.ts @@ -1,3 +1,4 @@ +// @strict: false // primitive types are identical to themselves so these overloads will all cause errors function foo1(x: number); diff --git a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/typeParametersAreIdenticalToThemselves.ts b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/typeParametersAreIdenticalToThemselves.ts index 0495789326402..64f146a8058b3 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/typeParametersAreIdenticalToThemselves.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/typeParametersAreIdenticalToThemselves.ts @@ -1,3 +1,4 @@ +// @strict: false // type parameters from the same declaration are identical to themself function foo1(x: T); diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallTypeArgumentInference.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallTypeArgumentInference.ts index 15b0c1cb9c96e..4f1dce9061fe5 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallTypeArgumentInference.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallTypeArgumentInference.ts @@ -1,3 +1,4 @@ +// @strict: false // Basic type inference with generic calls, no errors expected function foo(t: T) { diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference.ts index 601f79066777b..ff79f725c8ef9 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference.ts @@ -1,3 +1,4 @@ +// @strict: false // Basic type inference with generic calls and constraints, no errors expected class Base { foo: string; } diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts index a05aa1ae502cd..9814537f996dd 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts @@ -1,3 +1,4 @@ +// @strict: false // Generic call with parameters of T and U, U extends T, no parameter of type U function foo(t: T) { diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments.ts index f685d27d60d32..5a4aec289fcb5 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments.ts @@ -1,3 +1,4 @@ +// @strict: false // When a function expression is inferentially typed (section 4.9.3) and a type assigned to a parameter in that expression references type parameters for which inferences are being made, // the corresponding inferred type arguments to become fixed and no further candidate inferences are made for them. diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts index 3e0bf3d188f23..00345af384705 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts @@ -1,3 +1,4 @@ +// @strict: false // When a function expression is inferentially typed (section 4.9.3) and a type assigned to a parameter in that expression references type parameters for which inferences are being made, // the corresponding inferred type arguments to become fixed and no further candidate inferences are made for them. diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments3.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments3.ts index 78c1b8b94e705..0d5ffda296639 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments3.ts @@ -1,3 +1,4 @@ +// @strict: false // When a function expression is inferentially typed (section 4.9.3) and a type assigned to a parameter in that expression references type parameters for which inferences are being made, // the corresponding inferred type arguments to become fixed and no further candidate inferences are made for them. diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments.ts index ebe561b60b42f..f75391451f9c5 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments.ts @@ -1,3 +1,4 @@ +// @strict: false // Function typed arguments with multiple signatures must be passed an implementation that matches all of them // Inferences are made quadratic-pairwise to and from these overload sets diff --git a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments2.ts b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments2.ts index 62a3d5e7b5e65..91bab0fc2dd45 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments2.ts @@ -1,3 +1,4 @@ +// @strict: false // Function typed arguments with multiple signatures must be passed an implementation that matches all of them // Inferences are made quadratic-pairwise to and from these overload sets diff --git a/tests/cases/conformance/types/typeRelationships/widenedTypes/arrayLiteralWidened.ts b/tests/cases/conformance/types/typeRelationships/widenedTypes/arrayLiteralWidened.ts index 05428422129c6..1f03b2c0eb25c 100644 --- a/tests/cases/conformance/types/typeRelationships/widenedTypes/arrayLiteralWidened.ts +++ b/tests/cases/conformance/types/typeRelationships/widenedTypes/arrayLiteralWidened.ts @@ -1,3 +1,4 @@ +// @strict: false // array literals are widened upon assignment according to their element type var a = []; // any[] diff --git a/tests/cases/conformance/types/typeRelationships/widenedTypes/objectLiteralWidened.ts b/tests/cases/conformance/types/typeRelationships/widenedTypes/objectLiteralWidened.ts index 8b51e526882e7..27bcec7276562 100644 --- a/tests/cases/conformance/types/typeRelationships/widenedTypes/objectLiteralWidened.ts +++ b/tests/cases/conformance/types/typeRelationships/widenedTypes/objectLiteralWidened.ts @@ -1,3 +1,4 @@ +// @strict: false // object literal properties are widened to any var x1 = { diff --git a/tests/cases/conformance/types/union/unionTypeReduction.ts b/tests/cases/conformance/types/union/unionTypeReduction.ts index 8bc3d1cdc8cea..c4f6453391abb 100644 --- a/tests/cases/conformance/types/union/unionTypeReduction.ts +++ b/tests/cases/conformance/types/union/unionTypeReduction.ts @@ -1,3 +1,4 @@ +// @strict: false interface I2 { (): number; (q): boolean; diff --git a/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts b/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts index 2c6bcf9d6ccd7..1e75ba25384a3 100644 --- a/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts +++ b/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts @@ -1,3 +1,4 @@ +// @strict: false // @target: esnext // @useDefineForClassFields: false diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts index fffd4662f0892..c791d76a00060 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "strict": false, //// "outDir": "./dist", //// "inlineSourceMap": true, //// "declaration": true, diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts index d0720f53a481c..4b74b1fe3c53b 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "strict": false, //// "outDir": "./dist", //// "inlineSourceMap": true, //// "inlineSources": true, diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts index 12f60211ede0c..e1a012fa4b701 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "strict": false, //// "outDir": "./dist", //// "declaration": true, //// "declarationMap": true, diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts index fe529c2794925..466c64ea0d437 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "strict": false, //// "outDir": "./dist", //// "sourceMap": true, //// "sourceRoot": "/home/src/workspaces/project/", diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts index b27faeb8919a2..f9cdea1c1f5e1 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "strict": false, //// "outDir": "./dist", //// "sourceRoot": "/home/src/workspaces/project/", //// "declaration": true, diff --git a/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts b/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts index 078aecb6418bb..f6f9b9d31d371 100644 --- a/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts +++ b/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts @@ -21,6 +21,7 @@ //// "$schema": "http://json.schemastore.org/tsconfig", //// "compileOnSave": true, //// "compilerOptions": { +//// "strict": false, //// "sourceMap": true, //// "declaration": true, //// "declarationMap": true