From 177d13db2eacc64e3d79a7d1fa92aeaf62ee7f7e Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 19:28:48 +0000 Subject: [PATCH 01/21] Update tests sensitive to CFA. --- .../stringLiteralTypesWithVariousOperators01.ts | 8 ++++---- .../stringLiteralTypesWithVariousOperators02.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators01.ts index 28c34d3c74a99..83855b9d2dfcd 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators01.ts @@ -1,9 +1,9 @@ // @declaration: true -let abc: "ABC" = "ABC"; -let xyz: "XYZ" = "XYZ"; -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; +declare let abc: "ABC"; +declare let xyz: "XYZ"; +declare let abcOrXyz: "ABC" | "XYZ"; +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; let a = "" + abc; let b = abc + ""; diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators02.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators02.ts index cf66f66e47c30..75b04b2b9daf4 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators02.ts @@ -1,9 +1,9 @@ // @declaration: true -let abc: "ABC" = "ABC"; -let xyz: "XYZ" = "XYZ"; -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; +declare let abc: "ABC"; +declare let xyz: "XYZ"; +declare let abcOrXyz: "ABC" | "XYZ"; +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; let a = abcOrXyzOrNumber + 100; let b = 100 + abcOrXyzOrNumber; From 8d4d9c908df59558eb9556dc0bac85127599be3c Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 19:29:00 +0000 Subject: [PATCH 02/21] Turn strict off in widening tests. --- tests/cases/conformance/types/tuple/wideningTuples1.ts | 1 + tests/cases/conformance/types/tuple/wideningTuples2.ts | 1 + tests/cases/conformance/types/tuple/wideningTuples3.ts | 1 + tests/cases/conformance/types/tuple/wideningTuples4.ts | 1 + tests/cases/conformance/types/tuple/wideningTuples5.ts | 1 + tests/cases/conformance/types/tuple/wideningTuples6.ts | 1 + tests/cases/conformance/types/tuple/wideningTuples7.ts | 1 + 7 files changed, 7 insertions(+) diff --git a/tests/cases/conformance/types/tuple/wideningTuples1.ts b/tests/cases/conformance/types/tuple/wideningTuples1.ts index f4885435dcfab..7cd9551fd9d4d 100644 --- a/tests/cases/conformance/types/tuple/wideningTuples1.ts +++ b/tests/cases/conformance/types/tuple/wideningTuples1.ts @@ -1,3 +1,4 @@ +//@strict: false //@noImplicitAny: true declare function foo(x: T): T; diff --git a/tests/cases/conformance/types/tuple/wideningTuples2.ts b/tests/cases/conformance/types/tuple/wideningTuples2.ts index d8bf124854663..5a69be75de73e 100644 --- a/tests/cases/conformance/types/tuple/wideningTuples2.ts +++ b/tests/cases/conformance/types/tuple/wideningTuples2.ts @@ -1,3 +1,4 @@ +//@strict: false //@noImplicitAny: true var foo: () => [any] = function bar() { let intermediate = bar(); diff --git a/tests/cases/conformance/types/tuple/wideningTuples3.ts b/tests/cases/conformance/types/tuple/wideningTuples3.ts index a6837be2a0fac..5a140bbefdfdf 100644 --- a/tests/cases/conformance/types/tuple/wideningTuples3.ts +++ b/tests/cases/conformance/types/tuple/wideningTuples3.ts @@ -1,3 +1,4 @@ +//@strict: false //@noImplicitAny: true var a: [any]; diff --git a/tests/cases/conformance/types/tuple/wideningTuples4.ts b/tests/cases/conformance/types/tuple/wideningTuples4.ts index 550ba07f60012..2583e194495e9 100644 --- a/tests/cases/conformance/types/tuple/wideningTuples4.ts +++ b/tests/cases/conformance/types/tuple/wideningTuples4.ts @@ -1,3 +1,4 @@ +//@strict: false var a: [any]; var b = a = [undefined, null]; diff --git a/tests/cases/conformance/types/tuple/wideningTuples5.ts b/tests/cases/conformance/types/tuple/wideningTuples5.ts index 36434c6eafe22..67ec7f31c85bb 100644 --- a/tests/cases/conformance/types/tuple/wideningTuples5.ts +++ b/tests/cases/conformance/types/tuple/wideningTuples5.ts @@ -1,2 +1,3 @@ +//@strict: false //@noImplicitAny: true var [a, b] = [undefined, null]; \ No newline at end of file diff --git a/tests/cases/conformance/types/tuple/wideningTuples6.ts b/tests/cases/conformance/types/tuple/wideningTuples6.ts index cac228ecb4d02..be2bd335c6aa3 100644 --- a/tests/cases/conformance/types/tuple/wideningTuples6.ts +++ b/tests/cases/conformance/types/tuple/wideningTuples6.ts @@ -1,3 +1,4 @@ +//@strict: false var [a, b] = [undefined, null]; a = ""; b = ""; \ No newline at end of file diff --git a/tests/cases/conformance/types/tuple/wideningTuples7.ts b/tests/cases/conformance/types/tuple/wideningTuples7.ts index 1a4d212d3622d..3091df5b3cb87 100644 --- a/tests/cases/conformance/types/tuple/wideningTuples7.ts +++ b/tests/cases/conformance/types/tuple/wideningTuples7.ts @@ -1,3 +1,4 @@ +//@strict: false //@noImplicitAny: true var foo = function bar() { let intermediate: [string]; From 390058959625ef887d98df20e49e431a616eddaf Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 19:30:05 +0000 Subject: [PATCH 03/21] Update tests with output sensitive to `strictNullChecks`. --- .../cases/compiler/metadataOfClassFromAlias.ts | 18 ++++++++++++++---- .../cases/compiler/metadataOfUnionWithNull.ts | 1 + .../metadataReferencedWithinFilteredUnion.ts | 8 +++++++- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/tests/cases/compiler/metadataOfClassFromAlias.ts b/tests/cases/compiler/metadataOfClassFromAlias.ts index c7407c8d76603..7de4777970e15 100644 --- a/tests/cases/compiler/metadataOfClassFromAlias.ts +++ b/tests/cases/compiler/metadataOfClassFromAlias.ts @@ -2,17 +2,27 @@ // @emitDecoratorMetadata: true // @target: es5 // @module: commonjs +// @strict: true, false -// @filename: auxiliry.ts +// @filename: auxiliary.ts export class SomeClass { field: string; } -//@filename: test.ts -import { SomeClass } from './auxiliry'; +//@filename: testA.ts +import { SomeClass } from './auxiliary'; function annotation(): PropertyDecorator { return (target: any): void => { }; } export class ClassA { - @annotation() array: SomeClass | null; + @annotation() aaa: SomeClass; +} + +//@filename: testB.ts +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassB { + @annotation() bbb: SomeClass | null; } \ No newline at end of file diff --git a/tests/cases/compiler/metadataOfUnionWithNull.ts b/tests/cases/compiler/metadataOfUnionWithNull.ts index bb4d93189fc66..46ac77877e718 100644 --- a/tests/cases/compiler/metadataOfUnionWithNull.ts +++ b/tests/cases/compiler/metadataOfUnionWithNull.ts @@ -1,5 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true +// @strict: true, false function PropDeco(target: Object, propKey: string | symbol) { } class A { diff --git a/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts b/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts index 6fd19622f8803..3b83b52dd6f97 100644 --- a/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts +++ b/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts @@ -2,6 +2,8 @@ // @emitDecoratorMetadata: true // @target: es5 // @filename: Class1.ts +// @strict: true, false + export class Class1 { } // @filename: Class2.ts @@ -12,7 +14,11 @@ function decorate(target: any, propertyKey: string) { export class Class2 { @decorate - get prop(): Class1 | undefined { + get maybeProp(): Class1 | undefined { + return undefined; + } + @decorate + get prop(): Class1 { return undefined; } } \ No newline at end of file From 419e1e0f1eda503086231c1acd485fb6bd9a8dc6 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 19:30:52 +0000 Subject: [PATCH 04/21] Some strictPropertyInitialization updates. --- tests/cases/compiler/2dArrays.ts | 6 +++--- tests/cases/compiler/abstractPropertyBasics.ts | 2 +- tests/cases/compiler/metadataOfUnion.ts | 1 + tests/cases/compiler/metadataOfUnionWithNull.ts | 3 ++- .../cases/compiler/metadataReferencedWithinFilteredUnion.ts | 3 ++- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/cases/compiler/2dArrays.ts b/tests/cases/compiler/2dArrays.ts index 5a3dac3fff60e..7fe0cb43a27a3 100644 --- a/tests/cases/compiler/2dArrays.ts +++ b/tests/cases/compiler/2dArrays.ts @@ -2,12 +2,12 @@ class Cell { } class Ship { - isSunk: boolean; + isSunk: boolean = false; } class Board { - ships: Ship[]; - cells: Cell[]; + ships: Ship[] = []; + cells: Cell[] = []; private allShipsSunk() { return this.ships.every(function (val) { return val.isSunk; }); diff --git a/tests/cases/compiler/abstractPropertyBasics.ts b/tests/cases/compiler/abstractPropertyBasics.ts index c0b76057a6b08..c8fd32b52b902 100644 --- a/tests/cases/compiler/abstractPropertyBasics.ts +++ b/tests/cases/compiler/abstractPropertyBasics.ts @@ -17,6 +17,6 @@ class C extends B { set prop(v) { } raw = "edge"; readonly ro = "readonly please"; - readonlyProp: string; // don't have to give a value, in fact + readonlyProp!: string; m() { } } \ No newline at end of file diff --git a/tests/cases/compiler/metadataOfUnion.ts b/tests/cases/compiler/metadataOfUnion.ts index 2093357cb31e0..a398cfb4a3fe0 100644 --- a/tests/cases/compiler/metadataOfUnion.ts +++ b/tests/cases/compiler/metadataOfUnion.ts @@ -1,5 +1,6 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true +// @strictPropertyInitialization: false function PropDeco(target: Object, propKey: string | symbol) { } class A { diff --git a/tests/cases/compiler/metadataOfUnionWithNull.ts b/tests/cases/compiler/metadataOfUnionWithNull.ts index 46ac77877e718..066fdfde19c21 100644 --- a/tests/cases/compiler/metadataOfUnionWithNull.ts +++ b/tests/cases/compiler/metadataOfUnionWithNull.ts @@ -1,6 +1,7 @@ // @experimentalDecorators: true // @emitDecoratorMetadata: true -// @strict: true, false +// @strictNullChecks: true, false +// @strictPropertyInitialization: false function PropDeco(target: Object, propKey: string | symbol) { } class A { diff --git a/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts b/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts index 3b83b52dd6f97..1ccb6ff5e1fcf 100644 --- a/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts +++ b/tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts @@ -2,7 +2,8 @@ // @emitDecoratorMetadata: true // @target: es5 // @filename: Class1.ts -// @strict: true, false +// @strictNullChecks: true, false +// @strictPropertyInitialization: false export class Class1 { } From c1dcad5eff5b03a5cadf6a49fef723f8db3ee7af Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 19:31:24 +0000 Subject: [PATCH 05/21] strictNullChecks updates. --- tests/cases/compiler/APISample_Watch.ts | 2 +- .../typeArgumentLists/wrappedAndRecursiveConstraints.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cases/compiler/APISample_Watch.ts b/tests/cases/compiler/APISample_Watch.ts index 42b1fef4c4a0b..ae56cf6987dca 100644 --- a/tests/cases/compiler/APISample_Watch.ts +++ b/tests/cases/compiler/APISample_Watch.ts @@ -55,7 +55,7 @@ function watchMain() { // You can technically override any given hook on the host, though you probably don't need to. // Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all. const origCreateProgram = host.createProgram; - host.createProgram = (rootNames: ReadonlyArray, options, host, oldProgram) => { + host.createProgram = (rootNames: ReadonlyArray | undefined, options, host, oldProgram) => { console.log("** We're about to create the program! **"); return origCreateProgram(rootNames, options, host, oldProgram); } diff --git a/tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints.ts b/tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints.ts index b731d8da42a72..3bc94dd5fe4b3 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints.ts @@ -11,6 +11,6 @@ interface Foo extends Date { foo: string; } -var y: Foo = null; +var y: Foo = {} as Foo; var c = new C(y); var r = c.foo(y); \ No newline at end of file From 43d470e1293edcc14450de6eeef90a679d380684 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 19:52:51 +0000 Subject: [PATCH 06/21] Update baselines. --- tests/baselines/reference/2dArrays.js | 9 +- tests/baselines/reference/2dArrays.symbols | 10 +- tests/baselines/reference/2dArrays.types | 12 +- tests/baselines/reference/APISample_Watch.js | 2 +- .../reference/abstractPropertyBasics.js | 2 +- .../reference/abstractPropertyBasics.symbols | 4 +- .../reference/abstractPropertyBasics.types | 2 +- .../metadataOfClassFromAlias(strict=false).js | 89 +++++++++++++ ...dataOfClassFromAlias(strict=false).symbols | 49 ++++++++ ...tadataOfClassFromAlias(strict=false).types | 65 ++++++++++ ...taOfClassFromAlias(strict=true).errors.txt | 33 +++++ .../metadataOfClassFromAlias(strict=true).js | 88 +++++++++++++ ...adataOfClassFromAlias(strict=true).symbols | 49 ++++++++ ...etadataOfClassFromAlias(strict=true).types | 67 ++++++++++ .../reference/metadataOfClassFromAlias.js | 53 -------- .../metadataOfClassFromAlias.symbols | 29 ----- .../reference/metadataOfClassFromAlias.types | 38 ------ ...fUnionWithNull(strictnullchecks=false).js} | 0 ...nWithNull(strictnullchecks=false).symbols} | 0 ...ionWithNull(strictnullchecks=false).types} | 0 ...aOfUnionWithNull(strictnullchecks=true).js | 115 +++++++++++++++++ ...ionWithNull(strictnullchecks=true).symbols | 91 ++++++++++++++ ...UnionWithNull(strictnullchecks=true).types | 118 ++++++++++++++++++ ...inFilteredUnion(strictnullchecks=false).js | 78 ++++++++++++ ...eredUnion(strictnullchecks=false).symbols} | 14 ++- ...lteredUnion(strictnullchecks=false).types} | 14 ++- ...redUnion(strictnullchecks=true).errors.txt | 24 ++++ ...inFilteredUnion(strictnullchecks=true).js} | 18 ++- ...lteredUnion(strictnullchecks=true).symbols | 40 ++++++ ...FilteredUnion(strictnullchecks=true).types | 50 ++++++++ ...tringLiteralTypesWithVariousOperators01.js | 12 +- ...LiteralTypesWithVariousOperators01.symbols | 85 ++++++------- ...ngLiteralTypesWithVariousOperators01.types | 24 +--- ...eralTypesWithVariousOperators02.errors.txt | 8 +- ...tringLiteralTypesWithVariousOperators02.js | 12 +- ...LiteralTypesWithVariousOperators02.symbols | 51 ++++---- ...ngLiteralTypesWithVariousOperators02.types | 24 +--- .../wrappedAndRecursiveConstraints.js | 4 +- .../wrappedAndRecursiveConstraints.symbols | 3 +- .../wrappedAndRecursiveConstraints.types | 6 +- 40 files changed, 1117 insertions(+), 275 deletions(-) create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=false).js create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=false).symbols create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=false).types create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true).errors.txt create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true).js create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true).symbols create mode 100644 tests/baselines/reference/metadataOfClassFromAlias(strict=true).types delete mode 100644 tests/baselines/reference/metadataOfClassFromAlias.js delete mode 100644 tests/baselines/reference/metadataOfClassFromAlias.symbols delete mode 100644 tests/baselines/reference/metadataOfClassFromAlias.types rename tests/baselines/reference/{metadataOfUnionWithNull.js => metadataOfUnionWithNull(strictnullchecks=false).js} (100%) rename tests/baselines/reference/{metadataOfUnionWithNull.symbols => metadataOfUnionWithNull(strictnullchecks=false).symbols} (100%) rename tests/baselines/reference/{metadataOfUnionWithNull.types => metadataOfUnionWithNull(strictnullchecks=false).types} (100%) create mode 100644 tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).js create mode 100644 tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).symbols create mode 100644 tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).types create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).js rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion.symbols => metadataReferencedWithinFilteredUnion(strictnullchecks=false).symbols} (64%) rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion.types => metadataReferencedWithinFilteredUnion(strictnullchecks=false).types} (68%) create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).errors.txt rename tests/baselines/reference/{metadataReferencedWithinFilteredUnion.js => metadataReferencedWithinFilteredUnion(strictnullchecks=true).js} (78%) create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).symbols create mode 100644 tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).types diff --git a/tests/baselines/reference/2dArrays.js b/tests/baselines/reference/2dArrays.js index 67ca55be5f1e1..3c12da4a25ef8 100644 --- a/tests/baselines/reference/2dArrays.js +++ b/tests/baselines/reference/2dArrays.js @@ -5,12 +5,12 @@ class Cell { } class Ship { - isSunk: boolean; + isSunk: boolean = false; } class Board { - ships: Ship[]; - cells: Cell[]; + ships: Ship[] = []; + cells: Cell[] = []; private allShipsSunk() { return this.ships.every(function (val) { return val.isSunk; }); @@ -25,11 +25,14 @@ var Cell = /** @class */ (function () { }()); var Ship = /** @class */ (function () { function Ship() { + this.isSunk = false; } return Ship; }()); var Board = /** @class */ (function () { function Board() { + this.ships = []; + this.cells = []; } Board.prototype.allShipsSunk = function () { return this.ships.every(function (val) { return val.isSunk; }); diff --git a/tests/baselines/reference/2dArrays.symbols b/tests/baselines/reference/2dArrays.symbols index 3974e5e803d82..109c8307ff9fc 100644 --- a/tests/baselines/reference/2dArrays.symbols +++ b/tests/baselines/reference/2dArrays.symbols @@ -8,23 +8,23 @@ class Cell { class Ship { >Ship : Symbol(Ship, Decl(2dArrays.ts, 1, 1)) - isSunk: boolean; + isSunk: boolean = false; >isSunk : Symbol(Ship.isSunk, Decl(2dArrays.ts, 3, 12)) } class Board { >Board : Symbol(Board, Decl(2dArrays.ts, 5, 1)) - ships: Ship[]; + ships: Ship[] = []; >ships : Symbol(Board.ships, Decl(2dArrays.ts, 7, 13)) >Ship : Symbol(Ship, Decl(2dArrays.ts, 1, 1)) - cells: Cell[]; ->cells : Symbol(Board.cells, Decl(2dArrays.ts, 8, 18)) + cells: Cell[] = []; +>cells : Symbol(Board.cells, Decl(2dArrays.ts, 8, 23)) >Cell : Symbol(Cell, Decl(2dArrays.ts, 0, 0)) private allShipsSunk() { ->allShipsSunk : Symbol(Board.allShipsSunk, Decl(2dArrays.ts, 9, 18)) +>allShipsSunk : Symbol(Board.allShipsSunk, Decl(2dArrays.ts, 9, 23)) return this.ships.every(function (val) { return val.isSunk; }); >this.ships.every : Symbol(Array.every, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) diff --git a/tests/baselines/reference/2dArrays.types b/tests/baselines/reference/2dArrays.types index 74a962fff0424..3ad88ae6b15dc 100644 --- a/tests/baselines/reference/2dArrays.types +++ b/tests/baselines/reference/2dArrays.types @@ -10,22 +10,28 @@ class Ship { >Ship : Ship > : ^^^^ - isSunk: boolean; + isSunk: boolean = false; >isSunk : boolean > : ^^^^^^^ +>false : false +> : ^^^^^ } class Board { >Board : Board > : ^^^^^ - ships: Ship[]; + ships: Ship[] = []; >ships : Ship[] > : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ - cells: Cell[]; + cells: Cell[] = []; >cells : Cell[] > : ^^^^^^ +>[] : undefined[] +> : ^^^^^^^^^^^ private allShipsSunk() { >allShipsSunk : () => boolean diff --git a/tests/baselines/reference/APISample_Watch.js b/tests/baselines/reference/APISample_Watch.js index 8659e969ffb66..608d0e00a1dda 100644 --- a/tests/baselines/reference/APISample_Watch.js +++ b/tests/baselines/reference/APISample_Watch.js @@ -51,7 +51,7 @@ function watchMain() { // You can technically override any given hook on the host, though you probably don't need to. // Note that we're assuming `origCreateProgram` and `origPostProgramCreate` doesn't use `this` at all. const origCreateProgram = host.createProgram; - host.createProgram = (rootNames: ReadonlyArray, options, host, oldProgram) => { + host.createProgram = (rootNames: ReadonlyArray | undefined, options, host, oldProgram) => { console.log("** We're about to create the program! **"); return origCreateProgram(rootNames, options, host, oldProgram); } diff --git a/tests/baselines/reference/abstractPropertyBasics.js b/tests/baselines/reference/abstractPropertyBasics.js index c9026e5f3424d..c20a295242ff3 100644 --- a/tests/baselines/reference/abstractPropertyBasics.js +++ b/tests/baselines/reference/abstractPropertyBasics.js @@ -19,7 +19,7 @@ class C extends B { set prop(v) { } raw = "edge"; readonly ro = "readonly please"; - readonlyProp: string; // don't have to give a value, in fact + readonlyProp!: string; m() { } } diff --git a/tests/baselines/reference/abstractPropertyBasics.symbols b/tests/baselines/reference/abstractPropertyBasics.symbols index b7c7a74483d02..b251e283c2965 100644 --- a/tests/baselines/reference/abstractPropertyBasics.symbols +++ b/tests/baselines/reference/abstractPropertyBasics.symbols @@ -53,9 +53,9 @@ class C extends B { readonly ro = "readonly please"; >ro : Symbol(C.ro, Decl(abstractPropertyBasics.ts, 16, 17)) - readonlyProp: string; // don't have to give a value, in fact + readonlyProp!: string; >readonlyProp : Symbol(C.readonlyProp, Decl(abstractPropertyBasics.ts, 17, 36)) m() { } ->m : Symbol(C.m, Decl(abstractPropertyBasics.ts, 18, 25)) +>m : Symbol(C.m, Decl(abstractPropertyBasics.ts, 18, 26)) } diff --git a/tests/baselines/reference/abstractPropertyBasics.types b/tests/baselines/reference/abstractPropertyBasics.types index e578dfc1a3d83..c62b71a86e149 100644 --- a/tests/baselines/reference/abstractPropertyBasics.types +++ b/tests/baselines/reference/abstractPropertyBasics.types @@ -74,7 +74,7 @@ class C extends B { >"readonly please" : "readonly please" > : ^^^^^^^^^^^^^^^^^ - readonlyProp: string; // don't have to give a value, in fact + readonlyProp!: string; >readonlyProp : string > : ^^^^^^ diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false).js b/tests/baselines/reference/metadataOfClassFromAlias(strict=false).js new file mode 100644 index 0000000000000..3caae58547030 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=false).js @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +//// [auxiliary.ts] +export class SomeClass { + field: string; +} + +//// [testA.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassA { + @annotation() aaa: SomeClass; +} + +//// [testB.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassB { + @annotation() bbb: SomeClass | null; +} + +//// [auxiliary.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SomeClass = void 0; +var SomeClass = /** @class */ (function () { + function SomeClass() { + } + return SomeClass; +}()); +exports.SomeClass = SomeClass; +//// [testA.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassA = void 0; +var auxiliary_1 = require("./auxiliary"); +function annotation() { + return function (target) { }; +} +var ClassA = /** @class */ (function () { + function ClassA() { + } + __decorate([ + annotation(), + __metadata("design:type", auxiliary_1.SomeClass) + ], ClassA.prototype, "aaa", void 0); + return ClassA; +}()); +exports.ClassA = ClassA; +//// [testB.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassB = void 0; +var auxiliary_1 = require("./auxiliary"); +function annotation() { + return function (target) { }; +} +var ClassB = /** @class */ (function () { + function ClassB() { + } + __decorate([ + annotation(), + __metadata("design:type", auxiliary_1.SomeClass) + ], ClassB.prototype, "bbb", void 0); + return ClassB; +}()); +exports.ClassB = ClassB; diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false).symbols b/tests/baselines/reference/metadataOfClassFromAlias(strict=false).symbols new file mode 100644 index 0000000000000..11709d87afae1 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=false).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(auxiliary.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass.field, Decl(auxiliary.ts, 0, 24)) +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testA.ts, 2, 12)) +} +export class ClassA { +>ClassA : Symbol(ClassA, Decl(testA.ts, 3, 1)) + + @annotation() aaa: SomeClass; +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>aaa : Symbol(ClassA.aaa, Decl(testA.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testB.ts, 2, 12)) +} +export class ClassB { +>ClassB : Symbol(ClassB, Decl(testB.ts, 3, 1)) + + @annotation() bbb: SomeClass | null; +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>bbb : Symbol(ClassB.bbb, Decl(testB.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=false).types b/tests/baselines/reference/metadataOfClassFromAlias(strict=false).types new file mode 100644 index 0000000000000..70c6e5161ba23 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=false).types @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +} +export class ClassA { +>ClassA : ClassA +> : ^^^^^^ + + @annotation() aaa: SomeClass; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>aaa : SomeClass +> : ^^^^^^^^^ +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +} +export class ClassB { +>ClassB : ClassB +> : ^^^^^^ + + @annotation() bbb: SomeClass | null; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>bbb : SomeClass +> : ^^^^^^^^^ +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).errors.txt b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).errors.txt new file mode 100644 index 0000000000000..fa2ac7a8d184a --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).errors.txt @@ -0,0 +1,33 @@ +auxiliary.ts(2,5): error TS2564: Property 'field' has no initializer and is not definitely assigned in the constructor. +testA.ts(6,19): error TS2564: Property 'aaa' has no initializer and is not definitely assigned in the constructor. +testB.ts(6,19): error TS2564: Property 'bbb' has no initializer and is not definitely assigned in the constructor. + + +==== auxiliary.ts (1 errors) ==== + export class SomeClass { + field: string; + ~~~~~ +!!! error TS2564: Property 'field' has no initializer and is not definitely assigned in the constructor. + } + +==== testA.ts (1 errors) ==== + import { SomeClass } from './auxiliary'; + function annotation(): PropertyDecorator { + return (target: any): void => { }; + } + export class ClassA { + @annotation() aaa: SomeClass; + ~~~ +!!! error TS2564: Property 'aaa' has no initializer and is not definitely assigned in the constructor. + } + +==== testB.ts (1 errors) ==== + import { SomeClass } from './auxiliary'; + function annotation(): PropertyDecorator { + return (target: any): void => { }; + } + export class ClassB { + @annotation() bbb: SomeClass | null; + ~~~ +!!! error TS2564: Property 'bbb' has no initializer and is not definitely assigned in the constructor. + } \ No newline at end of file diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).js b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).js new file mode 100644 index 0000000000000..9dd50e5eed290 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).js @@ -0,0 +1,88 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +//// [auxiliary.ts] +export class SomeClass { + field: string; +} + +//// [testA.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassA { + @annotation() aaa: SomeClass; +} + +//// [testB.ts] +import { SomeClass } from './auxiliary'; +function annotation(): PropertyDecorator { + return (target: any): void => { }; +} +export class ClassB { + @annotation() bbb: SomeClass | null; +} + +//// [auxiliary.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SomeClass = void 0; +var SomeClass = /** @class */ (function () { + function SomeClass() { + } + return SomeClass; +}()); +exports.SomeClass = SomeClass; +//// [testA.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassA = void 0; +var auxiliary_1 = require("./auxiliary"); +function annotation() { + return function (target) { }; +} +var ClassA = /** @class */ (function () { + function ClassA() { + } + __decorate([ + annotation(), + __metadata("design:type", auxiliary_1.SomeClass) + ], ClassA.prototype, "aaa", void 0); + return ClassA; +}()); +exports.ClassA = ClassA; +//// [testB.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassB = void 0; +function annotation() { + return function (target) { }; +} +var ClassB = /** @class */ (function () { + function ClassB() { + } + __decorate([ + annotation(), + __metadata("design:type", Object) + ], ClassB.prototype, "bbb", void 0); + return ClassB; +}()); +exports.ClassB = ClassB; diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).symbols b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).symbols new file mode 100644 index 0000000000000..11709d87afae1 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : Symbol(SomeClass, Decl(auxiliary.ts, 0, 0)) + + field: string; +>field : Symbol(SomeClass.field, Decl(auxiliary.ts, 0, 24)) +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testA.ts, 2, 12)) +} +export class ClassA { +>ClassA : Symbol(ClassA, Decl(testA.ts, 3, 1)) + + @annotation() aaa: SomeClass; +>annotation : Symbol(annotation, Decl(testA.ts, 0, 40)) +>aaa : Symbol(ClassA.aaa, Decl(testA.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testA.ts, 0, 8)) +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) + +function annotation(): PropertyDecorator { +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) + + return (target: any): void => { }; +>target : Symbol(target, Decl(testB.ts, 2, 12)) +} +export class ClassB { +>ClassB : Symbol(ClassB, Decl(testB.ts, 3, 1)) + + @annotation() bbb: SomeClass | null; +>annotation : Symbol(annotation, Decl(testB.ts, 0, 40)) +>bbb : Symbol(ClassB.bbb, Decl(testB.ts, 4, 21)) +>SomeClass : Symbol(SomeClass, Decl(testB.ts, 0, 8)) +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias(strict=true).types b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).types new file mode 100644 index 0000000000000..06e5367e6f358 --- /dev/null +++ b/tests/baselines/reference/metadataOfClassFromAlias(strict=true).types @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// + +=== auxiliary.ts === +export class SomeClass { +>SomeClass : SomeClass +> : ^^^^^^^^^ + + field: string; +>field : string +> : ^^^^^^ +} + +=== testA.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +> : ^^^ +} +export class ClassA { +>ClassA : ClassA +> : ^^^^^^ + + @annotation() aaa: SomeClass; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>aaa : SomeClass +> : ^^^^^^^^^ +} + +=== testB.ts === +import { SomeClass } from './auxiliary'; +>SomeClass : typeof SomeClass +> : ^^^^^^^^^^^^^^^^ + +function annotation(): PropertyDecorator { +>annotation : () => PropertyDecorator +> : ^^^^^^ + + return (target: any): void => { }; +>(target: any): void => { } : (target: any) => void +> : ^ ^^ ^^^^^ +>target : any +> : ^^^ +} +export class ClassB { +>ClassB : ClassB +> : ^^^^^^ + + @annotation() bbb: SomeClass | null; +>annotation() : PropertyDecorator +> : ^^^^^^^^^^^^^^^^^ +>annotation : () => PropertyDecorator +> : ^^^^^^ +>bbb : SomeClass | null +> : ^^^^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/metadataOfClassFromAlias.js b/tests/baselines/reference/metadataOfClassFromAlias.js deleted file mode 100644 index 657cdf21f975f..0000000000000 --- a/tests/baselines/reference/metadataOfClassFromAlias.js +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// - -//// [auxiliry.ts] -export class SomeClass { - field: string; -} - -//// [test.ts] -import { SomeClass } from './auxiliry'; -function annotation(): PropertyDecorator { - return (target: any): void => { }; -} -export class ClassA { - @annotation() array: SomeClass | null; -} - -//// [auxiliry.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SomeClass = void 0; -var SomeClass = /** @class */ (function () { - function SomeClass() { - } - return SomeClass; -}()); -exports.SomeClass = SomeClass; -//// [test.js] -"use strict"; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassA = void 0; -var auxiliry_1 = require("./auxiliry"); -function annotation() { - return function (target) { }; -} -var ClassA = /** @class */ (function () { - function ClassA() { - } - __decorate([ - annotation(), - __metadata("design:type", auxiliry_1.SomeClass) - ], ClassA.prototype, "array", void 0); - return ClassA; -}()); -exports.ClassA = ClassA; diff --git a/tests/baselines/reference/metadataOfClassFromAlias.symbols b/tests/baselines/reference/metadataOfClassFromAlias.symbols deleted file mode 100644 index b11225e880e93..0000000000000 --- a/tests/baselines/reference/metadataOfClassFromAlias.symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// - -=== auxiliry.ts === -export class SomeClass { ->SomeClass : Symbol(SomeClass, Decl(auxiliry.ts, 0, 0)) - - field: string; ->field : Symbol(SomeClass.field, Decl(auxiliry.ts, 0, 24)) -} - -=== test.ts === -import { SomeClass } from './auxiliry'; ->SomeClass : Symbol(SomeClass, Decl(test.ts, 0, 8)) - -function annotation(): PropertyDecorator { ->annotation : Symbol(annotation, Decl(test.ts, 0, 39)) ->PropertyDecorator : Symbol(PropertyDecorator, Decl(lib.decorators.legacy.d.ts, --, --)) - - return (target: any): void => { }; ->target : Symbol(target, Decl(test.ts, 2, 12)) -} -export class ClassA { ->ClassA : Symbol(ClassA, Decl(test.ts, 3, 1)) - - @annotation() array: SomeClass | null; ->annotation : Symbol(annotation, Decl(test.ts, 0, 39)) ->array : Symbol(ClassA.array, Decl(test.ts, 4, 21)) ->SomeClass : Symbol(SomeClass, Decl(test.ts, 0, 8)) -} diff --git a/tests/baselines/reference/metadataOfClassFromAlias.types b/tests/baselines/reference/metadataOfClassFromAlias.types deleted file mode 100644 index 4cb3f654a5c87..0000000000000 --- a/tests/baselines/reference/metadataOfClassFromAlias.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/compiler/metadataOfClassFromAlias.ts] //// - -=== auxiliry.ts === -export class SomeClass { ->SomeClass : SomeClass -> : ^^^^^^^^^ - - field: string; ->field : string -> : ^^^^^^ -} - -=== test.ts === -import { SomeClass } from './auxiliry'; ->SomeClass : typeof SomeClass -> : ^^^^^^^^^^^^^^^^ - -function annotation(): PropertyDecorator { ->annotation : () => PropertyDecorator -> : ^^^^^^ - - return (target: any): void => { }; ->(target: any): void => { } : (target: any) => void -> : ^ ^^ ^^^^^ ->target : any -} -export class ClassA { ->ClassA : ClassA -> : ^^^^^^ - - @annotation() array: SomeClass | null; ->annotation() : PropertyDecorator -> : ^^^^^^^^^^^^^^^^^ ->annotation : () => PropertyDecorator -> : ^^^^^^ ->array : SomeClass -> : ^^^^^^^^^ -} diff --git a/tests/baselines/reference/metadataOfUnionWithNull.js b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=false).js similarity index 100% rename from tests/baselines/reference/metadataOfUnionWithNull.js rename to tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=false).js diff --git a/tests/baselines/reference/metadataOfUnionWithNull.symbols b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=false).symbols similarity index 100% rename from tests/baselines/reference/metadataOfUnionWithNull.symbols rename to tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=false).symbols diff --git a/tests/baselines/reference/metadataOfUnionWithNull.types b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=false).types similarity index 100% rename from tests/baselines/reference/metadataOfUnionWithNull.types rename to tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=false).types diff --git a/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).js b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).js new file mode 100644 index 0000000000000..877fcb4ae1dcf --- /dev/null +++ b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).js @@ -0,0 +1,115 @@ +//// [tests/cases/compiler/metadataOfUnionWithNull.ts] //// + +//// [metadataOfUnionWithNull.ts] +function PropDeco(target: Object, propKey: string | symbol) { } + +class A { +} + +class B { + @PropDeco + x: "foo" | null; + + @PropDeco + y: true | never; + + @PropDeco + z: "foo" | undefined; + + @PropDeco + a: null; + + @PropDeco + b: never; + + @PropDeco + c: undefined; + + @PropDeco + d: undefined | null; + + @PropDeco + e: symbol | null; + + @PropDeco + f: symbol | A; + + @PropDeco + g: A | null; + + @PropDeco + h: null | B; + + @PropDeco + j: null | symbol; +} + +//// [metadataOfUnionWithNull.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +function PropDeco(target, propKey) { } +var A = /** @class */ (function () { + function A() { + } + return A; +}()); +var B = /** @class */ (function () { + function B() { + } + __decorate([ + PropDeco, + __metadata("design:type", Object) + ], B.prototype, "x", void 0); + __decorate([ + PropDeco, + __metadata("design:type", Boolean) + ], B.prototype, "y", void 0); + __decorate([ + PropDeco, + __metadata("design:type", Object) + ], B.prototype, "z", void 0); + __decorate([ + PropDeco, + __metadata("design:type", void 0) + ], B.prototype, "a", void 0); + __decorate([ + PropDeco, + __metadata("design:type", void 0) + ], B.prototype, "b", void 0); + __decorate([ + PropDeco, + __metadata("design:type", void 0) + ], B.prototype, "c", void 0); + __decorate([ + PropDeco, + __metadata("design:type", void 0) + ], B.prototype, "d", void 0); + __decorate([ + PropDeco, + __metadata("design:type", Object) + ], B.prototype, "e", void 0); + __decorate([ + PropDeco, + __metadata("design:type", Object) + ], B.prototype, "f", void 0); + __decorate([ + PropDeco, + __metadata("design:type", Object) + ], B.prototype, "g", void 0); + __decorate([ + PropDeco, + __metadata("design:type", Object) + ], B.prototype, "h", void 0); + __decorate([ + PropDeco, + __metadata("design:type", Object) + ], B.prototype, "j", void 0); + return B; +}()); diff --git a/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).symbols b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).symbols new file mode 100644 index 0000000000000..8405164fbabfa --- /dev/null +++ b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).symbols @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/metadataOfUnionWithNull.ts] //// + +=== metadataOfUnionWithNull.ts === +function PropDeco(target: Object, propKey: string | symbol) { } +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) +>target : Symbol(target, Decl(metadataOfUnionWithNull.ts, 0, 18)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>propKey : Symbol(propKey, Decl(metadataOfUnionWithNull.ts, 0, 33)) + +class A { +>A : Symbol(A, Decl(metadataOfUnionWithNull.ts, 0, 63)) +} + +class B { +>B : Symbol(B, Decl(metadataOfUnionWithNull.ts, 3, 1)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + x: "foo" | null; +>x : Symbol(B.x, Decl(metadataOfUnionWithNull.ts, 5, 9)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + y: true | never; +>y : Symbol(B.y, Decl(metadataOfUnionWithNull.ts, 7, 20)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + z: "foo" | undefined; +>z : Symbol(B.z, Decl(metadataOfUnionWithNull.ts, 10, 20)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + a: null; +>a : Symbol(B.a, Decl(metadataOfUnionWithNull.ts, 13, 25)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + b: never; +>b : Symbol(B.b, Decl(metadataOfUnionWithNull.ts, 16, 12)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + c: undefined; +>c : Symbol(B.c, Decl(metadataOfUnionWithNull.ts, 19, 13)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + d: undefined | null; +>d : Symbol(B.d, Decl(metadataOfUnionWithNull.ts, 22, 17)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + e: symbol | null; +>e : Symbol(B.e, Decl(metadataOfUnionWithNull.ts, 25, 24)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + f: symbol | A; +>f : Symbol(B.f, Decl(metadataOfUnionWithNull.ts, 28, 21)) +>A : Symbol(A, Decl(metadataOfUnionWithNull.ts, 0, 63)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + g: A | null; +>g : Symbol(B.g, Decl(metadataOfUnionWithNull.ts, 31, 18)) +>A : Symbol(A, Decl(metadataOfUnionWithNull.ts, 0, 63)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + h: null | B; +>h : Symbol(B.h, Decl(metadataOfUnionWithNull.ts, 34, 16)) +>B : Symbol(B, Decl(metadataOfUnionWithNull.ts, 3, 1)) + + @PropDeco +>PropDeco : Symbol(PropDeco, Decl(metadataOfUnionWithNull.ts, 0, 0)) + + j: null | symbol; +>j : Symbol(B.j, Decl(metadataOfUnionWithNull.ts, 37, 16)) +} diff --git a/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).types b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).types new file mode 100644 index 0000000000000..d175797d3c774 --- /dev/null +++ b/tests/baselines/reference/metadataOfUnionWithNull(strictnullchecks=true).types @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/metadataOfUnionWithNull.ts] //// + +=== metadataOfUnionWithNull.ts === +function PropDeco(target: Object, propKey: string | symbol) { } +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : Object +> : ^^^^^^ +>propKey : string | symbol +> : ^^^^^^^^^^^^^^^ + +class A { +>A : A +> : ^ +} + +class B { +>B : B +> : ^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + x: "foo" | null; +>x : "foo" | null +> : ^^^^^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + y: true | never; +>y : true +> : ^^^^ +>true : true +> : ^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + z: "foo" | undefined; +>z : "foo" | undefined +> : ^^^^^^^^^^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + a: null; +>a : null +> : ^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + b: never; +>b : never +> : ^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + c: undefined; +>c : undefined +> : ^^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + d: undefined | null; +>d : null | undefined +> : ^^^^^^^^^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + e: symbol | null; +>e : symbol | null +> : ^^^^^^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + f: symbol | A; +>f : symbol | A +> : ^^^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + g: A | null; +>g : A | null +> : ^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + h: null | B; +>h : B | null +> : ^^^^^^^^ + + @PropDeco +>PropDeco : (target: Object, propKey: string | symbol) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + j: null | symbol; +>j : symbol | null +> : ^^^^^^^^^^^^^ +} diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).js b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).js new file mode 100644 index 0000000000000..66e3281eefbfa --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).js @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +//// [Class1.ts] +export class Class1 { +} +//// [Class2.ts] +import { Class1 } from './Class1'; + +function decorate(target: any, propertyKey: string) { +} + +export class Class2 { + @decorate + get maybeProp(): Class1 | undefined { + return undefined; + } + @decorate + get prop(): Class1 { + return undefined; + } +} + +//// [Class1.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Class1 = void 0; +var Class1 = /** @class */ (function () { + function Class1() { + } + return Class1; +}()); +exports.Class1 = Class1; +//// [Class2.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Class2 = void 0; +var Class1_1 = require("./Class1"); +function decorate(target, propertyKey) { +} +var Class2 = /** @class */ (function () { + function Class2() { + } + Object.defineProperty(Class2.prototype, "maybeProp", { + get: function () { + return undefined; + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Class2.prototype, "prop", { + get: function () { + return undefined; + }, + enumerable: false, + configurable: true + }); + __decorate([ + decorate, + __metadata("design:type", Class1_1.Class1), + __metadata("design:paramtypes", []) + ], Class2.prototype, "maybeProp", null); + __decorate([ + decorate, + __metadata("design:type", Class1_1.Class1), + __metadata("design:paramtypes", []) + ], Class2.prototype, "prop", null); + return Class2; +}()); +exports.Class2 = Class2; diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion.symbols b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).symbols similarity index 64% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion.symbols rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).symbols index 2b764c948f624..cf34ba8b9fe0d 100644 --- a/tests/baselines/reference/metadataReferencedWithinFilteredUnion.symbols +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).symbols @@ -20,8 +20,18 @@ export class Class2 { @decorate >decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) - get prop(): Class1 | undefined { ->prop : Symbol(Class2.prop, Decl(Class2.ts, 5, 21)) + get maybeProp(): Class1 | undefined { +>maybeProp : Symbol(Class2.maybeProp, Decl(Class2.ts, 5, 21)) +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + + return undefined; +>undefined : Symbol(undefined) + } + @decorate +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) + + get prop(): Class1 { +>prop : Symbol(Class2.prop, Decl(Class2.ts, 9, 5)) >Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) return undefined; diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion.types b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).types similarity index 68% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion.types rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).types index 458131de33109..5a596676a3f05 100644 --- a/tests/baselines/reference/metadataReferencedWithinFilteredUnion.types +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=false).types @@ -26,7 +26,19 @@ export class Class2 { >decorate : (target: any, propertyKey: string) => void > : ^ ^^ ^^ ^^ ^^^^^^^^^ - get prop(): Class1 | undefined { + get maybeProp(): Class1 | undefined { +>maybeProp : Class1 +> : ^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } + @decorate +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + get prop(): Class1 { >prop : Class1 > : ^^^^^^ diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).errors.txt b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).errors.txt new file mode 100644 index 0000000000000..4e39e852206b1 --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).errors.txt @@ -0,0 +1,24 @@ +Class2.ts(13,9): error TS2322: Type 'undefined' is not assignable to type 'Class1'. + + +==== Class1.ts (0 errors) ==== + export class Class1 { + } +==== Class2.ts (1 errors) ==== + import { Class1 } from './Class1'; + + function decorate(target: any, propertyKey: string) { + } + + export class Class2 { + @decorate + get maybeProp(): Class1 | undefined { + return undefined; + } + @decorate + get prop(): Class1 { + return undefined; + ~~~~~~ +!!! error TS2322: Type 'undefined' is not assignable to type 'Class1'. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion.js b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).js similarity index 78% rename from tests/baselines/reference/metadataReferencedWithinFilteredUnion.js rename to tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).js index 7c7d70c749b5a..809fb44c978ea 100644 --- a/tests/baselines/reference/metadataReferencedWithinFilteredUnion.js +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).js @@ -11,7 +11,11 @@ function decorate(target: any, propertyKey: string) { export class Class2 { @decorate - get prop(): Class1 | undefined { + get maybeProp(): Class1 | undefined { + return undefined; + } + @decorate + get prop(): Class1 { return undefined; } } @@ -45,6 +49,13 @@ function decorate(target, propertyKey) { var Class2 = /** @class */ (function () { function Class2() { } + Object.defineProperty(Class2.prototype, "maybeProp", { + get: function () { + return undefined; + }, + enumerable: false, + configurable: true + }); Object.defineProperty(Class2.prototype, "prop", { get: function () { return undefined; @@ -52,6 +63,11 @@ var Class2 = /** @class */ (function () { enumerable: false, configurable: true }); + __decorate([ + decorate, + __metadata("design:type", Object), + __metadata("design:paramtypes", []) + ], Class2.prototype, "maybeProp", null); __decorate([ decorate, __metadata("design:type", Class1_1.Class1), diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).symbols b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).symbols new file mode 100644 index 0000000000000..cf34ba8b9fe0d --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).symbols @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +=== Class1.ts === +export class Class1 { +>Class1 : Symbol(Class1, Decl(Class1.ts, 0, 0)) +} +=== Class2.ts === +import { Class1 } from './Class1'; +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + +function decorate(target: any, propertyKey: string) { +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) +>target : Symbol(target, Decl(Class2.ts, 2, 18)) +>propertyKey : Symbol(propertyKey, Decl(Class2.ts, 2, 30)) +} + +export class Class2 { +>Class2 : Symbol(Class2, Decl(Class2.ts, 3, 1)) + + @decorate +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) + + get maybeProp(): Class1 | undefined { +>maybeProp : Symbol(Class2.maybeProp, Decl(Class2.ts, 5, 21)) +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + + return undefined; +>undefined : Symbol(undefined) + } + @decorate +>decorate : Symbol(decorate, Decl(Class2.ts, 0, 34)) + + get prop(): Class1 { +>prop : Symbol(Class2.prop, Decl(Class2.ts, 9, 5)) +>Class1 : Symbol(Class1, Decl(Class2.ts, 0, 8)) + + return undefined; +>undefined : Symbol(undefined) + } +} diff --git a/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).types b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).types new file mode 100644 index 0000000000000..248837954bead --- /dev/null +++ b/tests/baselines/reference/metadataReferencedWithinFilteredUnion(strictnullchecks=true).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/metadataReferencedWithinFilteredUnion.ts] //// + +=== Class1.ts === +export class Class1 { +>Class1 : Class1 +> : ^^^^^^ +} +=== Class2.ts === +import { Class1 } from './Class1'; +>Class1 : typeof Class1 +> : ^^^^^^^^^^^^^ + +function decorate(target: any, propertyKey: string) { +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ +>target : any +> : ^^^ +>propertyKey : string +> : ^^^^^^ +} + +export class Class2 { +>Class2 : Class2 +> : ^^^^^^ + + @decorate +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + get maybeProp(): Class1 | undefined { +>maybeProp : Class1 | undefined +> : ^^^^^^^^^^^^^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } + @decorate +>decorate : (target: any, propertyKey: string) => void +> : ^ ^^ ^^ ^^ ^^^^^^^^^ + + get prop(): Class1 { +>prop : Class1 +> : ^^^^^^ + + return undefined; +>undefined : undefined +> : ^^^^^^^^^ + } +} diff --git a/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.js b/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.js index e59b01fe5942c..9b5358315fc09 100644 --- a/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.js +++ b/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.js @@ -1,10 +1,10 @@ //// [tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators01.ts] //// //// [stringLiteralTypesWithVariousOperators01.ts] -let abc: "ABC" = "ABC"; -let xyz: "XYZ" = "XYZ"; -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; +declare let abc: "ABC"; +declare let xyz: "XYZ"; +declare let abcOrXyz: "ABC" | "XYZ"; +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; let a = "" + abc; let b = abc + ""; @@ -30,10 +30,6 @@ let u = abc === abcOrXyz; let v = abcOrXyz === abcOrXyzOrNumber; //// [stringLiteralTypesWithVariousOperators01.js] -var abc = "ABC"; -var xyz = "XYZ"; -var abcOrXyz = abc || xyz; -var abcOrXyzOrNumber = abcOrXyz || 100; var a = "" + abc; var b = abc + ""; var c = 10 + abc; diff --git a/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.symbols b/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.symbols index 7b8bc0d327ee3..d0732c46c9983 100644 --- a/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.symbols +++ b/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.symbols @@ -1,117 +1,114 @@ //// [tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators01.ts] //// === stringLiteralTypesWithVariousOperators01.ts === -let abc: "ABC" = "ABC"; ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +declare let abc: "ABC"; +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) -let xyz: "XYZ" = "XYZ"; ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 3)) +declare let xyz: "XYZ"; +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 11)) -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 3)) +declare let abcOrXyz: "ABC" | "XYZ"; +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) let a = "" + abc; >a : Symbol(a, Decl(stringLiteralTypesWithVariousOperators01.ts, 5, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) let b = abc + ""; >b : Symbol(b, Decl(stringLiteralTypesWithVariousOperators01.ts, 6, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) let c = 10 + abc; >c : Symbol(c, Decl(stringLiteralTypesWithVariousOperators01.ts, 7, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) let d = abc + 10; >d : Symbol(d, Decl(stringLiteralTypesWithVariousOperators01.ts, 8, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) let e = xyz + abc; >e : Symbol(e, Decl(stringLiteralTypesWithVariousOperators01.ts, 9, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 11)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) let f = abc + xyz; >f : Symbol(f, Decl(stringLiteralTypesWithVariousOperators01.ts, 10, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 11)) let g = true + abc; >g : Symbol(g, Decl(stringLiteralTypesWithVariousOperators01.ts, 11, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) let h = abc + true; >h : Symbol(h, Decl(stringLiteralTypesWithVariousOperators01.ts, 12, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) let i = abc + abcOrXyz + xyz; >i : Symbol(i, Decl(stringLiteralTypesWithVariousOperators01.ts, 13, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 1, 11)) let j = abcOrXyz + abcOrXyz; >j : Symbol(j, Decl(stringLiteralTypesWithVariousOperators01.ts, 14, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) let k = +abcOrXyz; >k : Symbol(k, Decl(stringLiteralTypesWithVariousOperators01.ts, 15, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) let l = -abcOrXyz; >l : Symbol(l, Decl(stringLiteralTypesWithVariousOperators01.ts, 16, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) let m = abcOrXyzOrNumber + ""; >m : Symbol(m, Decl(stringLiteralTypesWithVariousOperators01.ts, 17, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) let n = "" + abcOrXyzOrNumber; >n : Symbol(n, Decl(stringLiteralTypesWithVariousOperators01.ts, 18, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) let o = abcOrXyzOrNumber + abcOrXyz; >o : Symbol(o, Decl(stringLiteralTypesWithVariousOperators01.ts, 19, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) let p = abcOrXyz + abcOrXyzOrNumber; >p : Symbol(p, Decl(stringLiteralTypesWithVariousOperators01.ts, 20, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) let q = !abcOrXyzOrNumber; >q : Symbol(q, Decl(stringLiteralTypesWithVariousOperators01.ts, 21, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) let r = ~abcOrXyzOrNumber; >r : Symbol(r, Decl(stringLiteralTypesWithVariousOperators01.ts, 22, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) let s = abcOrXyzOrNumber < abcOrXyzOrNumber; >s : Symbol(s, Decl(stringLiteralTypesWithVariousOperators01.ts, 23, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) let t = abcOrXyzOrNumber >= abcOrXyz; >t : Symbol(t, Decl(stringLiteralTypesWithVariousOperators01.ts, 24, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) let u = abc === abcOrXyz; >u : Symbol(u, Decl(stringLiteralTypesWithVariousOperators01.ts, 25, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators01.ts, 0, 11)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) let v = abcOrXyz === abcOrXyzOrNumber; >v : Symbol(v, Decl(stringLiteralTypesWithVariousOperators01.ts, 26, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 3)) +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators01.ts, 2, 11)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators01.ts, 3, 11)) diff --git a/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.types b/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.types index 8fce260189917..eef777c98e7ba 100644 --- a/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.types +++ b/tests/baselines/reference/stringLiteralTypesWithVariousOperators01.types @@ -1,37 +1,21 @@ //// [tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators01.ts] //// === stringLiteralTypesWithVariousOperators01.ts === -let abc: "ABC" = "ABC"; +declare let abc: "ABC"; >abc : "ABC" > : ^^^^^ ->"ABC" : "ABC" -> : ^^^^^ -let xyz: "XYZ" = "XYZ"; +declare let xyz: "XYZ"; >xyz : "XYZ" > : ^^^^^ ->"XYZ" : "XYZ" -> : ^^^^^ -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; +declare let abcOrXyz: "ABC" | "XYZ"; >abcOrXyz : "ABC" | "XYZ" > : ^^^^^^^^^^^^^ ->abc || xyz : "ABC" | "XYZ" -> : ^^^^^^^^^^^^^ ->abc : "ABC" -> : ^^^^^ ->xyz : "XYZ" -> : ^^^^^ -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; >abcOrXyzOrNumber : number | "ABC" | "XYZ" > : ^^^^^^^^^^^^^^^^^^^^^^ ->abcOrXyz || 100 : "ABC" | "XYZ" | 100 -> : ^^^^^^^^^^^^^^^^^^^ ->abcOrXyz : "ABC" | "XYZ" -> : ^^^^^^^^^^^^^ ->100 : 100 -> : ^^^ let a = "" + abc; >a : string diff --git a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.errors.txt b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.errors.txt index 0cb00b42c8def..7dc532acbbb4c 100644 --- a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.errors.txt +++ b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.errors.txt @@ -12,10 +12,10 @@ stringLiteralTypesWithVariousOperators02.ts(17,9): error TS2367: This comparison ==== stringLiteralTypesWithVariousOperators02.ts (11 errors) ==== - let abc: "ABC" = "ABC"; - let xyz: "XYZ" = "XYZ"; - let abcOrXyz: "ABC" | "XYZ" = abc || xyz; - let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; + declare let abc: "ABC"; + declare let xyz: "XYZ"; + declare let abcOrXyz: "ABC" | "XYZ"; + declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; let a = abcOrXyzOrNumber + 100; ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.js b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.js index bd7879c241983..6c1dd120c5ece 100644 --- a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.js +++ b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.js @@ -1,10 +1,10 @@ //// [tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators02.ts] //// //// [stringLiteralTypesWithVariousOperators02.ts] -let abc: "ABC" = "ABC"; -let xyz: "XYZ" = "XYZ"; -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; +declare let abc: "ABC"; +declare let xyz: "XYZ"; +declare let abcOrXyz: "ABC" | "XYZ"; +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; let a = abcOrXyzOrNumber + 100; let b = 100 + abcOrXyzOrNumber; @@ -20,10 +20,6 @@ let k = abc === xyz; let l = abc != xyz; //// [stringLiteralTypesWithVariousOperators02.js] -var abc = "ABC"; -var xyz = "XYZ"; -var abcOrXyz = abc || xyz; -var abcOrXyzOrNumber = abcOrXyz || 100; var a = abcOrXyzOrNumber + 100; var b = 100 + abcOrXyzOrNumber; var c = abcOrXyzOrNumber + abcOrXyzOrNumber; diff --git a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.symbols b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.symbols index 42e0524f2cf28..438da13b8bebe 100644 --- a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.symbols +++ b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.symbols @@ -1,70 +1,67 @@ //// [tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators02.ts] //// === stringLiteralTypesWithVariousOperators02.ts === -let abc: "ABC" = "ABC"; ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 3)) +declare let abc: "ABC"; +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 11)) -let xyz: "XYZ" = "XYZ"; ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 3)) +declare let xyz: "XYZ"; +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 11)) -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 2, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 3)) +declare let abcOrXyz: "ABC" | "XYZ"; +>abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 2, 11)) -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) ->abcOrXyz : Symbol(abcOrXyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 2, 3)) +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let a = abcOrXyzOrNumber + 100; >a : Symbol(a, Decl(stringLiteralTypesWithVariousOperators02.ts, 5, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let b = 100 + abcOrXyzOrNumber; >b : Symbol(b, Decl(stringLiteralTypesWithVariousOperators02.ts, 6, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let c = abcOrXyzOrNumber + abcOrXyzOrNumber; >c : Symbol(c, Decl(stringLiteralTypesWithVariousOperators02.ts, 7, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let d = abcOrXyzOrNumber + true; >d : Symbol(d, Decl(stringLiteralTypesWithVariousOperators02.ts, 8, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let e = false + abcOrXyzOrNumber; >e : Symbol(e, Decl(stringLiteralTypesWithVariousOperators02.ts, 9, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let f = abcOrXyzOrNumber++; >f : Symbol(f, Decl(stringLiteralTypesWithVariousOperators02.ts, 10, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let g = --abcOrXyzOrNumber; >g : Symbol(g, Decl(stringLiteralTypesWithVariousOperators02.ts, 11, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let h = abcOrXyzOrNumber ^ 10; >h : Symbol(h, Decl(stringLiteralTypesWithVariousOperators02.ts, 12, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let i = abcOrXyzOrNumber | 10; >i : Symbol(i, Decl(stringLiteralTypesWithVariousOperators02.ts, 13, 3)) ->abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 3)) +>abcOrXyzOrNumber : Symbol(abcOrXyzOrNumber, Decl(stringLiteralTypesWithVariousOperators02.ts, 3, 11)) let j = abc < xyz; >j : Symbol(j, Decl(stringLiteralTypesWithVariousOperators02.ts, 14, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 11)) +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 11)) let k = abc === xyz; >k : Symbol(k, Decl(stringLiteralTypesWithVariousOperators02.ts, 15, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 11)) +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 11)) let l = abc != xyz; >l : Symbol(l, Decl(stringLiteralTypesWithVariousOperators02.ts, 16, 3)) ->abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 3)) ->xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 3)) +>abc : Symbol(abc, Decl(stringLiteralTypesWithVariousOperators02.ts, 0, 11)) +>xyz : Symbol(xyz, Decl(stringLiteralTypesWithVariousOperators02.ts, 1, 11)) diff --git a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.types b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.types index 4e2a7456fa6c5..bb2a0477239ce 100644 --- a/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.types +++ b/tests/baselines/reference/stringLiteralTypesWithVariousOperators02.types @@ -1,37 +1,21 @@ //// [tests/cases/conformance/types/stringLiteral/stringLiteralTypesWithVariousOperators02.ts] //// === stringLiteralTypesWithVariousOperators02.ts === -let abc: "ABC" = "ABC"; +declare let abc: "ABC"; >abc : "ABC" > : ^^^^^ ->"ABC" : "ABC" -> : ^^^^^ -let xyz: "XYZ" = "XYZ"; +declare let xyz: "XYZ"; >xyz : "XYZ" > : ^^^^^ ->"XYZ" : "XYZ" -> : ^^^^^ -let abcOrXyz: "ABC" | "XYZ" = abc || xyz; +declare let abcOrXyz: "ABC" | "XYZ"; >abcOrXyz : "ABC" | "XYZ" > : ^^^^^^^^^^^^^ ->abc || xyz : "ABC" | "XYZ" -> : ^^^^^^^^^^^^^ ->abc : "ABC" -> : ^^^^^ ->xyz : "XYZ" -> : ^^^^^ -let abcOrXyzOrNumber: "ABC" | "XYZ" | number = abcOrXyz || 100; +declare let abcOrXyzOrNumber: "ABC" | "XYZ" | number; >abcOrXyzOrNumber : number | "ABC" | "XYZ" > : ^^^^^^^^^^^^^^^^^^^^^^ ->abcOrXyz || 100 : "ABC" | "XYZ" | 100 -> : ^^^^^^^^^^^^^^^^^^^ ->abcOrXyz : "ABC" | "XYZ" -> : ^^^^^^^^^^^^^ ->100 : 100 -> : ^^^ let a = abcOrXyzOrNumber + 100; >a : any diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints.js b/tests/baselines/reference/wrappedAndRecursiveConstraints.js index e22561c786a2a..38c71f63f058f 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints.js @@ -14,7 +14,7 @@ interface Foo extends Date { foo: string; } -var y: Foo = null; +var y: Foo = {} as Foo; var c = new C(y); var r = c.foo(y); @@ -29,6 +29,6 @@ var C = /** @class */ (function () { }; return C; }()); -var y = null; +var y = {}; var c = new C(y); var r = c.foo(y); diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints.symbols b/tests/baselines/reference/wrappedAndRecursiveConstraints.symbols index cc9d5b42eaa2d..83ac314e1d969 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints.symbols +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints.symbols @@ -32,9 +32,10 @@ interface Foo extends Date { >foo : Symbol(Foo.foo, Decl(wrappedAndRecursiveConstraints.ts, 9, 28)) } -var y: Foo = null; +var y: Foo = {} as Foo; >y : Symbol(y, Decl(wrappedAndRecursiveConstraints.ts, 13, 3)) >Foo : Symbol(Foo, Decl(wrappedAndRecursiveConstraints.ts, 7, 1)) +>Foo : Symbol(Foo, Decl(wrappedAndRecursiveConstraints.ts, 7, 1)) var c = new C(y); >c : Symbol(c, Decl(wrappedAndRecursiveConstraints.ts, 14, 3)) diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints.types b/tests/baselines/reference/wrappedAndRecursiveConstraints.types index 37050946dee1d..76a5f7fc3f595 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints.types +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints.types @@ -29,9 +29,13 @@ interface Foo extends Date { > : ^^^^^^ } -var y: Foo = null; +var y: Foo = {} as Foo; >y : Foo > : ^^^ +>{} as Foo : Foo +> : ^^^ +>{} : {} +> : ^^ var c = new C(y); >c : C From 1da4ff1a69a7f72c73fff786ca4deec4a3db935c Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 20:07:43 +0000 Subject: [PATCH 07/21] Adjust tests for `strictPropertyInitialization`. --- tests/cases/compiler/controlFlowInstanceof.ts | 15 +++++++++------ .../controlFlowInstanceofWithSymbolHasInstance.ts | 8 ++++---- tests/cases/compiler/optionalParameterProperty.ts | 2 +- .../compiler/strictNullNotNullIndexTypeNoLib.ts | 1 + .../strictNullNotNullIndexTypeShouldWork.ts | 1 + .../controlFlow/typeGuardsNestedAssignments.ts | 2 +- .../controlFlow/typeGuardsTypeParameters.ts | 2 +- .../interfaceExtendsObjectIntersection.ts | 1 + .../types/keyof/keyofAndIndexedAccess.ts | 1 + .../conformance/types/mapped/mappedTypeErrors.ts | 5 ++++- .../types/namedTypes/optionalMethods.ts | 2 +- .../types/spread/objectSpreadNegative.ts | 2 +- 12 files changed, 26 insertions(+), 16 deletions(-) diff --git a/tests/cases/compiler/controlFlowInstanceof.ts b/tests/cases/compiler/controlFlowInstanceof.ts index b032fb708dc58..ec8588675d4b5 100644 --- a/tests/cases/compiler/controlFlowInstanceof.ts +++ b/tests/cases/compiler/controlFlowInstanceof.ts @@ -50,9 +50,9 @@ function f4(s: Set | Set) { // More tests -class A { a: string } -class B extends A { b: string } -class C extends A { c: string } +class A { a: string = "" } +class B extends A { b: string = "" } +class C extends A { c: string = "" } function foo(x: A | undefined) { x; // A | undefined @@ -88,11 +88,11 @@ function foo(x: A | undefined) { // Y is assignable to X, but not a subtype of X interface X { - x?: string; + x?: string } class Y { - y: string; + y: string = ""; } function goo(x: X) { @@ -114,7 +114,10 @@ if (x instanceof ctor) { // Repro from #27550 (based on uglify code) // @Filename: uglify.js -/** @constructor */ +/** + * @constructor + * @param {any} val + */ function AtTop(val) { this.val = val } /** @type {*} */ var v = 1; diff --git a/tests/cases/compiler/controlFlowInstanceofWithSymbolHasInstance.ts b/tests/cases/compiler/controlFlowInstanceofWithSymbolHasInstance.ts index 83b38fce9df27..633d691c294ce 100644 --- a/tests/cases/compiler/controlFlowInstanceofWithSymbolHasInstance.ts +++ b/tests/cases/compiler/controlFlowInstanceofWithSymbolHasInstance.ts @@ -56,7 +56,7 @@ function f4(s: Set | Set) { // More tests class A { - a: string; + a: string = ""; static [Symbol.hasInstance](this: T, value: unknown): value is ( T extends (abstract new (...args: any) => infer U) ? U : never @@ -64,8 +64,8 @@ class A { return Function.prototype[Symbol.hasInstance].call(this, value); } } -class B extends A { b: string } -class C extends A { c: string } +class B extends A { b: string = ""; } +class C extends A { c: string = ""; } function foo(x: A | undefined) { x; // A | undefined @@ -105,7 +105,7 @@ interface X { } class Y { - y: string; + y: string = ""; } function goo(x: X) { diff --git a/tests/cases/compiler/optionalParameterProperty.ts b/tests/cases/compiler/optionalParameterProperty.ts index 1f547d4af26a7..f398b526dcbb1 100644 --- a/tests/cases/compiler/optionalParameterProperty.ts +++ b/tests/cases/compiler/optionalParameterProperty.ts @@ -1,7 +1,7 @@ // @strictNullChecks: true class C { - p: number; + p: number = 0; } class D extends C { diff --git a/tests/cases/compiler/strictNullNotNullIndexTypeNoLib.ts b/tests/cases/compiler/strictNullNotNullIndexTypeNoLib.ts index f5df0e2be8b72..bb63ebd45a3f2 100644 --- a/tests/cases/compiler/strictNullNotNullIndexTypeNoLib.ts +++ b/tests/cases/compiler/strictNullNotNullIndexTypeNoLib.ts @@ -1,4 +1,5 @@ // @strictNullChecks: true +// @strictPropertyInitialization: false // @noLib: true type Readonly = {readonly [K in keyof T]: T[K]} interface A { diff --git a/tests/cases/compiler/strictNullNotNullIndexTypeShouldWork.ts b/tests/cases/compiler/strictNullNotNullIndexTypeShouldWork.ts index 954eaee454b6f..3cd2eccef4100 100644 --- a/tests/cases/compiler/strictNullNotNullIndexTypeShouldWork.ts +++ b/tests/cases/compiler/strictNullNotNullIndexTypeShouldWork.ts @@ -1,4 +1,5 @@ // @strictNullChecks: true +// @strictPropertyInitialization: false interface A { params?: { name: string; }; } diff --git a/tests/cases/conformance/controlFlow/typeGuardsNestedAssignments.ts b/tests/cases/conformance/controlFlow/typeGuardsNestedAssignments.ts index 41e3ffe572e60..9b031015193e7 100644 --- a/tests/cases/conformance/controlFlow/typeGuardsNestedAssignments.ts +++ b/tests/cases/conformance/controlFlow/typeGuardsNestedAssignments.ts @@ -1,7 +1,7 @@ // @strictNullChecks: true class Foo { - x: string; + x: string = ""; } declare function getFooOrNull(): Foo | null; diff --git a/tests/cases/conformance/controlFlow/typeGuardsTypeParameters.ts b/tests/cases/conformance/controlFlow/typeGuardsTypeParameters.ts index 169dbc7a7c8a2..a2bd6ba38a385 100644 --- a/tests/cases/conformance/controlFlow/typeGuardsTypeParameters.ts +++ b/tests/cases/conformance/controlFlow/typeGuardsTypeParameters.ts @@ -3,7 +3,7 @@ // Type guards involving type parameters produce intersection types class C { - prop: string; + prop: string = ""; } function f1(x: T) { diff --git a/tests/cases/conformance/interfaces/interfaceDeclarations/interfaceExtendsObjectIntersection.ts b/tests/cases/conformance/interfaces/interfaceDeclarations/interfaceExtendsObjectIntersection.ts index 003976a2b27c8..c6a49f8f8521f 100644 --- a/tests/cases/conformance/interfaces/interfaceDeclarations/interfaceExtendsObjectIntersection.ts +++ b/tests/cases/conformance/interfaces/interfaceDeclarations/interfaceExtendsObjectIntersection.ts @@ -1,4 +1,5 @@ // @strictNullChecks: true +// @strictPropertyInitialization: false type T1 = { a: number }; type T2 = T1 & { b: number }; diff --git a/tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts b/tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts index 56ff157a67fd0..35123a89fb35d 100644 --- a/tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts +++ b/tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts @@ -1,4 +1,5 @@ // @strictNullChecks: true +// @strictPropertyInitialization: false // @declaration: true class Shape { diff --git a/tests/cases/conformance/types/mapped/mappedTypeErrors.ts b/tests/cases/conformance/types/mapped/mappedTypeErrors.ts index a38979054ecff..f3a6cf2d36854 100644 --- a/tests/cases/conformance/types/mapped/mappedTypeErrors.ts +++ b/tests/cases/conformance/types/mapped/mappedTypeErrors.ts @@ -110,6 +110,9 @@ setState(foo, { c: true }); // Error class C { state: T; + constructor(initialState: T) { + this.state = initialState; + } setState(props: Pick) { for (let k in props) { this.state[k] = props[k]; @@ -117,7 +120,7 @@ class C { } } -let c = new C(); +let c = new C({ a: "hello", b: 42 }); c.setState({ a: "test", b: 43 }); c.setState({ a: "hi" }); c.setState({ b: undefined }); diff --git a/tests/cases/conformance/types/namedTypes/optionalMethods.ts b/tests/cases/conformance/types/namedTypes/optionalMethods.ts index 932521425f9f6..4691a850693ac 100644 --- a/tests/cases/conformance/types/namedTypes/optionalMethods.ts +++ b/tests/cases/conformance/types/namedTypes/optionalMethods.ts @@ -19,7 +19,7 @@ function test1(x: Foo) { } class Bar { - a: number; + a: number = 0; b?: number; c? = 2; constructor(public d?: number, public e = 10) {} diff --git a/tests/cases/conformance/types/spread/objectSpreadNegative.ts b/tests/cases/conformance/types/spread/objectSpreadNegative.ts index 00dfd440667b3..28936bbdeb127 100644 --- a/tests/cases/conformance/types/spread/objectSpreadNegative.ts +++ b/tests/cases/conformance/types/spread/objectSpreadNegative.ts @@ -7,7 +7,7 @@ class PrivateOptionalX { private x?: number; } class PublicX { - public x: number; + public x: number = 42; } declare let publicX: PublicX; declare let privateOptionalX: PrivateOptionalX; From 337bdfd9d07bf3da3e7a5dd91d8c195d0ae53851 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 20:16:18 +0000 Subject: [PATCH 08/21] Accepted baselines. --- .../reference/controlFlowInstanceof.symbols | 51 +++-- .../reference/controlFlowInstanceof.types | 23 +- ...lowInstanceofWithSymbolHasInstance.symbols | 20 +- ...lFlowInstanceofWithSymbolHasInstance.types | 16 +- .../reference/mappedTypeErrors.errors.txt | 31 +-- tests/baselines/reference/mappedTypeErrors.js | 11 +- .../reference/mappedTypeErrors.symbols | 210 +++++++++--------- .../reference/mappedTypeErrors.types | 32 ++- .../reference/objectSpreadNegative.errors.txt | 2 +- .../reference/objectSpreadNegative.js | 3 +- .../reference/objectSpreadNegative.symbols | 2 +- .../reference/objectSpreadNegative.types | 4 +- tests/baselines/reference/optionalMethods.js | 3 +- .../reference/optionalMethods.symbols | 8 +- .../baselines/reference/optionalMethods.types | 4 +- .../optionalParameterProperty.errors.txt | 2 +- .../reference/optionalParameterProperty.js | 3 +- .../optionalParameterProperty.symbols | 2 +- .../reference/optionalParameterProperty.types | 4 +- .../reference/typeGuardsNestedAssignments.js | 3 +- .../typeGuardsNestedAssignments.symbols | 2 +- .../typeGuardsNestedAssignments.types | 4 +- .../reference/typeGuardsTypeParameters.js | 3 +- .../typeGuardsTypeParameters.symbols | 2 +- .../reference/typeGuardsTypeParameters.types | 4 +- 25 files changed, 266 insertions(+), 183 deletions(-) diff --git a/tests/baselines/reference/controlFlowInstanceof.symbols b/tests/baselines/reference/controlFlowInstanceof.symbols index c464fc7cd252c..b19da2dcaf525 100644 --- a/tests/baselines/reference/controlFlowInstanceof.symbols +++ b/tests/baselines/reference/controlFlowInstanceof.symbols @@ -111,22 +111,22 @@ function f4(s: Set | Set) { // More tests -class A { a: string } +class A { a: string = "" } >A : Symbol(A, Decl(controlFlowInstanceof.ts, 41, 1)) >a : Symbol(A.a, Decl(controlFlowInstanceof.ts, 45, 9)) -class B extends A { b: string } ->B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 21)) +class B extends A { b: string = "" } +>B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 26)) >A : Symbol(A, Decl(controlFlowInstanceof.ts, 41, 1)) >b : Symbol(B.b, Decl(controlFlowInstanceof.ts, 46, 19)) -class C extends A { c: string } ->C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 31)) +class C extends A { c: string = "" } +>C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 36)) >A : Symbol(A, Decl(controlFlowInstanceof.ts, 41, 1)) >c : Symbol(C.c, Decl(controlFlowInstanceof.ts, 47, 19)) function foo(x: A | undefined) { ->foo : Symbol(foo, Decl(controlFlowInstanceof.ts, 47, 31)) +>foo : Symbol(foo, Decl(controlFlowInstanceof.ts, 47, 36)) >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) >A : Symbol(A, Decl(controlFlowInstanceof.ts, 41, 1)) @@ -135,9 +135,9 @@ function foo(x: A | undefined) { if (x instanceof B || x instanceof C) { >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) ->B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 21)) +>B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 26)) >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) ->C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 31)) +>C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 36)) x; // B | C >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) @@ -147,9 +147,9 @@ function foo(x: A | undefined) { if (x instanceof B && x instanceof C) { >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) ->B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 21)) +>B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 26)) >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) ->C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 31)) +>C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 36)) x; // B & C >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) @@ -167,14 +167,14 @@ function foo(x: A | undefined) { if (x instanceof B) { >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) ->B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 21)) +>B : Symbol(B, Decl(controlFlowInstanceof.ts, 45, 26)) x; // B >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) if (x instanceof C) { >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) ->C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 31)) +>C : Symbol(C, Decl(controlFlowInstanceof.ts, 46, 36)) x; // B & C >x : Symbol(x, Decl(controlFlowInstanceof.ts, 49, 13)) @@ -200,14 +200,14 @@ function foo(x: A | undefined) { interface X { >X : Symbol(X, Decl(controlFlowInstanceof.ts, 77, 1)) - x?: string; + x?: string >x : Symbol(X.x, Decl(controlFlowInstanceof.ts, 82, 13)) } class Y { >Y : Symbol(Y, Decl(controlFlowInstanceof.ts, 84, 1)) - y: string; + y: string = ""; >y : Symbol(Y.y, Decl(controlFlowInstanceof.ts, 86, 9)) } @@ -251,26 +251,29 @@ if (x instanceof ctor) { // Repro from #27550 (based on uglify code) === uglify.js === -/** @constructor */ +/** + * @constructor + * @param {any} val + */ function AtTop(val) { this.val = val } >AtTop : Symbol(AtTop, Decl(uglify.js, 0, 0)) ->val : Symbol(val, Decl(uglify.js, 1, 15)) ->this.val : Symbol(AtTop.val, Decl(uglify.js, 1, 21)) +>val : Symbol(val, Decl(uglify.js, 4, 15)) +>this.val : Symbol(AtTop.val, Decl(uglify.js, 4, 21)) >this : Symbol(AtTop, Decl(uglify.js, 0, 0)) ->val : Symbol(AtTop.val, Decl(uglify.js, 1, 21)) ->val : Symbol(val, Decl(uglify.js, 1, 15)) +>val : Symbol(AtTop.val, Decl(uglify.js, 4, 21)) +>val : Symbol(val, Decl(uglify.js, 4, 15)) /** @type {*} */ var v = 1; ->v : Symbol(v, Decl(uglify.js, 3, 3)) +>v : Symbol(v, Decl(uglify.js, 6, 3)) if (v instanceof AtTop) { ->v : Symbol(v, Decl(uglify.js, 3, 3)) +>v : Symbol(v, Decl(uglify.js, 6, 3)) >AtTop : Symbol(AtTop, Decl(uglify.js, 0, 0)) v.val ->v.val : Symbol(AtTop.val, Decl(uglify.js, 1, 21)) ->v : Symbol(v, Decl(uglify.js, 3, 3)) ->val : Symbol(AtTop.val, Decl(uglify.js, 1, 21)) +>v.val : Symbol(AtTop.val, Decl(uglify.js, 4, 21)) +>v : Symbol(v, Decl(uglify.js, 6, 3)) +>val : Symbol(AtTop.val, Decl(uglify.js, 4, 21)) } diff --git a/tests/baselines/reference/controlFlowInstanceof.types b/tests/baselines/reference/controlFlowInstanceof.types index fc2fe6c36b20b..6d2417a6fb839 100644 --- a/tests/baselines/reference/controlFlowInstanceof.types +++ b/tests/baselines/reference/controlFlowInstanceof.types @@ -171,27 +171,33 @@ function f4(s: Set | Set) { // More tests -class A { a: string } +class A { a: string = "" } >A : A > : ^ >a : string > : ^^^^^^ +>"" : "" +> : ^^ -class B extends A { b: string } +class B extends A { b: string = "" } >B : B > : ^ >A : A > : ^ >b : string > : ^^^^^^ +>"" : "" +> : ^^ -class C extends A { c: string } +class C extends A { c: string = "" } >C : C > : ^ >A : A > : ^ >c : string > : ^^^^^^ +>"" : "" +> : ^^ function foo(x: A | undefined) { >foo : (x: A | undefined) => void @@ -310,7 +316,7 @@ function foo(x: A | undefined) { // Y is assignable to X, but not a subtype of X interface X { - x?: string; + x?: string >x : string | undefined > : ^^^^^^^^^^^^^^^^^^ } @@ -319,9 +325,11 @@ class Y { >Y : Y > : ^ - y: string; + y: string = ""; >y : string > : ^^^^^^ +>"" : "" +> : ^^ } function goo(x: X) { @@ -382,7 +390,10 @@ if (x instanceof ctor) { // Repro from #27550 (based on uglify code) === uglify.js === -/** @constructor */ +/** + * @constructor + * @param {any} val + */ function AtTop(val) { this.val = val } >AtTop : typeof AtTop > : ^^^^^^^^^^^^ diff --git a/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.symbols b/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.symbols index 4c19470419e35..a2bfbc3676c8e 100644 --- a/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.symbols +++ b/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.symbols @@ -138,11 +138,11 @@ function f4(s: Set | Set) { class A { >A : Symbol(A, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 47, 1)) - a: string; + a: string = ""; >a : Symbol(A.a, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 51, 9)) static [Symbol.hasInstance](this: T, value: unknown): value is ( ->[Symbol.hasInstance] : Symbol(A[Symbol.hasInstance], Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 52, 14)) +>[Symbol.hasInstance] : Symbol(A[Symbol.hasInstance], Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 52, 19)) >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) @@ -173,18 +173,18 @@ class A { >value : Symbol(value, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 53, 43)) } } -class B extends A { b: string } +class B extends A { b: string = ""; } >B : Symbol(B, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 59, 1)) >A : Symbol(A, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 47, 1)) >b : Symbol(B.b, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 19)) -class C extends A { c: string } ->C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 31)) +class C extends A { c: string = ""; } +>C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 37)) >A : Symbol(A, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 47, 1)) >c : Symbol(C.c, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 61, 19)) function foo(x: A | undefined) { ->foo : Symbol(foo, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 61, 31)) +>foo : Symbol(foo, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 61, 37)) >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) >A : Symbol(A, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 47, 1)) @@ -195,7 +195,7 @@ function foo(x: A | undefined) { >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) >B : Symbol(B, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 59, 1)) >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) ->C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 31)) +>C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 37)) x; // B | C >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) @@ -207,7 +207,7 @@ function foo(x: A | undefined) { >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) >B : Symbol(B, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 59, 1)) >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) ->C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 31)) +>C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 37)) x; // B & C >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) @@ -232,7 +232,7 @@ function foo(x: A | undefined) { if (x instanceof C) { >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) ->C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 31)) +>C : Symbol(C, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 60, 37)) x; // B & C >x : Symbol(x, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 63, 13)) @@ -265,7 +265,7 @@ interface X { class Y { >Y : Symbol(Y, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 98, 1)) - y: string; + y: string = ""; >y : Symbol(Y.y, Decl(controlFlowInstanceofWithSymbolHasInstance.ts, 100, 9)) } diff --git a/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.types b/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.types index d980a88e871a9..949d9c5798bed 100644 --- a/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.types +++ b/tests/baselines/reference/controlFlowInstanceofWithSymbolHasInstance.types @@ -199,9 +199,11 @@ class A { >A : A > : ^ - a: string; + a: string = ""; >a : string > : ^^^^^^ +>"" : "" +> : ^^ static [Symbol.hasInstance](this: T, value: unknown): value is ( >[Symbol.hasInstance] : (this: T, value: unknown) => value is (T extends (abstract new (...args: any) => infer U) ? U : never) @@ -248,21 +250,25 @@ class A { > : ^^^^^^^ } } -class B extends A { b: string } +class B extends A { b: string = ""; } >B : B > : ^ >A : A > : ^ >b : string > : ^^^^^^ +>"" : "" +> : ^^ -class C extends A { c: string } +class C extends A { c: string = ""; } >C : C > : ^ >A : A > : ^ >c : string > : ^^^^^^ +>"" : "" +> : ^^ function foo(x: A | undefined) { >foo : (x: A | undefined) => void @@ -390,9 +396,11 @@ class Y { >Y : Y > : ^ - y: string; + y: string = ""; >y : string > : ^^^^^^ +>"" : "" +> : ^^ } function goo(x: X) { diff --git a/tests/baselines/reference/mappedTypeErrors.errors.txt b/tests/baselines/reference/mappedTypeErrors.errors.txt index e03c20d64bff7..f05b82726619c 100644 --- a/tests/baselines/reference/mappedTypeErrors.errors.txt +++ b/tests/baselines/reference/mappedTypeErrors.errors.txt @@ -21,15 +21,15 @@ mappedTypeErrors.ts(77,59): error TS2353: Object literal may only specify known mappedTypeErrors.ts(83,58): error TS2353: Object literal may only specify known properties, and 'z' does not exist in type 'Partial<{ x: number; y: number; }>'. mappedTypeErrors.ts(105,17): error TS2322: Type 'undefined' is not assignable to type 'string'. mappedTypeErrors.ts(106,17): error TS2353: Object literal may only specify known properties, and 'c' does not exist in type 'Pick'. -mappedTypeErrors.ts(123,14): error TS2322: Type 'undefined' is not assignable to type 'string'. -mappedTypeErrors.ts(124,14): error TS2353: Object literal may only specify known properties, and 'c' does not exist in type 'Pick'. -mappedTypeErrors.ts(128,16): error TS2322: Type 'string' is not assignable to type 'number'. -mappedTypeErrors.ts(129,25): error TS2322: Type 'string' is not assignable to type 'number'. -mappedTypeErrors.ts(130,39): error TS2322: Type 'string' is not assignable to type 'number'. -mappedTypeErrors.ts(136,16): error TS2322: Type 'T' is not assignable to type 'string | number | symbol'. -mappedTypeErrors.ts(136,21): error TS2536: Type 'P' cannot be used to index type 'T'. -mappedTypeErrors.ts(148,17): error TS2339: Property 'foo' does not exist on type 'Pick'. -mappedTypeErrors.ts(152,17): error TS2339: Property 'foo' does not exist on type 'Record'. +mappedTypeErrors.ts(126,14): error TS2322: Type 'undefined' is not assignable to type 'string'. +mappedTypeErrors.ts(127,14): error TS2353: Object literal may only specify known properties, and 'c' does not exist in type 'Pick'. +mappedTypeErrors.ts(131,16): error TS2322: Type 'string' is not assignable to type 'number'. +mappedTypeErrors.ts(132,25): error TS2322: Type 'string' is not assignable to type 'number'. +mappedTypeErrors.ts(133,39): error TS2322: Type 'string' is not assignable to type 'number'. +mappedTypeErrors.ts(139,16): error TS2322: Type 'T' is not assignable to type 'string | number | symbol'. +mappedTypeErrors.ts(139,21): error TS2536: Type 'P' cannot be used to index type 'T'. +mappedTypeErrors.ts(151,17): error TS2339: Property 'foo' does not exist on type 'Pick'. +mappedTypeErrors.ts(155,17): error TS2339: Property 'foo' does not exist on type 'Record'. ==== mappedTypeErrors.ts (27 errors) ==== @@ -190,6 +190,9 @@ mappedTypeErrors.ts(152,17): error TS2339: Property 'foo' does not exist on type class C { state: T; + constructor(initialState: T) { + this.state = initialState; + } setState(props: Pick) { for (let k in props) { this.state[k] = props[k]; @@ -197,7 +200,7 @@ mappedTypeErrors.ts(152,17): error TS2339: Property 'foo' does not exist on type } } - let c = new C(); + let c = new C({ a: "hello", b: 42 }); c.setState({ a: "test", b: 43 }); c.setState({ a: "hi" }); c.setState({ b: undefined }); @@ -216,15 +219,15 @@ mappedTypeErrors.ts(152,17): error TS2339: Property 'foo' does not exist on type let x1: T2 = { a: 'no' }; // Error ~ !!! error TS2322: Type 'string' is not assignable to type 'number'. -!!! related TS6500 mappedTypeErrors.ts:126:13: The expected type comes from property 'a' which is declared here on type 'T2' +!!! related TS6500 mappedTypeErrors.ts:129:13: The expected type comes from property 'a' which is declared here on type 'T2' let x2: Partial = { a: 'no' }; // Error ~ !!! error TS2322: Type 'string' is not assignable to type 'number'. -!!! related TS6500 mappedTypeErrors.ts:126:13: The expected type comes from property 'a' which is declared here on type 'Partial' +!!! related TS6500 mappedTypeErrors.ts:129:13: The expected type comes from property 'a' which is declared here on type 'Partial' let x3: { [P in keyof T2]: T2[P]} = { a: 'no' }; // Error ~ !!! error TS2322: Type 'string' is not assignable to type 'number'. -!!! related TS6500 mappedTypeErrors.ts:126:13: The expected type comes from property 'a' which is declared here on type '{ [x: string]: any; a?: number | undefined; }' +!!! related TS6500 mappedTypeErrors.ts:129:13: The expected type comes from property 'a' which is declared here on type '{ [x: string]: any; a?: number | undefined; }' // Repro from #13044 @@ -233,7 +236,7 @@ mappedTypeErrors.ts(152,17): error TS2339: Property 'foo' does not exist on type pt: {[P in T]?: T[P]}, // note: should be in keyof T ~ !!! error TS2322: Type 'T' is not assignable to type 'string | number | symbol'. -!!! related TS2208 mappedTypeErrors.ts:134:11: This type parameter might need an `extends string | number | symbol` constraint. +!!! related TS2208 mappedTypeErrors.ts:137:11: This type parameter might need an `extends string | number | symbol` constraint. ~~~~ !!! error TS2536: Type 'P' cannot be used to index type 'T'. }; diff --git a/tests/baselines/reference/mappedTypeErrors.js b/tests/baselines/reference/mappedTypeErrors.js index 81d183c94831a..39018b0e2874c 100644 --- a/tests/baselines/reference/mappedTypeErrors.js +++ b/tests/baselines/reference/mappedTypeErrors.js @@ -110,6 +110,9 @@ setState(foo, { c: true }); // Error class C { state: T; + constructor(initialState: T) { + this.state = initialState; + } setState(props: Pick) { for (let k in props) { this.state[k] = props[k]; @@ -117,7 +120,7 @@ class C { } } -let c = new C(); +let c = new C({ a: "hello", b: 42 }); c.setState({ a: "test", b: 43 }); c.setState({ a: "hi" }); c.setState({ b: undefined }); @@ -209,7 +212,8 @@ setState(foo, foo); setState(foo, { a: undefined }); // Error setState(foo, { c: true }); // Error var C = /** @class */ (function () { - function C() { + function C(initialState) { + this.state = initialState; } C.prototype.setState = function (props) { for (var k in props) { @@ -218,7 +222,7 @@ var C = /** @class */ (function () { }; return C; }()); -var c = new C(); +var c = new C({ a: "hello", b: 42 }); c.setState({ a: "test", b: 43 }); c.setState({ a: "hi" }); c.setState({ b: undefined }); @@ -293,6 +297,7 @@ declare function setState(obj: T, props: Pick): void declare let foo: Foo; declare class C { state: T; + constructor(initialState: T); setState(props: Pick): void; } declare let c: C; diff --git a/tests/baselines/reference/mappedTypeErrors.symbols b/tests/baselines/reference/mappedTypeErrors.symbols index 092881722f5b1..62a33c71c7aa2 100644 --- a/tests/baselines/reference/mappedTypeErrors.symbols +++ b/tests/baselines/reference/mappedTypeErrors.symbols @@ -395,181 +395,193 @@ class C { >state : Symbol(C.state, Decl(mappedTypeErrors.ts, 107, 12)) >T : Symbol(T, Decl(mappedTypeErrors.ts, 107, 8)) + constructor(initialState: T) { +>initialState : Symbol(initialState, Decl(mappedTypeErrors.ts, 109, 16)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 107, 8)) + + this.state = initialState; +>this.state : Symbol(C.state, Decl(mappedTypeErrors.ts, 107, 12)) +>this : Symbol(C, Decl(mappedTypeErrors.ts, 105, 27)) +>state : Symbol(C.state, Decl(mappedTypeErrors.ts, 107, 12)) +>initialState : Symbol(initialState, Decl(mappedTypeErrors.ts, 109, 16)) + } setState(props: Pick) { ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->K : Symbol(K, Decl(mappedTypeErrors.ts, 109, 13)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>K : Symbol(K, Decl(mappedTypeErrors.ts, 112, 13)) >T : Symbol(T, Decl(mappedTypeErrors.ts, 107, 8)) ->props : Symbol(props, Decl(mappedTypeErrors.ts, 109, 32)) +>props : Symbol(props, Decl(mappedTypeErrors.ts, 112, 32)) >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) >T : Symbol(T, Decl(mappedTypeErrors.ts, 107, 8)) ->K : Symbol(K, Decl(mappedTypeErrors.ts, 109, 13)) +>K : Symbol(K, Decl(mappedTypeErrors.ts, 112, 13)) for (let k in props) { ->k : Symbol(k, Decl(mappedTypeErrors.ts, 110, 16)) ->props : Symbol(props, Decl(mappedTypeErrors.ts, 109, 32)) +>k : Symbol(k, Decl(mappedTypeErrors.ts, 113, 16)) +>props : Symbol(props, Decl(mappedTypeErrors.ts, 112, 32)) this.state[k] = props[k]; >this.state : Symbol(C.state, Decl(mappedTypeErrors.ts, 107, 12)) >this : Symbol(C, Decl(mappedTypeErrors.ts, 105, 27)) >state : Symbol(C.state, Decl(mappedTypeErrors.ts, 107, 12)) ->k : Symbol(k, Decl(mappedTypeErrors.ts, 110, 16)) ->props : Symbol(props, Decl(mappedTypeErrors.ts, 109, 32)) ->k : Symbol(k, Decl(mappedTypeErrors.ts, 110, 16)) +>k : Symbol(k, Decl(mappedTypeErrors.ts, 113, 16)) +>props : Symbol(props, Decl(mappedTypeErrors.ts, 112, 32)) +>k : Symbol(k, Decl(mappedTypeErrors.ts, 113, 16)) } } } -let c = new C(); ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) +let c = new C({ a: "hello", b: 42 }); +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) >C : Symbol(C, Decl(mappedTypeErrors.ts, 105, 27)) >Foo : Symbol(Foo, Decl(mappedTypeErrors.ts, 83, 1)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 119, 20)) +>b : Symbol(b, Decl(mappedTypeErrors.ts, 119, 32)) c.setState({ a: "test", b: 43 }); ->c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->a : Symbol(a, Decl(mappedTypeErrors.ts, 117, 12)) ->b : Symbol(b, Decl(mappedTypeErrors.ts, 117, 23)) +>c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 120, 12)) +>b : Symbol(b, Decl(mappedTypeErrors.ts, 120, 23)) c.setState({ a: "hi" }); ->c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->a : Symbol(a, Decl(mappedTypeErrors.ts, 118, 12)) +>c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 121, 12)) c.setState({ b: undefined }); ->c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->b : Symbol(b, Decl(mappedTypeErrors.ts, 119, 12)) +>c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>b : Symbol(b, Decl(mappedTypeErrors.ts, 122, 12)) >undefined : Symbol(undefined) c.setState({ }); ->c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) +>c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) c.setState(foo); ->c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) +>c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) >foo : Symbol(foo, Decl(mappedTypeErrors.ts, 98, 3)) c.setState({ a: undefined }); // Error ->c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->a : Symbol(a, Decl(mappedTypeErrors.ts, 122, 12)) +>c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 125, 12)) >undefined : Symbol(undefined) c.setState({ c: true }); // Error ->c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 116, 3)) ->setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 108, 13)) ->c : Symbol(c, Decl(mappedTypeErrors.ts, 123, 12)) +>c.setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 119, 3)) +>setState : Symbol(C.setState, Decl(mappedTypeErrors.ts, 111, 5)) +>c : Symbol(c, Decl(mappedTypeErrors.ts, 126, 12)) type T2 = { a?: number, [key: string]: any }; ->T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 123, 24)) ->a : Symbol(a, Decl(mappedTypeErrors.ts, 125, 11)) ->key : Symbol(key, Decl(mappedTypeErrors.ts, 125, 25)) +>T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 126, 24)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 128, 11)) +>key : Symbol(key, Decl(mappedTypeErrors.ts, 128, 25)) let x1: T2 = { a: 'no' }; // Error ->x1 : Symbol(x1, Decl(mappedTypeErrors.ts, 127, 3)) ->T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 123, 24)) ->a : Symbol(a, Decl(mappedTypeErrors.ts, 127, 14)) +>x1 : Symbol(x1, Decl(mappedTypeErrors.ts, 130, 3)) +>T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 126, 24)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 130, 14)) let x2: Partial = { a: 'no' }; // Error ->x2 : Symbol(x2, Decl(mappedTypeErrors.ts, 128, 3)) +>x2 : Symbol(x2, Decl(mappedTypeErrors.ts, 131, 3)) >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) ->T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 123, 24)) ->a : Symbol(a, Decl(mappedTypeErrors.ts, 128, 23)) +>T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 126, 24)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 131, 23)) let x3: { [P in keyof T2]: T2[P]} = { a: 'no' }; // Error ->x3 : Symbol(x3, Decl(mappedTypeErrors.ts, 129, 3)) ->P : Symbol(P, Decl(mappedTypeErrors.ts, 129, 11)) ->T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 123, 24)) ->T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 123, 24)) ->P : Symbol(P, Decl(mappedTypeErrors.ts, 129, 11)) ->a : Symbol(a, Decl(mappedTypeErrors.ts, 129, 37)) +>x3 : Symbol(x3, Decl(mappedTypeErrors.ts, 132, 3)) +>P : Symbol(P, Decl(mappedTypeErrors.ts, 132, 11)) +>T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 126, 24)) +>T2 : Symbol(T2, Decl(mappedTypeErrors.ts, 126, 24)) +>P : Symbol(P, Decl(mappedTypeErrors.ts, 132, 11)) +>a : Symbol(a, Decl(mappedTypeErrors.ts, 132, 37)) // Repro from #13044 type Foo2 = { ->Foo2 : Symbol(Foo2, Decl(mappedTypeErrors.ts, 129, 48)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 133, 10)) ->F : Symbol(F, Decl(mappedTypeErrors.ts, 133, 12)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 133, 10)) +>Foo2 : Symbol(Foo2, Decl(mappedTypeErrors.ts, 132, 48)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 136, 10)) +>F : Symbol(F, Decl(mappedTypeErrors.ts, 136, 12)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 136, 10)) pf: {[P in F]?: T[P]}, ->pf : Symbol(pf, Decl(mappedTypeErrors.ts, 133, 35)) ->P : Symbol(P, Decl(mappedTypeErrors.ts, 134, 10)) ->F : Symbol(F, Decl(mappedTypeErrors.ts, 133, 12)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 133, 10)) ->P : Symbol(P, Decl(mappedTypeErrors.ts, 134, 10)) +>pf : Symbol(pf, Decl(mappedTypeErrors.ts, 136, 35)) +>P : Symbol(P, Decl(mappedTypeErrors.ts, 137, 10)) +>F : Symbol(F, Decl(mappedTypeErrors.ts, 136, 12)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 136, 10)) +>P : Symbol(P, Decl(mappedTypeErrors.ts, 137, 10)) pt: {[P in T]?: T[P]}, // note: should be in keyof T ->pt : Symbol(pt, Decl(mappedTypeErrors.ts, 134, 26)) ->P : Symbol(P, Decl(mappedTypeErrors.ts, 135, 10)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 133, 10)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 133, 10)) ->P : Symbol(P, Decl(mappedTypeErrors.ts, 135, 10)) +>pt : Symbol(pt, Decl(mappedTypeErrors.ts, 137, 26)) +>P : Symbol(P, Decl(mappedTypeErrors.ts, 138, 10)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 136, 10)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 136, 10)) +>P : Symbol(P, Decl(mappedTypeErrors.ts, 138, 10)) }; type O = {x: number, y: boolean}; ->O : Symbol(O, Decl(mappedTypeErrors.ts, 136, 2)) ->x : Symbol(x, Decl(mappedTypeErrors.ts, 137, 10)) ->y : Symbol(y, Decl(mappedTypeErrors.ts, 137, 20)) +>O : Symbol(O, Decl(mappedTypeErrors.ts, 139, 2)) +>x : Symbol(x, Decl(mappedTypeErrors.ts, 140, 10)) +>y : Symbol(y, Decl(mappedTypeErrors.ts, 140, 20)) let o: O = {x: 5, y: false}; ->o : Symbol(o, Decl(mappedTypeErrors.ts, 138, 3)) ->O : Symbol(O, Decl(mappedTypeErrors.ts, 136, 2)) ->x : Symbol(x, Decl(mappedTypeErrors.ts, 138, 12)) ->y : Symbol(y, Decl(mappedTypeErrors.ts, 138, 17)) +>o : Symbol(o, Decl(mappedTypeErrors.ts, 141, 3)) +>O : Symbol(O, Decl(mappedTypeErrors.ts, 139, 2)) +>x : Symbol(x, Decl(mappedTypeErrors.ts, 141, 12)) +>y : Symbol(y, Decl(mappedTypeErrors.ts, 141, 17)) let f: Foo2 = { ->f : Symbol(f, Decl(mappedTypeErrors.ts, 139, 3)) ->Foo2 : Symbol(Foo2, Decl(mappedTypeErrors.ts, 129, 48)) ->O : Symbol(O, Decl(mappedTypeErrors.ts, 136, 2)) +>f : Symbol(f, Decl(mappedTypeErrors.ts, 142, 3)) +>Foo2 : Symbol(Foo2, Decl(mappedTypeErrors.ts, 132, 48)) +>O : Symbol(O, Decl(mappedTypeErrors.ts, 139, 2)) pf: {x: 7}, ->pf : Symbol(pf, Decl(mappedTypeErrors.ts, 139, 23)) ->x : Symbol(x, Decl(mappedTypeErrors.ts, 140, 9)) +>pf : Symbol(pf, Decl(mappedTypeErrors.ts, 142, 23)) +>x : Symbol(x, Decl(mappedTypeErrors.ts, 143, 9)) pt: {x: 7, y: false}, ->pt : Symbol(pt, Decl(mappedTypeErrors.ts, 140, 15)) ->x : Symbol(x, Decl(mappedTypeErrors.ts, 141, 9)) ->y : Symbol(y, Decl(mappedTypeErrors.ts, 141, 14)) +>pt : Symbol(pt, Decl(mappedTypeErrors.ts, 143, 15)) +>x : Symbol(x, Decl(mappedTypeErrors.ts, 144, 9)) +>y : Symbol(y, Decl(mappedTypeErrors.ts, 144, 14)) }; // Repro from #28170 function test1(obj: Pick) { ->test1 : Symbol(test1, Decl(mappedTypeErrors.ts, 142, 2)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 146, 15)) ->K : Symbol(K, Decl(mappedTypeErrors.ts, 146, 17)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 146, 15)) ->obj : Symbol(obj, Decl(mappedTypeErrors.ts, 146, 37)) +>test1 : Symbol(test1, Decl(mappedTypeErrors.ts, 145, 2)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 149, 15)) +>K : Symbol(K, Decl(mappedTypeErrors.ts, 149, 17)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 149, 15)) +>obj : Symbol(obj, Decl(mappedTypeErrors.ts, 149, 37)) >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 146, 15)) ->K : Symbol(K, Decl(mappedTypeErrors.ts, 146, 17)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 149, 15)) +>K : Symbol(K, Decl(mappedTypeErrors.ts, 149, 17)) let x = obj.foo; // Error ->x : Symbol(x, Decl(mappedTypeErrors.ts, 147, 7)) ->obj : Symbol(obj, Decl(mappedTypeErrors.ts, 146, 37)) +>x : Symbol(x, Decl(mappedTypeErrors.ts, 150, 7)) +>obj : Symbol(obj, Decl(mappedTypeErrors.ts, 149, 37)) } function test2(obj: Record) { ->test2 : Symbol(test2, Decl(mappedTypeErrors.ts, 148, 1)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 150, 15)) ->K : Symbol(K, Decl(mappedTypeErrors.ts, 150, 17)) ->T : Symbol(T, Decl(mappedTypeErrors.ts, 150, 15)) ->obj : Symbol(obj, Decl(mappedTypeErrors.ts, 150, 37)) +>test2 : Symbol(test2, Decl(mappedTypeErrors.ts, 151, 1)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 153, 15)) +>K : Symbol(K, Decl(mappedTypeErrors.ts, 153, 17)) +>T : Symbol(T, Decl(mappedTypeErrors.ts, 153, 15)) +>obj : Symbol(obj, Decl(mappedTypeErrors.ts, 153, 37)) >Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) ->K : Symbol(K, Decl(mappedTypeErrors.ts, 150, 17)) +>K : Symbol(K, Decl(mappedTypeErrors.ts, 153, 17)) let x = obj.foo; // Error ->x : Symbol(x, Decl(mappedTypeErrors.ts, 151, 7)) ->obj : Symbol(obj, Decl(mappedTypeErrors.ts, 150, 37)) +>x : Symbol(x, Decl(mappedTypeErrors.ts, 154, 7)) +>obj : Symbol(obj, Decl(mappedTypeErrors.ts, 153, 37)) } diff --git a/tests/baselines/reference/mappedTypeErrors.types b/tests/baselines/reference/mappedTypeErrors.types index 32839343182fc..8e3cc57116da1 100644 --- a/tests/baselines/reference/mappedTypeErrors.types +++ b/tests/baselines/reference/mappedTypeErrors.types @@ -538,6 +538,22 @@ class C { >state : T > : ^ + constructor(initialState: T) { +>initialState : T +> : ^ + + this.state = initialState; +>this.state = initialState : T +> : ^ +>this.state : T +> : ^ +>this : this +> : ^^^^ +>state : T +> : ^ +>initialState : T +> : ^ + } setState(props: Pick) { >setState : (props: Pick) => void > : ^ ^^^^^^^^^ ^^ ^^ ^^^^^^^^^ @@ -573,13 +589,23 @@ class C { } } -let c = new C(); +let c = new C({ a: "hello", b: 42 }); >c : C > : ^^^^^^ ->new C() : C -> : ^^^^^^ +>new C({ a: "hello", b: 42 }) : C +> : ^^^^^^ >C : typeof C > : ^^^^^^^^ +>{ a: "hello", b: 42 } : { a: string; b: number; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : string +> : ^^^^^^ +>"hello" : "hello" +> : ^^^^^^^ +>b : number +> : ^^^^^^ +>42 : 42 +> : ^^ c.setState({ a: "test", b: 43 }); >c.setState({ a: "test", b: 43 }) : void diff --git a/tests/baselines/reference/objectSpreadNegative.errors.txt b/tests/baselines/reference/objectSpreadNegative.errors.txt index 860b430be4bd3..248cf36e66580 100644 --- a/tests/baselines/reference/objectSpreadNegative.errors.txt +++ b/tests/baselines/reference/objectSpreadNegative.errors.txt @@ -34,7 +34,7 @@ objectSpreadNegative.ts(74,11): error TS2339: Property 'a' does not exist on typ private x?: number; } class PublicX { - public x: number; + public x: number = 42; } declare let publicX: PublicX; declare let privateOptionalX: PrivateOptionalX; diff --git a/tests/baselines/reference/objectSpreadNegative.js b/tests/baselines/reference/objectSpreadNegative.js index 01c626ac93e03..474b76dd8cfc0 100644 --- a/tests/baselines/reference/objectSpreadNegative.js +++ b/tests/baselines/reference/objectSpreadNegative.js @@ -8,7 +8,7 @@ class PrivateOptionalX { private x?: number; } class PublicX { - public x: number; + public x: number = 42; } declare let publicX: PublicX; declare let privateOptionalX: PrivateOptionalX; @@ -99,6 +99,7 @@ var PrivateOptionalX = /** @class */ (function () { }()); var PublicX = /** @class */ (function () { function PublicX() { + this.x = 42; } return PublicX; }()); diff --git a/tests/baselines/reference/objectSpreadNegative.symbols b/tests/baselines/reference/objectSpreadNegative.symbols index 55bc35f60e197..2862a1b864548 100644 --- a/tests/baselines/reference/objectSpreadNegative.symbols +++ b/tests/baselines/reference/objectSpreadNegative.symbols @@ -16,7 +16,7 @@ class PrivateOptionalX { class PublicX { >PublicX : Symbol(PublicX, Decl(objectSpreadNegative.ts, 5, 1)) - public x: number; + public x: number = 42; >x : Symbol(PublicX.x, Decl(objectSpreadNegative.ts, 6, 15)) } declare let publicX: PublicX; diff --git a/tests/baselines/reference/objectSpreadNegative.types b/tests/baselines/reference/objectSpreadNegative.types index 5a228136893ef..0e1c4abe618c2 100644 --- a/tests/baselines/reference/objectSpreadNegative.types +++ b/tests/baselines/reference/objectSpreadNegative.types @@ -28,9 +28,11 @@ class PublicX { >PublicX : PublicX > : ^^^^^^^ - public x: number; + public x: number = 42; >x : number > : ^^^^^^ +>42 : 42 +> : ^^ } declare let publicX: PublicX; >publicX : PublicX diff --git a/tests/baselines/reference/optionalMethods.js b/tests/baselines/reference/optionalMethods.js index b82fed9387b8f..c621119f5a591 100644 --- a/tests/baselines/reference/optionalMethods.js +++ b/tests/baselines/reference/optionalMethods.js @@ -19,7 +19,7 @@ function test1(x: Foo) { } class Bar { - a: number; + a: number = 0; b?: number; c? = 2; constructor(public d?: number, public e = 10) {} @@ -88,6 +88,7 @@ var Bar = /** @class */ (function () { if (e === void 0) { e = 10; } this.d = d; this.e = e; + this.a = 0; this.c = 2; } Bar.prototype.f = function () { diff --git a/tests/baselines/reference/optionalMethods.symbols b/tests/baselines/reference/optionalMethods.symbols index 806d7d9043571..87e52a3b2a323 100644 --- a/tests/baselines/reference/optionalMethods.symbols +++ b/tests/baselines/reference/optionalMethods.symbols @@ -70,11 +70,11 @@ function test1(x: Foo) { class Bar { >Bar : Symbol(Bar, Decl(optionalMethods.ts, 15, 1)) - a: number; + a: number = 0; >a : Symbol(Bar.a, Decl(optionalMethods.ts, 17, 11)) b?: number; ->b : Symbol(Bar.b, Decl(optionalMethods.ts, 18, 14)) +>b : Symbol(Bar.b, Decl(optionalMethods.ts, 18, 18)) c? = 2; >c : Symbol(Bar.c, Decl(optionalMethods.ts, 19, 15)) @@ -109,9 +109,9 @@ function test2(x: Bar) { >a : Symbol(Bar.a, Decl(optionalMethods.ts, 17, 11)) x.b; ->x.b : Symbol(Bar.b, Decl(optionalMethods.ts, 18, 14)) +>x.b : Symbol(Bar.b, Decl(optionalMethods.ts, 18, 18)) >x : Symbol(x, Decl(optionalMethods.ts, 31, 15)) ->b : Symbol(Bar.b, Decl(optionalMethods.ts, 18, 14)) +>b : Symbol(Bar.b, Decl(optionalMethods.ts, 18, 18)) x.c; >x.c : Symbol(Bar.c, Decl(optionalMethods.ts, 19, 15)) diff --git a/tests/baselines/reference/optionalMethods.types b/tests/baselines/reference/optionalMethods.types index 7230b9e6cfb01..c76a6dae6a6ff 100644 --- a/tests/baselines/reference/optionalMethods.types +++ b/tests/baselines/reference/optionalMethods.types @@ -116,9 +116,11 @@ class Bar { >Bar : Bar > : ^^^ - a: number; + a: number = 0; >a : number > : ^^^^^^ +>0 : 0 +> : ^ b?: number; >b : number | undefined diff --git a/tests/baselines/reference/optionalParameterProperty.errors.txt b/tests/baselines/reference/optionalParameterProperty.errors.txt index 8d0418dc6208e..cd7fb6f9f6f4e 100644 --- a/tests/baselines/reference/optionalParameterProperty.errors.txt +++ b/tests/baselines/reference/optionalParameterProperty.errors.txt @@ -6,7 +6,7 @@ optionalParameterProperty.ts(5,7): error TS2415: Class 'D' incorrectly extends b ==== optionalParameterProperty.ts (1 errors) ==== class C { - p: number; + p: number = 0; } class D extends C { diff --git a/tests/baselines/reference/optionalParameterProperty.js b/tests/baselines/reference/optionalParameterProperty.js index 071841946d2a4..43589fcd22e86 100644 --- a/tests/baselines/reference/optionalParameterProperty.js +++ b/tests/baselines/reference/optionalParameterProperty.js @@ -2,7 +2,7 @@ //// [optionalParameterProperty.ts] class C { - p: number; + p: number = 0; } class D extends C { @@ -30,6 +30,7 @@ var __extends = (this && this.__extends) || (function () { })(); var C = /** @class */ (function () { function C() { + this.p = 0; } return C; }()); diff --git a/tests/baselines/reference/optionalParameterProperty.symbols b/tests/baselines/reference/optionalParameterProperty.symbols index fac6b778ef12e..ccbb8ec3ea740 100644 --- a/tests/baselines/reference/optionalParameterProperty.symbols +++ b/tests/baselines/reference/optionalParameterProperty.symbols @@ -4,7 +4,7 @@ class C { >C : Symbol(C, Decl(optionalParameterProperty.ts, 0, 0)) - p: number; + p: number = 0; >p : Symbol(C.p, Decl(optionalParameterProperty.ts, 0, 9)) } diff --git a/tests/baselines/reference/optionalParameterProperty.types b/tests/baselines/reference/optionalParameterProperty.types index febddfe677bc4..602be37c049e0 100644 --- a/tests/baselines/reference/optionalParameterProperty.types +++ b/tests/baselines/reference/optionalParameterProperty.types @@ -5,9 +5,11 @@ class C { >C : C > : ^ - p: number; + p: number = 0; >p : number > : ^^^^^^ +>0 : 0 +> : ^ } class D extends C { diff --git a/tests/baselines/reference/typeGuardsNestedAssignments.js b/tests/baselines/reference/typeGuardsNestedAssignments.js index e195cde18833c..8534f78d9d4f3 100644 --- a/tests/baselines/reference/typeGuardsNestedAssignments.js +++ b/tests/baselines/reference/typeGuardsNestedAssignments.js @@ -2,7 +2,7 @@ //// [typeGuardsNestedAssignments.ts] class Foo { - x: string; + x: string = ""; } declare function getFooOrNull(): Foo | null; @@ -50,6 +50,7 @@ while ((match = re.exec("xxx")) != null) { //// [typeGuardsNestedAssignments.js] var Foo = /** @class */ (function () { function Foo() { + this.x = ""; } return Foo; }()); diff --git a/tests/baselines/reference/typeGuardsNestedAssignments.symbols b/tests/baselines/reference/typeGuardsNestedAssignments.symbols index 49ccb47beb265..576f1a0a43277 100644 --- a/tests/baselines/reference/typeGuardsNestedAssignments.symbols +++ b/tests/baselines/reference/typeGuardsNestedAssignments.symbols @@ -4,7 +4,7 @@ class Foo { >Foo : Symbol(Foo, Decl(typeGuardsNestedAssignments.ts, 0, 0)) - x: string; + x: string = ""; >x : Symbol(Foo.x, Decl(typeGuardsNestedAssignments.ts, 0, 11)) } diff --git a/tests/baselines/reference/typeGuardsNestedAssignments.types b/tests/baselines/reference/typeGuardsNestedAssignments.types index 069a2e6612356..88d5c0d34fe86 100644 --- a/tests/baselines/reference/typeGuardsNestedAssignments.types +++ b/tests/baselines/reference/typeGuardsNestedAssignments.types @@ -5,9 +5,11 @@ class Foo { >Foo : Foo > : ^^^ - x: string; + x: string = ""; >x : string > : ^^^^^^ +>"" : "" +> : ^^ } declare function getFooOrNull(): Foo | null; diff --git a/tests/baselines/reference/typeGuardsTypeParameters.js b/tests/baselines/reference/typeGuardsTypeParameters.js index cde3d832ff343..273099ee99642 100644 --- a/tests/baselines/reference/typeGuardsTypeParameters.js +++ b/tests/baselines/reference/typeGuardsTypeParameters.js @@ -4,7 +4,7 @@ // Type guards involving type parameters produce intersection types class C { - prop: string; + prop: string = ""; } function f1(x: T) { @@ -40,6 +40,7 @@ function fun(item: { [P in keyof T]: T[P] }) { // Type guards involving type parameters produce intersection types var C = /** @class */ (function () { function C() { + this.prop = ""; } return C; }()); diff --git a/tests/baselines/reference/typeGuardsTypeParameters.symbols b/tests/baselines/reference/typeGuardsTypeParameters.symbols index 4aa4f9447773e..45879e84ea37d 100644 --- a/tests/baselines/reference/typeGuardsTypeParameters.symbols +++ b/tests/baselines/reference/typeGuardsTypeParameters.symbols @@ -6,7 +6,7 @@ class C { >C : Symbol(C, Decl(typeGuardsTypeParameters.ts, 0, 0)) - prop: string; + prop: string = ""; >prop : Symbol(C.prop, Decl(typeGuardsTypeParameters.ts, 2, 9)) } diff --git a/tests/baselines/reference/typeGuardsTypeParameters.types b/tests/baselines/reference/typeGuardsTypeParameters.types index 40614718b6193..174d6a4cc1593 100644 --- a/tests/baselines/reference/typeGuardsTypeParameters.types +++ b/tests/baselines/reference/typeGuardsTypeParameters.types @@ -7,9 +7,11 @@ class C { >C : C > : ^ - prop: string; + prop: string = ""; >prop : string > : ^^^^^^ +>"" : "" +> : ^^ } function f1(x: T) { From 0bdb9dbb865b084654544088fe3e46197c2acec1 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 20:29:18 +0000 Subject: [PATCH 09/21] Fix up any -> unknown in catch variables. --- tests/cases/compiler/defaultOfAnyInStrictNullChecks.ts | 2 +- tests/cases/compiler/duplicateLocalVariable1.ts | 2 +- tests/cases/compiler/implicitAnyInCatch.ts | 1 + tests/cases/compiler/localVariablesReturnedFromCatchBlocks.ts | 1 + tests/cases/compiler/redeclareParameterInCatchBlock.ts | 1 + tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts | 1 + .../cases/conformance/es6/destructuring/destructuringCatch.ts | 1 + .../conformance/jsdoc/jsdocCatchClauseWithTypeAnnotation.ts | 1 + .../conformance/parser/ecmascript5/RealWorld/parserharness.ts | 3 ++- .../statements/tryStatements/catchClauseWithTypeAnnotation.ts | 1 + tests/cases/conformance/types/rest/objectRestCatchES5.ts | 2 ++ 11 files changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/cases/compiler/defaultOfAnyInStrictNullChecks.ts b/tests/cases/compiler/defaultOfAnyInStrictNullChecks.ts index 17568f48029a5..fe1ba0b8ef89c 100644 --- a/tests/cases/compiler/defaultOfAnyInStrictNullChecks.ts +++ b/tests/cases/compiler/defaultOfAnyInStrictNullChecks.ts @@ -1,5 +1,5 @@ // @strictNullChecks: true - +// @useUnknownInCatchVariables: false // Regression test for #8295 function foo() { diff --git a/tests/cases/compiler/duplicateLocalVariable1.ts b/tests/cases/compiler/duplicateLocalVariable1.ts index 10145aa87caed..ba9f302d34c8a 100644 --- a/tests/cases/compiler/duplicateLocalVariable1.ts +++ b/tests/cases/compiler/duplicateLocalVariable1.ts @@ -32,7 +32,7 @@ export class TestRunner { try { testResult = testcase.test(); } - catch (e) { + catch (e: any) { exception = true; testResult = false; if (typeof testcase.errorMessageRegEx === "string") { diff --git a/tests/cases/compiler/implicitAnyInCatch.ts b/tests/cases/compiler/implicitAnyInCatch.ts index 0f3129f5430d1..532f8c2b17821 100644 --- a/tests/cases/compiler/implicitAnyInCatch.ts +++ b/tests/cases/compiler/implicitAnyInCatch.ts @@ -1,4 +1,5 @@ // @noimplicitany: true +// @useUnknownInCatchVariables: false // this should not be an error try { } catch (error) { if (error.number === -2147024809) { } diff --git a/tests/cases/compiler/localVariablesReturnedFromCatchBlocks.ts b/tests/cases/compiler/localVariablesReturnedFromCatchBlocks.ts index ba277773dd8ea..d04ae1e5dad4c 100644 --- a/tests/cases/compiler/localVariablesReturnedFromCatchBlocks.ts +++ b/tests/cases/compiler/localVariablesReturnedFromCatchBlocks.ts @@ -1,3 +1,4 @@ +// @useUnknownInCatchVariables: false function f() { try { } catch (e) { diff --git a/tests/cases/compiler/redeclareParameterInCatchBlock.ts b/tests/cases/compiler/redeclareParameterInCatchBlock.ts index 7f98d68b29d13..bfadd6e378859 100644 --- a/tests/cases/compiler/redeclareParameterInCatchBlock.ts +++ b/tests/cases/compiler/redeclareParameterInCatchBlock.ts @@ -1,3 +1,4 @@ +// @useUnknownInCatchVariables: false // @target: es6 try { diff --git a/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts b/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts index 9083246dd181a..7b5ef4ac60b54 100644 --- a/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts +++ b/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts @@ -1,3 +1,4 @@ +// @useUnknownInCatchVariables: false // @target: es2015 // @noEmitHelpers: true // https://github.com/Microsoft/TypeScript/issues/20461 diff --git a/tests/cases/conformance/es6/destructuring/destructuringCatch.ts b/tests/cases/conformance/es6/destructuring/destructuringCatch.ts index 31afd672084d9..dc2b18e94a31a 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringCatch.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringCatch.ts @@ -1,4 +1,5 @@ // @noImplicitAny: true +// @useUnknownInCatchVariables: false try { throw [0, 1]; diff --git a/tests/cases/conformance/jsdoc/jsdocCatchClauseWithTypeAnnotation.ts b/tests/cases/conformance/jsdoc/jsdocCatchClauseWithTypeAnnotation.ts index b47776eb1d9c4..41049395a8908 100644 --- a/tests/cases/conformance/jsdoc/jsdocCatchClauseWithTypeAnnotation.ts +++ b/tests/cases/conformance/jsdoc/jsdocCatchClauseWithTypeAnnotation.ts @@ -2,6 +2,7 @@ // @checkJs: true // @target: esnext // @noImplicitAny: true +// @useUnknownInCatchVariables: false // @outDir: out // @Filename: foo.js diff --git a/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts b/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts index 5622ca5097594..99b4ad8a10b29 100644 --- a/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts +++ b/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts @@ -1,4 +1,5 @@ -// @lib: es5 +// @useUnknownInCatchVariables: false +// @lib: es5 // // Copyright (c) Microsoft Corporation. All rights reserved. // diff --git a/tests/cases/conformance/statements/tryStatements/catchClauseWithTypeAnnotation.ts b/tests/cases/conformance/statements/tryStatements/catchClauseWithTypeAnnotation.ts index 6f3bd6a4c15db..0a59dc34e2a81 100644 --- a/tests/cases/conformance/statements/tryStatements/catchClauseWithTypeAnnotation.ts +++ b/tests/cases/conformance/statements/tryStatements/catchClauseWithTypeAnnotation.ts @@ -1,3 +1,4 @@ +// @useUnknownInCatchVariables: false type any1 = any; type unknown1 = unknown; diff --git a/tests/cases/conformance/types/rest/objectRestCatchES5.ts b/tests/cases/conformance/types/rest/objectRestCatchES5.ts index 0e568d32b5863..ec7e5b950206f 100644 --- a/tests/cases/conformance/types/rest/objectRestCatchES5.ts +++ b/tests/cases/conformance/types/rest/objectRestCatchES5.ts @@ -1,2 +1,4 @@ +// @useUnknownInCatchVariables: false + let a = 1, b = 2; try {} catch ({ a, ...b }) {} \ No newline at end of file From fc4aa545d85a2f68f60647ba554203b62eacfd5f Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 20:33:38 +0000 Subject: [PATCH 10/21] Accepted baselines. --- tests/baselines/reference/duplicateLocalVariable1.errors.txt | 2 +- tests/baselines/reference/duplicateLocalVariable1.js | 2 +- tests/baselines/reference/duplicateLocalVariable1.symbols | 2 +- tests/baselines/reference/duplicateLocalVariable1.types | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/baselines/reference/duplicateLocalVariable1.errors.txt b/tests/baselines/reference/duplicateLocalVariable1.errors.txt index 649778dea5e20..5d0ced61fb776 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.errors.txt +++ b/tests/baselines/reference/duplicateLocalVariable1.errors.txt @@ -35,7 +35,7 @@ duplicateLocalVariable1.ts(184,37): error TS2356: An arithmetic operand must be try { testResult = testcase.test(); } - catch (e) { + catch (e: any) { exception = true; testResult = false; if (typeof testcase.errorMessageRegEx === "string") { diff --git a/tests/baselines/reference/duplicateLocalVariable1.js b/tests/baselines/reference/duplicateLocalVariable1.js index c72d618466d63..9dc20b390aeb9 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.js +++ b/tests/baselines/reference/duplicateLocalVariable1.js @@ -32,7 +32,7 @@ export class TestRunner { try { testResult = testcase.test(); } - catch (e) { + catch (e: any) { exception = true; testResult = false; if (typeof testcase.errorMessageRegEx === "string") { diff --git a/tests/baselines/reference/duplicateLocalVariable1.symbols b/tests/baselines/reference/duplicateLocalVariable1.symbols index 5d89389b1f8f2..974db0a732df0 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.symbols +++ b/tests/baselines/reference/duplicateLocalVariable1.symbols @@ -91,7 +91,7 @@ export class TestRunner { >testcase : Symbol(testcase, Decl(duplicateLocalVariable1.ts, 26, 15)) >test : Symbol(TestCase.test, Decl(duplicateLocalVariable1.ts, 9, 37)) } - catch (e) { + catch (e: any) { >e : Symbol(e, Decl(duplicateLocalVariable1.ts, 31, 19)) exception = true; diff --git a/tests/baselines/reference/duplicateLocalVariable1.types b/tests/baselines/reference/duplicateLocalVariable1.types index 30c540696609c..76e2c907796f8 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.types +++ b/tests/baselines/reference/duplicateLocalVariable1.types @@ -163,7 +163,7 @@ export class TestRunner { >test : () => boolean > : ^^^^^^ } - catch (e) { + catch (e: any) { >e : any > : ^^^ From c632c6a89324e08f0a3c15fb7d0b7d248875dd08 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 13 Jan 2026 23:50:40 +0000 Subject: [PATCH 11/21] Turn off `strict`/`noImplicitAny` on some tests. --- tests/cases/compiler/ClassDeclaration10.ts | 1 + tests/cases/compiler/ClassDeclaration13.ts | 1 + tests/cases/compiler/ClassDeclaration14.ts | 1 + tests/cases/compiler/ClassDeclaration15.ts | 1 + tests/cases/compiler/ClassDeclaration21.ts | 1 + tests/cases/compiler/ClassDeclaration22.ts | 1 + tests/cases/compiler/ClassDeclaration26.ts | 1 + tests/cases/compiler/ClassDeclaration9.ts | 1 + .../es6/functionDeclarations/FunctionDeclaration10_es6.ts | 1 + .../cases/conformance/expressions/arrayLiterals/arrayLiterals.ts | 1 + 10 files changed, 10 insertions(+) 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/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/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], ['']]; From 614be3bcae8b52a4781f2763f9020a80e91b6f26 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 14 Jan 2026 01:31:15 +0000 Subject: [PATCH 12/21] Add `@strict: false` to most tests that have changes in `.errors.txt` --- .../ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts | 1 + tests/cases/compiler/accessorDeclarationEmitJs.ts | 1 + tests/cases/compiler/accessorParameterAccessibilityModifier.ts | 1 + tests/cases/compiler/accessorWithInitializer.ts | 1 + tests/cases/compiler/accessorWithRestParam.ts | 1 + tests/cases/compiler/accessorWithoutBody1.ts | 1 + tests/cases/compiler/accessorWithoutBody2.ts | 1 + tests/cases/compiler/accessorsEmit.ts | 1 + tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports10.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports7.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports8.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports9.ts | 1 + tests/cases/compiler/ambientClassDeclarationWithExtends.ts | 1 + tests/cases/compiler/ambientClassOverloadForFunction.ts | 1 + tests/cases/compiler/ambientFundule.ts | 1 + tests/cases/compiler/ambientWithStatements.ts | 1 + tests/cases/compiler/ambiguousGenericAssertion1.ts | 1 + tests/cases/compiler/ambiguousOverload.ts | 1 + tests/cases/compiler/ambiguousOverloadResolution.ts | 1 + tests/cases/compiler/amdLikeInputDeclarationEmit.ts | 1 + tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts | 1 + tests/cases/compiler/anyIdenticalToItself.ts | 1 + tests/cases/compiler/argumentsAsPropertyName.ts | 1 + tests/cases/compiler/argumentsAsPropertyName2.ts | 1 + .../cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts | 1 + tests/cases/compiler/argumentsObjectCreatesRestForJs.ts | 1 + tests/cases/compiler/argumentsPropertyNameInJsMode1.ts | 1 + tests/cases/compiler/argumentsPropertyNameInJsMode2.ts | 1 + tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts | 1 + tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts | 1 + tests/cases/compiler/arrayAssignmentTest2.ts | 1 + tests/cases/compiler/arrayAssignmentTest4.ts | 1 + tests/cases/compiler/arrayFromAsync.ts | 1 + tests/cases/compiler/arrayIndexWithArrayFails.ts | 1 + .../cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts | 1 + tests/cases/compiler/arrowFunctionErrorSpan.ts | 1 + tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts | 1 + tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts | 1 + tests/cases/compiler/arrowFunctionsMissingTokens.ts | 1 + tests/cases/compiler/asiAbstract.ts | 1 + tests/cases/compiler/asiPublicPrivateProtected.ts | 1 + tests/cases/compiler/assertInWrapSomeTypeParameter.ts | 1 + tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts | 1 + tests/cases/compiler/assignmentCompatForEnums.ts | 1 + .../assignmentCompatInterfaceWithStringIndexSignature.ts | 1 + tests/cases/compiler/assignmentCompatability37.ts | 1 + tests/cases/compiler/assignmentCompatability38.ts | 1 + ...patability_checking-apply-member-off-of-function-interface.ts | 1 + ...mpatability_checking-call-member-off-of-function-interface.ts | 1 + tests/cases/compiler/assignmentNonObjectTypeConstraints.ts | 1 + tests/cases/compiler/assignmentToObjectAndFunction.ts | 1 + tests/cases/compiler/assignmentToReferenceTypes.ts | 1 + tests/cases/compiler/asyncFunctionTempVariableScoping.ts | 1 + tests/cases/compiler/augmentExportEquals1.ts | 1 + tests/cases/compiler/augmentExportEquals1_1.ts | 1 + tests/cases/compiler/augmentExportEquals2.ts | 1 + tests/cases/compiler/augmentExportEquals2_1.ts | 1 + tests/cases/compiler/augmentExportEquals3.ts | 1 + tests/cases/compiler/augmentExportEquals3_1.ts | 1 + tests/cases/compiler/augmentExportEquals4.ts | 1 + tests/cases/compiler/augmentExportEquals4_1.ts | 1 + tests/cases/compiler/augmentExportEquals6.ts | 1 + tests/cases/compiler/augmentExportEquals6_1.ts | 1 + .../compiler/augmentedClassWithPrototypePropertyOnModule.ts | 1 + tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts | 1 + tests/cases/compiler/avoid.ts | 1 + ...ListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts | 1 + tests/cases/compiler/awaitInNonAsyncFunction.ts | 1 + tests/cases/compiler/awaitedTypeCrash.ts | 1 + tests/cases/compiler/awaitedTypeJQuery.ts | 1 + tests/cases/compiler/badArraySyntax.ts | 1 + tests/cases/compiler/baseConstraintOfDecorator.ts | 1 + tests/cases/compiler/bases.ts | 1 + tests/cases/compiler/bestCommonTypeWithContextualTyping.ts | 1 + tests/cases/compiler/bigintIndex.ts | 1 + tests/cases/compiler/bigintWithLib.ts | 1 + tests/cases/compiler/binopAssignmentShouldHaveType.ts | 1 + tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts | 1 + tests/cases/compiler/blockScopedNamespaceDifferentFile.ts | 1 + tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts | 1 + tests/cases/compiler/callOverloads1.ts | 1 + tests/cases/compiler/callOverloads2.ts | 1 + tests/cases/compiler/callOverloads5.ts | 1 + tests/cases/compiler/callbackArgsDifferByOptionality.ts | 1 + tests/cases/compiler/capturedLetConstInLoop1.ts | 1 + tests/cases/compiler/capturedLetConstInLoop10.ts | 1 + tests/cases/compiler/capturedLetConstInLoop10_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop11.ts | 1 + tests/cases/compiler/capturedLetConstInLoop11_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop12.ts | 1 + tests/cases/compiler/capturedLetConstInLoop13.ts | 1 + tests/cases/compiler/capturedLetConstInLoop1_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop2.ts | 1 + tests/cases/compiler/capturedLetConstInLoop2_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop3.ts | 1 + tests/cases/compiler/capturedLetConstInLoop3_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop4.ts | 1 + tests/cases/compiler/capturedLetConstInLoop4_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop5.ts | 1 + tests/cases/compiler/capturedLetConstInLoop5_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop6_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop7.ts | 1 + tests/cases/compiler/capturedLetConstInLoop7_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop9.ts | 1 + tests/cases/compiler/capturedLetConstInLoop9_ES6.ts | 1 + tests/cases/compiler/capturedParametersInInitializers1.ts | 1 + tests/cases/compiler/capturedVarInLoop.ts | 1 + tests/cases/compiler/castExpressionParentheses.ts | 1 + tests/cases/compiler/chainedAssignment1.ts | 1 + tests/cases/compiler/chainedAssignmentChecking.ts | 1 + ...ainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts | 1 + ...inedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts | 1 + tests/cases/compiler/checkInfiniteExpansionTermination.ts | 1 + tests/cases/compiler/checkInfiniteExpansionTermination2.ts | 1 + tests/cases/compiler/checkJsxNotSetError.ts | 1 + ...gObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts | 1 + tests/cases/compiler/classExpressionWithStaticProperties2.ts | 1 + tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts | 1 + tests/cases/compiler/classImplementingInterfaceIndexer.ts | 1 + tests/cases/compiler/classImplementsImportedInterface.ts | 1 + tests/cases/compiler/classMemberInitializerScoping.ts | 1 + tests/cases/compiler/classMemberInitializerScoping2.ts | 1 + tests/cases/compiler/classMemberWithMissingIdentifier.ts | 1 + tests/cases/compiler/classMemberWithMissingIdentifier2.ts | 1 + tests/cases/compiler/classUpdateTests.ts | 1 + tests/cases/compiler/classWithMultipleBaseClasses.ts | 1 + .../cases/compiler/classWithOverloadImplementationOfWrongName.ts | 1 + .../compiler/classWithOverloadImplementationOfWrongName2.ts | 1 + tests/cases/compiler/classdecl.ts | 1 + tests/cases/compiler/cloduleTest2.ts | 1 + tests/cases/compiler/cloduleWithDuplicateMember2.ts | 1 + tests/cases/compiler/collisionArgumentsArrowFunctions.ts | 1 + tests/cases/compiler/collisionArgumentsClassConstructor.ts | 1 + tests/cases/compiler/collisionArgumentsClassMethod.ts | 1 + tests/cases/compiler/collisionArgumentsFunction.ts | 1 + tests/cases/compiler/collisionArgumentsFunctionExpressions.ts | 1 + tests/cases/compiler/collisionArgumentsInType.ts | 1 + tests/cases/compiler/collisionArgumentsInterfaceMembers.ts | 1 + .../cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts | 1 + .../compiler/collisionCodeGenModuleWithConstructorChildren.ts | 1 + .../cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts | 1 + tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts | 1 + tests/cases/compiler/collisionRestParameterArrowFunctions.ts | 1 + tests/cases/compiler/collisionRestParameterClassConstructor.ts | 1 + tests/cases/compiler/collisionRestParameterClassMethod.ts | 1 + tests/cases/compiler/collisionRestParameterFunction.ts | 1 + .../cases/compiler/collisionRestParameterFunctionExpressions.ts | 1 + tests/cases/compiler/collisionRestParameterInType.ts | 1 + tests/cases/compiler/collisionRestParameterInterfaceMembers.ts | 1 + tests/cases/compiler/collisionSuperAndNameResolution.ts | 1 + tests/cases/compiler/collisionSuperAndParameter.ts | 1 + tests/cases/compiler/collisionSuperAndParameter1.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInAccessors.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInConstructor.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInFunction.ts | 1 + .../cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts | 1 + .../cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInProperty.ts | 1 + tests/cases/compiler/collisionThisExpressionAndNameResolution.ts | 1 + tests/cases/compiler/collisionThisExpressionAndParameter.ts | 1 + ...ollisionThisExpressionAndPropertyNameAsConstuctorParameter.ts | 1 + tests/cases/compiler/commentOnAmbientModule.ts | 1 + tests/cases/compiler/commentOnAmbientfunction.ts | 1 + tests/cases/compiler/commentOnSignature1.ts | 1 + tests/cases/compiler/commentsAfterFunctionExpression1.ts | 1 + tests/cases/compiler/commentsAfterSpread.ts | 1 + tests/cases/compiler/commentsBeforeFunctionExpression1.ts | 1 + tests/cases/compiler/commentsCommentParsing.ts | 1 + tests/cases/compiler/commentsInterface.ts | 1 + tests/cases/compiler/commentsOnObjectLiteral2.ts | 1 + tests/cases/compiler/commentsOverloads.ts | 1 + tests/cases/compiler/commentsdoNotEmitComments.ts | 1 + tests/cases/compiler/commentsemitComments.ts | 1 + tests/cases/compiler/commonMissingSemicolons.ts | 1 + tests/cases/compiler/complexNarrowingWithAny.ts | 1 + tests/cases/compiler/complicatedPrivacy.ts | 1 + .../cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts | 1 + tests/cases/compiler/conditionalExpressions2.ts | 1 + tests/cases/compiler/constDeclarations-access.ts | 1 + tests/cases/compiler/constDeclarations-access2.ts | 1 + tests/cases/compiler/constDeclarations-access3.ts | 1 + tests/cases/compiler/constDeclarations-access4.ts | 1 + tests/cases/compiler/constDeclarations-access5.ts | 1 + tests/cases/compiler/constDeclarations-ambient-errors.ts | 1 + tests/cases/compiler/constDeclarations-ambient.ts | 1 + tests/cases/compiler/constDeclarations-errors.ts | 1 + tests/cases/compiler/constDeclarations-es5.ts | 1 + tests/cases/compiler/constDeclarations-invalidContexts.ts | 1 + tests/cases/compiler/constDeclarations-scopes.ts | 1 + tests/cases/compiler/constDeclarations-scopes2.ts | 1 + tests/cases/compiler/constDeclarations-useBeforeDefinition.ts | 1 + tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts | 1 + tests/cases/compiler/constDeclarations-validContexts.ts | 1 + tests/cases/compiler/constDeclarations.ts | 1 + tests/cases/compiler/constDeclarations2.ts | 1 + ...onstraintReferencingTypeParameterFromSameTypeParameterList.ts | 1 + tests/cases/compiler/constructorOverloads7.ts | 1 + tests/cases/compiler/constructorOverloads8.ts | 1 + tests/cases/compiler/constructorStaticParamName.ts | 1 + tests/cases/compiler/constructorStaticParamNameErrors.ts | 1 + tests/cases/compiler/constructorsWithSpecializedSignatures.ts | 1 + .../compiler/contextualSignatureInstatiationContravariance.ts | 1 + .../cases/compiler/contextualSignatureInstatiationCovariance.ts | 1 + tests/cases/compiler/contextualTyping.ts | 1 + .../compiler/contextualTypingArrayDestructuringWithDefaults.ts | 1 + tests/cases/compiler/contextualTypingArrayOfLambdas.ts | 1 + .../cases/compiler/contextualTypingFunctionReturningFunction.ts | 1 + .../cases/compiler/contextualTypingFunctionReturningFunction2.ts | 1 + tests/cases/compiler/contextualTypingOfAccessors.ts | 1 + tests/cases/compiler/contextualTypingOfArrayLiterals1.ts | 1 + tests/cases/compiler/contextualTypingOfConditionalExpression.ts | 1 + tests/cases/compiler/contextualTypingOfConditionalExpression2.ts | 1 + .../compiler/contextualTypingOfGenericFunctionTypedArguments1.ts | 1 + tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts | 1 + .../compiler/contextualTypingOfLambdaWithMultipleSignatures.ts | 1 + .../compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts | 1 + tests/cases/compiler/contextualTypingOfObjectLiterals.ts | 1 + tests/cases/compiler/contextualTypingOfObjectLiterals2.ts | 1 + tests/cases/compiler/contextualTypingOfTooShortOverloads.ts | 1 + .../compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts | 1 + tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts | 1 + tests/cases/compiler/contextuallyTypingOrOperator.ts | 1 + tests/cases/compiler/contextuallyTypingOrOperator2.ts | 1 + tests/cases/compiler/contextuallyTypingOrOperator3.ts | 1 + tests/cases/compiler/controlFlowPropertyDeclarations.ts | 1 + tests/cases/compiler/convertKeywordsYes.ts | 1 + tests/cases/compiler/crashInEmitTokenWithComment.ts | 1 + tests/cases/compiler/crashInresolveReturnStatement.ts | 1 + tests/cases/compiler/crashIntypeCheckInvocationExpression.ts | 1 + tests/cases/compiler/createArray.ts | 1 + tests/cases/compiler/declFileConstructSignatures.ts | 1 + .../compiler/declFileExportAssignmentImportInternalModule.ts | 1 + tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts | 1 + .../compiler/declFileForClassWithPrivateOverloadedFunction.ts | 1 + tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts | 1 + tests/cases/compiler/declFileForInterfaceWithRestParams.ts | 1 + tests/cases/compiler/declFileFunctions.ts | 1 + tests/cases/compiler/declFileImportModuleWithExportAssignment.ts | 1 + tests/cases/compiler/declFileOptionalInterfaceMethod.ts | 1 + tests/cases/compiler/declFilePrivateMethodOverloads.ts | 1 + tests/cases/compiler/declFilePrivateStatic.ts | 1 + tests/cases/compiler/declFileRegressionTests.ts | 1 + .../compiler/declFileRestParametersOfFunctionAndFunctionType.ts | 1 + tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts | 1 + tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts | 1 + .../compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts | 1 + tests/cases/compiler/declFileTypeofFunction.ts | 1 + tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts | 1 + .../compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts | 1 + tests/cases/compiler/declInput-2.ts | 1 + tests/cases/compiler/declInput.ts | 1 + tests/cases/compiler/declInput3.ts | 1 + tests/cases/compiler/declInput4.ts | 1 + tests/cases/compiler/declarationEmitAliasExportStar.ts | 1 + tests/cases/compiler/declarationEmitBindingPatterns.ts | 1 + .../cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts | 1 + tests/cases/compiler/declarationEmitBindingPatternsUnused.ts | 1 + tests/cases/compiler/declarationEmitClassMemberNameConflict.ts | 1 + tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts | 1 + .../compiler/declarationEmitDefaultExportWithStaticAssignment.ts | 1 + tests/cases/compiler/declarationEmitDestructuring2.ts | 1 + tests/cases/compiler/declarationEmitDestructuring3.ts | 1 + tests/cases/compiler/declarationEmitNameConflicts2.ts | 1 + tests/cases/compiler/declarationEmitProtectedMembers.ts | 1 + tests/cases/compiler/declarationMaps.ts | 1 + tests/cases/compiler/declarationMapsMultifile.ts | 1 + tests/cases/compiler/declarationMapsOutFile.ts | 1 + tests/cases/compiler/declarationMapsOutFile2.ts | 1 + tests/cases/compiler/declarationMapsWithSourceMap.ts | 1 + tests/cases/compiler/declarationMapsWithoutDeclaration.ts | 1 + tests/cases/compiler/declarationMerging1.ts | 1 + tests/cases/compiler/declarationMerging2.ts | 1 + tests/cases/compiler/declareAlreadySeen.ts | 1 + tests/cases/compiler/declareFileExportAssignment.ts | 1 + .../declareFileExportAssignmentWithVarFromVariableStatement.ts | 1 + tests/cases/compiler/declaredExternalModule.ts | 1 + .../cases/compiler/declaredExternalModuleWithExportAssignment.ts | 1 + tests/cases/compiler/decoratorMetadataNoStrictNull.ts | 1 + tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision2.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision3.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision4.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision5.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision6.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision7.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision8.ts | 1 + tests/cases/compiler/decoratorReferenceOnOtherProperty.ts | 1 + tests/cases/compiler/decoratorReferences.ts | 1 + tests/cases/compiler/decrementAndIncrementOperators.ts | 1 + tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts | 1 + tests/cases/compiler/defaultArgsInFunctionExpressions.ts | 1 + tests/cases/compiler/defaultArgsInOverloads.ts | 1 + tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts | 1 + tests/cases/compiler/defaultIndexProps2.ts | 1 + tests/cases/compiler/defaultValueInFunctionOverload1.ts | 1 + tests/cases/compiler/defineVariables_useDefineForClassFields.ts | 1 + tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts | 1 + tests/cases/compiler/deleteReadonly.ts | 1 + .../compiler/derivedTypeCallingBaseImplWithOptionalParams.ts | 1 + tests/cases/compiler/destructuringControlFlowNoCrash.ts | 1 + tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts | 1 + .../compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts | 1 + tests/cases/compiler/dontShowCompilerGeneratedMembers.ts | 1 + tests/cases/compiler/dottedModuleName.ts | 1 + tests/cases/compiler/dottedModuleName2.ts | 1 + tests/cases/compiler/downlevelLetConst14.ts | 1 + tests/cases/compiler/downlevelLetConst15.ts | 1 + tests/cases/compiler/downlevelLetConst16.ts | 1 + tests/cases/compiler/downlevelLetConst17.ts | 1 + tests/cases/compiler/downlevelLetConst18.ts | 1 + tests/cases/compiler/downlevelLetConst19.ts | 1 + tests/cases/compiler/duplicateClassElements.ts | 1 + tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts | 1 + .../compiler/duplicateIdentifiersAcrossContainerBoundaries.ts | 1 + tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts | 1 + .../compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts | 1 + tests/cases/compiler/emitDecoratorMetadata_restArgs.ts | 1 + tests/cases/compiler/emitThisInObjectLiteralGetter.ts | 1 + tests/cases/compiler/emptyArgumentsListComment.ts | 1 + tests/cases/compiler/enumBasics1.ts | 1 + tests/cases/compiler/enumBasics2.ts | 1 + tests/cases/compiler/enumBasics3.ts | 1 + tests/cases/compiler/enumIndexer.ts | 1 + tests/cases/compiler/errorElaboration.ts | 1 + .../errorElaborationDivesIntoApparentlyPresentPropsOnly.ts | 1 + tests/cases/compiler/errorForConflictingExportEqualsValue.ts | 1 + tests/cases/compiler/errorMessagesIntersectionTypes03.ts | 1 + tests/cases/compiler/errorMessagesIntersectionTypes04.ts | 1 + tests/cases/compiler/errorsInGenericTypeReference.ts | 1 + tests/cases/compiler/es5-asyncFunction.ts | 1 + tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts | 1 + tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts | 1 + tests/cases/compiler/es5-asyncFunctionCallExpressions.ts | 1 + tests/cases/compiler/es5-asyncFunctionConditionals.ts | 1 + tests/cases/compiler/es5-asyncFunctionDoStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionElementAccess.ts | 1 + tests/cases/compiler/es5-asyncFunctionForInStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionForOfStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionForStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionHoisting.ts | 1 + tests/cases/compiler/es5-asyncFunctionIfStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts | 1 + tests/cases/compiler/es5-asyncFunctionNestedLoops.ts | 1 + tests/cases/compiler/es5-asyncFunctionNewExpressions.ts | 1 + tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts | 1 + tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts | 1 + tests/cases/compiler/es5-asyncFunctionReturnStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionTryStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionWhileStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionWithStatements.ts | 1 + tests/cases/compiler/es5-commonjs7.ts | 1 + tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts | 1 + tests/cases/compiler/es6ClassTest.ts | 1 + tests/cases/compiler/es6ClassTest2.ts | 1 + tests/cases/compiler/es6ClassTest3.ts | 1 + tests/cases/compiler/es6ClassTest4.ts | 1 + tests/cases/compiler/es6ClassTest5.ts | 1 + tests/cases/compiler/es6ClassTest7.ts | 1 + tests/cases/compiler/es6ClassTest8.ts | 1 + tests/cases/compiler/es6ClassTest9.ts | 1 + tests/cases/compiler/es6ExportEqualsInterop.ts | 1 + tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts | 1 + tests/cases/compiler/evalAfter0.ts | 1 + tests/cases/compiler/excessPropertyCheckWithSpread.ts | 1 + tests/cases/compiler/expandoFunctionContextualTypesJs.ts | 1 + tests/cases/compiler/expandoFunctionNestedAssigments.ts | 1 + tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts | 1 + tests/cases/compiler/exportAlreadySeen.ts | 1 + tests/cases/compiler/exportAsNamespace.d.ts | 1 + tests/cases/compiler/exportAssignmentError.ts | 1 + tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts | 1 + tests/cases/compiler/exportAssignmentInternalModule.ts | 1 + .../compiler/exportAssignmentWithImportStatementPrivacyError.ts | 1 + tests/cases/compiler/exportAssignmentWithPrivacyError.ts | 1 + tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts | 1 + tests/cases/compiler/exportDeclareClass1.ts | 1 + tests/cases/compiler/exportEqualErrorType.ts | 1 + tests/cases/compiler/exportEqualMemberMissing.ts | 1 + tests/cases/compiler/exportImportMultipleFiles.ts | 1 + .../compiler/exportSpecifierAndExportedMemberDeclaration.ts | 1 + tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts | 1 + tests/cases/compiler/exportStarForValues.ts | 1 + tests/cases/compiler/exportStarForValues10.ts | 1 + tests/cases/compiler/exportStarForValues2.ts | 1 + tests/cases/compiler/exportStarForValues3.ts | 1 + tests/cases/compiler/exportStarForValues4.ts | 1 + tests/cases/compiler/exportStarForValues5.ts | 1 + tests/cases/compiler/exportStarForValues6.ts | 1 + tests/cases/compiler/exportStarForValues7.ts | 1 + tests/cases/compiler/exportStarForValues8.ts | 1 + tests/cases/compiler/exportStarForValues9.ts | 1 + tests/cases/compiler/exportStarForValuesInSystem.ts | 1 + tests/cases/compiler/exportStarFromEmptyModule.ts | 1 + tests/cases/compiler/exportedBlockScopedDeclarations.ts | 1 + tests/cases/compiler/expressionTypeNodeShouldError.ts | 1 + .../compiler/expressionsForbiddenInParameterInitializers.ts | 1 + tests/cases/compiler/extendArray.ts | 1 + tests/cases/compiler/extendGlobalThis.ts | 1 + tests/cases/compiler/extendGlobalThis2.ts | 1 + tests/cases/compiler/extendNonClassSymbol2.ts | 1 + tests/cases/compiler/extendsUntypedModule.ts | 1 + tests/cases/compiler/extension.ts | 1 + tests/cases/compiler/externSemantics.ts | 1 + tests/cases/compiler/externSyntax.ts | 1 + tests/cases/compiler/externalModuleImmutableBindings.ts | 1 + .../externalModuleRefernceResolutionOrderInImportDeclaration.ts | 1 + tests/cases/compiler/fallFromLastCase1.ts | 1 + tests/cases/compiler/fallFromLastCase2.ts | 1 + tests/cases/compiler/fatarrowfunctions.ts | 1 + tests/cases/compiler/fatarrowfunctionsErrors.ts | 1 + .../compiler/fatarrowfunctionsInFunctionParameterDefaults.ts | 1 + tests/cases/compiler/fatarrowfunctionsInFunctions.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts | 1 + tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts | 1 + tests/cases/compiler/findLast.ts | 1 + tests/cases/compiler/fixingTypeParametersRepeatedly1.ts | 1 + tests/cases/compiler/fixingTypeParametersRepeatedly2.ts | 1 + tests/cases/compiler/fixingTypeParametersRepeatedly3.ts | 1 + tests/cases/compiler/forIn.ts | 1 + tests/cases/compiler/forIn2.ts | 1 + tests/cases/compiler/forInModule.ts | 1 + tests/cases/compiler/forInStatement1.ts | 1 + tests/cases/compiler/forInStatement2.ts | 1 + tests/cases/compiler/forInStatement3.ts | 1 + tests/cases/compiler/forInStatement4.ts | 1 + tests/cases/compiler/forInStatement5.ts | 1 + tests/cases/compiler/forInStatement6.ts | 1 + tests/cases/compiler/forInStatement7.ts | 1 + tests/cases/compiler/forStatementInnerComments.ts | 1 + tests/cases/compiler/funClodule.ts | 1 + tests/cases/compiler/funcdecl.ts | 1 + tests/cases/compiler/functionAssignment.ts | 1 + tests/cases/compiler/functionAssignmentError.ts | 1 + tests/cases/compiler/functionCall18.ts | 1 + tests/cases/compiler/functionCall5.ts | 1 + tests/cases/compiler/functionCall7.ts | 1 + .../functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts | 1 + .../cases/compiler/functionExpressionAndLambdaMatchesFunction.ts | 1 + tests/cases/compiler/functionExpressionNames.ts | 1 + tests/cases/compiler/functionInIfStatementInModule.ts | 1 + tests/cases/compiler/functionOverloadAmbiguity1.ts | 1 + .../cases/compiler/functionOverloadImplementationOfWrongName.ts | 1 + .../cases/compiler/functionOverloadImplementationOfWrongName2.ts | 1 + tests/cases/compiler/functionOverloads1.ts | 1 + tests/cases/compiler/functionOverloads10.ts | 1 + tests/cases/compiler/functionOverloads11.ts | 1 + tests/cases/compiler/functionOverloads12.ts | 1 + tests/cases/compiler/functionOverloads13.ts | 1 + tests/cases/compiler/functionOverloads14.ts | 1 + tests/cases/compiler/functionOverloads15.ts | 1 + tests/cases/compiler/functionOverloads16.ts | 1 + tests/cases/compiler/functionOverloads17.ts | 1 + tests/cases/compiler/functionOverloads18.ts | 1 + tests/cases/compiler/functionOverloads19.ts | 1 + tests/cases/compiler/functionOverloads21.ts | 1 + tests/cases/compiler/functionOverloads23.ts | 1 + tests/cases/compiler/functionOverloads24.ts | 1 + tests/cases/compiler/functionOverloads44.ts | 1 + tests/cases/compiler/functionOverloads45.ts | 1 + tests/cases/compiler/functionOverloads5.ts | 1 + tests/cases/compiler/functionOverloads6.ts | 1 + tests/cases/compiler/functionOverloads7.ts | 1 + tests/cases/compiler/functionOverloads8.ts | 1 + tests/cases/compiler/functionOverloads9.ts | 1 + tests/cases/compiler/functionParameterArityMismatch.ts | 1 + tests/cases/compiler/functionSubtypingOfVarArgs.ts | 1 + tests/cases/compiler/functionSubtypingOfVarArgs2.ts | 1 + tests/cases/compiler/functionTypeArgumentArityErrors.ts | 1 + tests/cases/compiler/functionTypesLackingReturnTypes.ts | 1 + .../compiler/functionWithDefaultParameterWithNoStatements8.ts | 1 + tests/cases/compiler/generatorES6InAMDModule.ts | 1 + tests/cases/compiler/generatorES6_1.ts | 1 + tests/cases/compiler/generatorES6_6.ts | 1 + tests/cases/compiler/genericCallWithFixedArguments.ts | 1 + .../compiler/genericClassPropertyInheritanceSpecialization.ts | 1 + .../cases/compiler/genericClassWithStaticsUsingTypeArguments.ts | 1 + tests/cases/compiler/genericClassesInModule2.ts | 1 + tests/cases/compiler/genericConstraint2.ts | 1 + tests/cases/compiler/genericConstructSignatureInInterface.ts | 1 + tests/cases/compiler/genericDefaultsJs.ts | 1 + tests/cases/compiler/genericFunctionSpecializations1.ts | 1 + tests/cases/compiler/genericImplements.ts | 1 + tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts | 1 + tests/cases/compiler/genericOverloadSignatures.ts | 1 + tests/cases/compiler/genericPrototypeProperty2.ts | 1 + tests/cases/compiler/genericTypeAssertions3.ts | 1 + tests/cases/compiler/genericTypeAssertions6.ts | 1 + tests/cases/compiler/genericTypeParameterEquivalence2.ts | 1 + tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts | 1 + tests/cases/compiler/getAndSetAsMemberNames.ts | 1 + tests/cases/compiler/getterSetterNonAccessor.ts | 1 + tests/cases/compiler/giant.ts | 1 + tests/cases/compiler/globalThisCapture.ts | 1 + tests/cases/compiler/grammarAmbiguities1.ts | 1 + tests/cases/compiler/heterogeneousArrayAndOverloads.ts | 1 + tests/cases/compiler/icomparable.ts | 1 + tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts | 1 + tests/cases/compiler/importHelpersES6.ts | 1 + tests/cases/compiler/inOperator.ts | 1 + tests/cases/compiler/inOperatorWithFunction.ts | 1 + tests/cases/compiler/inOperatorWithGeneric.ts | 1 + tests/cases/compiler/incompatibleTypes.ts | 1 + tests/cases/compiler/incorrectClassOverloadChain.ts | 1 + tests/cases/compiler/indexClassByNumber.ts | 1 + tests/cases/compiler/indexTypeCheck.ts | 1 + tests/cases/compiler/indexerSignatureWithRestParam.ts | 1 + tests/cases/compiler/indirectTypeParameterReferences.ts | 1 + tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts | 1 + tests/cases/compiler/inferSecondaryParameter.ts | 1 + .../compiler/inferTypeArgumentsInSignatureWithRestParameters.ts | 1 + tests/cases/compiler/inferenceLimit.ts | 1 + tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts | 1 + tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts | 1 + tests/cases/compiler/inheritance.ts | 1 + tests/cases/compiler/inheritance1.ts | 1 + .../compiler/inheritanceGrandParentPrivateMemberCollision.ts | 1 + ...heritanceGrandParentPrivateMemberCollisionWithPublicMember.ts | 1 + ...heritanceGrandParentPublicMemberCollisionWithPrivateMember.ts | 1 + .../compiler/inheritanceMemberAccessorOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceMemberAccessorOverridingMethod.ts | 1 + .../compiler/inheritanceMemberAccessorOverridingProperty.ts | 1 + tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts | 1 + tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts | 1 + tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts | 1 + .../compiler/inheritanceMemberPropertyOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceMemberPropertyOverridingMethod.ts | 1 + .../compiler/inheritanceMemberPropertyOverridingProperty.ts | 1 + tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts | 1 + tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts | 1 + .../compiler/inheritanceStaticAccessorOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceStaticAccessorOverridingMethod.ts | 1 + .../compiler/inheritanceStaticAccessorOverridingProperty.ts | 1 + tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts | 1 + .../inheritanceStaticFuncOverridingAccessorOfFuncType.ts | 1 + tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts | 1 + tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts | 1 + .../inheritanceStaticFuncOverridingPropertyOfFuncType.ts | 1 + .../inheritanceStaticFunctionOverridingInstanceProperty.ts | 1 + tests/cases/compiler/inheritanceStaticMembersCompatible.ts | 1 + tests/cases/compiler/inheritanceStaticMembersIncompatible.ts | 1 + .../compiler/inheritanceStaticPropertyOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceStaticPropertyOverridingMethod.ts | 1 + .../compiler/inheritanceStaticPropertyOverridingProperty.ts | 1 + tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts | 1 + .../inheritedMembersAndIndexSignaturesFromDifferentBases.ts | 1 + .../inheritedMembersAndIndexSignaturesFromDifferentBases2.ts | 1 + .../compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts | 1 + tests/cases/compiler/innerExtern.ts | 1 + tests/cases/compiler/innerOverloads.ts | 1 + tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts | 1 + tests/cases/compiler/instanceOfAssignability.ts | 1 + tests/cases/compiler/intTypeCheck.ts | 1 + tests/cases/compiler/interfaceImplementation1.ts | 1 + tests/cases/compiler/interfaceOnly.ts | 1 + tests/cases/compiler/interfaceWithCommaSeparators.ts | 1 + tests/cases/compiler/interfacedecl.ts | 1 + tests/cases/compiler/interfacedeclWithIndexerErrors.ts | 1 + tests/cases/compiler/internalAliasUninitializedModule.ts | 1 + ...nternalAliasUninitializedModuleInsideLocalModuleWithExport.ts | 1 + ...rnalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts | 1 + ...initializedModuleInsideLocalModuleWithoutExportAccessError.ts | 1 + ...rnalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts | 1 + ...lAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts | 1 + tests/cases/compiler/internalAliasWithDottedNameEmit.ts | 1 + tests/cases/compiler/intrinsics.ts | 1 + tests/cases/compiler/invalidConstraint1.ts | 1 + .../compiler/isolatedDeclarationErrorsFunctionDeclarations.ts | 1 + tests/cases/compiler/isolatedDeclarationLazySymbols.ts | 1 + tests/cases/compiler/isolatedDeclarationsAllowJs.ts | 1 + tests/cases/compiler/isolatedModulesDeclaration.ts | 1 + tests/cases/compiler/isolatedModulesES6.ts | 1 + tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts | 1 + tests/cases/compiler/isolatedModulesOut.ts | 1 + tests/cases/compiler/isolatedModulesSpecifiedModule.ts | 1 + tests/cases/compiler/isolatedModulesUnspecifiedModule.ts | 1 + tests/cases/compiler/isolatedModulesWithDeclarationFile.ts | 1 + tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts | 1 + tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts | 1 + tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts | 1 + tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts | 1 + tests/cases/compiler/jsFileESModuleWithEnumTag.ts | 1 + tests/cases/compiler/jsNegativeElementAccessNotBound.ts | 1 + tests/cases/compiler/jsdocInTypeScript.ts | 1 + tests/cases/compiler/jsdocParamTagInvalid.ts | 1 + tests/cases/compiler/jsdocParameterParsingInvalidName.ts | 1 + tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts | 1 + tests/cases/compiler/jsxEmitWithAttributes.ts | 1 + tests/cases/compiler/jsxFactoryAndReactNamespace.ts | 1 + tests/cases/compiler/jsxFactoryIdentifier.ts | 1 + tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts | 1 + tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts | 1 + tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts | 1 + tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts | 1 + tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts | 1 + tests/cases/compiler/jsxFactoryQualifiedName.ts | 1 + tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts | 1 + tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts | 1 + tests/cases/compiler/jsxPreserveWithJsInput.ts | 1 + tests/cases/compiler/jsxSpreadTag.ts | 1 + tests/cases/compiler/lambdaParamTypes.ts | 1 + tests/cases/compiler/letConstMatchingParameterNames.ts | 1 + tests/cases/compiler/libMembers.ts | 1 + tests/cases/compiler/localClassesInLoop.ts | 1 + tests/cases/compiler/localClassesInLoop_ES6.ts | 1 + tests/cases/compiler/mappedTypeNoTypeNoCrash.ts | 1 + tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts | 1 + tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts | 1 + tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts | 1 + tests/cases/compiler/methodContainingLocalFunction.ts | 1 + tests/cases/compiler/missingCloseParenStatements.ts | 1 + tests/cases/compiler/missingFunctionImplementation.ts | 1 + tests/cases/compiler/missingFunctionImplementation2.ts | 1 + tests/cases/compiler/missingTypeArguments3.ts | 1 + tests/cases/compiler/mixedExports.ts | 1 + tests/cases/compiler/mixingFunctionAndAmbientModule1.ts | 1 + tests/cases/compiler/mixingStaticAndInstanceOverloads.ts | 1 + tests/cases/compiler/modFunctionCrash.ts | 1 + tests/cases/compiler/modifierOnParameter1.ts | 1 + ...ularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts | 1 + .../compiler/moduleAugmentationCollidingNamesInAugmentation1.ts | 1 + tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal4.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal5.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal6.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal6_1.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal7.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal7_1.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal8.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal8_1.ts | 1 + tests/cases/compiler/moduleAugmentationImportsAndExports2.ts | 1 + tests/cases/compiler/moduleAugmentationImportsAndExports3.ts | 1 + .../compiler/moduleAugmentationWithNonExistentNamedImport.ts | 1 + tests/cases/compiler/moduleAugmentationsBundledOutput1.ts | 1 + tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts | 1 + tests/cases/compiler/modulePreserve3.ts | 1 + tests/cases/compiler/modulePreserveTopLevelAwait1.ts | 1 + tests/cases/compiler/moduleProperty2.ts | 1 + .../compiler/moduleResolutionWithExtensions_notSupported.ts | 1 + .../compiler/moduleResolutionWithExtensions_notSupported2.ts | 1 + .../compiler/moduleResolutionWithExtensions_notSupported3.ts | 1 + .../moduleResolution_explicitNodeModulesImport_implicitAny.ts | 1 + .../compiler/moduleResolution_packageJson_yesAtPackageRoot.ts | 1 + ...eResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts | 1 + ...ution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts | 1 + tests/cases/compiler/moduleResolution_relativeImportJsFile.ts | 1 + tests/cases/compiler/moduleUnassignedVariable.ts | 1 + tests/cases/compiler/moduleVisibilityTest1.ts | 1 + tests/cases/compiler/moduleVisibilityTest2.ts | 1 + tests/cases/compiler/module_augmentUninstantiatedModule.ts | 1 + tests/cases/compiler/module_augmentUninstantiatedModule2.ts | 1 + tests/cases/compiler/moduledecl.ts | 1 + .../compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts | 1 + tests/cases/compiler/multiModuleFundule1.ts | 1 + tests/cases/compiler/multipleClassPropertyModifiers.ts | 1 + tests/cases/compiler/multipleClassPropertyModifiersErrors.ts | 1 + tests/cases/compiler/multipleExportAssignments.ts | 1 + .../compiler/multipleExportAssignmentsInAmbientDeclaration.ts | 1 + tests/cases/compiler/multipleExports.ts | 1 + tests/cases/compiler/multipleInheritance.ts | 1 + tests/cases/compiler/multivar.ts | 1 + tests/cases/compiler/namedFunctionExpressionInModule.ts | 1 + tests/cases/compiler/namedImportNonExistentName.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings3.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings4.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings5.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings6.ts | 1 + tests/cases/compiler/nestedIndexer.ts | 1 + tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts | 1 + tests/cases/compiler/nestedRecursiveLambda.ts | 1 + tests/cases/compiler/newNamesInGlobalAugmentations1.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts | 1 + .../noCollisionThisExpressionAndLocalVarInConstructor.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInFunction.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInLambda.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInMethod.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInProperty.ts | 1 + .../noCollisionThisExpressionInFunctionAndVarInGlobal.ts | 1 + tests/cases/compiler/noCrashOnParameterNamedRequire.ts | 1 + tests/cases/compiler/noImplicitReturnsInAsync2.ts | 1 + tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts | 1 + tests/cases/compiler/noImplicitThisFunctions.ts | 1 + tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts | 1 + .../compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts | 1 + tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts | 1 + tests/cases/compiler/nodeResolution4.ts | 1 + tests/cases/compiler/nodeResolution6.ts | 1 + tests/cases/compiler/nodeResolution8.ts | 1 + tests/cases/compiler/nonArrayRestArgs.ts | 1 + tests/cases/compiler/nonContextuallyTypedLogicalOr.ts | 1 + tests/cases/compiler/nonExportedElementsOfMergedModules.ts | 1 + tests/cases/compiler/nonMergedOverloads.ts | 1 + tests/cases/compiler/null.ts | 1 + .../cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts | 1 + .../cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts | 1 + tests/cases/compiler/objectLitArrayDeclNoNew.ts | 1 + tests/cases/compiler/objectLitIndexerContextualType.ts | 1 + tests/cases/compiler/objectLiteralArraySpecialization.ts | 1 + tests/cases/compiler/objectLiteralFreshnessWithSpread.ts | 1 + .../cases/compiler/objectLiteralFunctionArgContextualTyping2.ts | 1 + tests/cases/compiler/objectPropertyAsClass.ts | 1 + tests/cases/compiler/objectRestSpread.ts | 1 + tests/cases/compiler/optionalArgsWithDefaultValues.ts | 1 + tests/cases/compiler/optionalConstructorArgInSuper.ts | 1 + tests/cases/compiler/optionalParamReferencingOtherParams3.ts | 1 + tests/cases/compiler/optionalPropertiesSyntax.ts | 1 + tests/cases/compiler/overload2.ts | 1 + tests/cases/compiler/overloadCallTest.ts | 1 + tests/cases/compiler/overloadConsecutiveness.ts | 1 + tests/cases/compiler/overloadCrash.ts | 1 + tests/cases/compiler/overloadModifiersMustAgree.ts | 1 + tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts | 1 + .../overloadOnConstInBaseWithBadImplementationInDerived.ts | 1 + tests/cases/compiler/overloadOnConstInCallback1.ts | 1 + .../overloadOnConstInObjectLiteralImplementingAnInterface.ts | 1 + tests/cases/compiler/overloadOnConstInheritance4.ts | 1 + tests/cases/compiler/overloadOnConstNoAnyImplementation.ts | 1 + tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts | 1 + tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts | 1 + tests/cases/compiler/overloadOnConstNoStringImplementation.ts | 1 + tests/cases/compiler/overloadOnConstNoStringImplementation2.ts | 1 + tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts | 1 + tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts | 1 + tests/cases/compiler/overloadResolutionOverCTLambda.ts | 1 + tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts | 1 + tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts | 1 + tests/cases/compiler/overloadResolutionTest1.ts | 1 + tests/cases/compiler/overloadResolutionWithAny.ts | 1 + .../overloadWithCallbacksWithDifferingOptionalityOnArgs.ts | 1 + tests/cases/compiler/overloadingOnConstantsInImplementation.ts | 1 + .../compiler/overloadresolutionWithConstraintCheckingDeferred.ts | 1 + tests/cases/compiler/overloadsAndTypeArgumentArity.ts | 1 + tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts | 1 + .../compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts | 1 + tests/cases/compiler/overloadsWithinClasses.ts | 1 + tests/cases/compiler/parameterPropertyOutsideConstructor.ts | 1 + tests/cases/compiler/paramterDestrcuturingDeclaration.ts | 1 + tests/cases/compiler/parenthesizedAsyncArrowFunction.ts | 1 + tests/cases/compiler/parseBigInt.ts | 1 + tests/cases/compiler/parseErrorIncorrectReturnToken.ts | 1 + tests/cases/compiler/parseJsxExtends1.ts | 1 + tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts | 1 + .../cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts | 1 + .../cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts | 1 + .../parsingClassRecoversWhenHittingUnexpectedSemicolon.ts | 1 + .../cases/compiler/pathMappingBasedModuleResolution6_classic.ts | 1 + tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts | 1 + .../cases/compiler/pathMappingBasedModuleResolution7_classic.ts | 1 + tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts | 1 + ...pingBasedModuleResolution_withExtension_MapedToNodeModules.ts | 1 + tests/cases/compiler/potentiallyUncalledDecorators.ts | 1 + tests/cases/compiler/predicateSemantics.ts | 1 + tests/cases/compiler/primitiveMembers.ts | 1 + .../privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts | 1 + tests/cases/compiler/privacyGloImport.ts | 1 + tests/cases/compiler/privacyGloImportParseErrors.ts | 1 + tests/cases/compiler/privacyGloInterface.ts | 1 + tests/cases/compiler/privacyImportParseErrors.ts | 1 + tests/cases/compiler/privacyInterface.ts | 1 + tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts | 1 + tests/cases/compiler/privateNameWeakMapCollision.ts | 1 + tests/cases/compiler/promiseEmptyTupleNoException.ts | 1 + tests/cases/compiler/promisePermutations.ts | 1 + tests/cases/compiler/promisePermutations2.ts | 1 + tests/cases/compiler/promisePermutations3.ts | 1 + tests/cases/compiler/promiseType.ts | 1 + tests/cases/compiler/promiseTypeInference.ts | 1 + tests/cases/compiler/promiseTypeInferenceUnion.ts | 1 + tests/cases/compiler/propertyAccess1.ts | 1 + tests/cases/compiler/propertyAccess2.ts | 1 + tests/cases/compiler/propertyAccess3.ts | 1 + tests/cases/compiler/propertyAccess6.ts | 1 + tests/cases/compiler/propertyAccess7.ts | 1 + tests/cases/compiler/propertyAccessExpressionInnerComments.ts | 1 + tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts | 1 + tests/cases/compiler/propertyAccessOnObjectLiteral.ts | 1 + tests/cases/compiler/propertyAccessibility1.ts | 1 + tests/cases/compiler/propertyAccessibility2.ts | 1 + tests/cases/compiler/propertyAssignment.ts | 1 + tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts | 1 + tests/cases/compiler/propertyOrdering2.ts | 1 + tests/cases/compiler/propertyParameterWithQuestionMark.ts | 1 + tests/cases/compiler/propertySignatures.ts | 1 + tests/cases/compiler/propertyWrappedInTry.ts | 1 + tests/cases/compiler/protectedMembers.ts | 1 + tests/cases/compiler/protectedMembersThisParameter.ts | 1 + tests/cases/compiler/protoAsIndexInIndexExpression.ts | 1 + tests/cases/compiler/protoAssignment.ts | 1 + tests/cases/compiler/protoInIndexer.ts | 1 + tests/cases/compiler/prototypeOnConstructorFunctions.ts | 1 + tests/cases/compiler/qualify.ts | 1 + tests/cases/compiler/reExportUndefined2.ts | 1 + tests/cases/compiler/reachabilityChecks1.ts | 1 + tests/cases/compiler/reachabilityChecks11.ts | 1 + tests/cases/compiler/reachabilityChecks4.ts | 1 + tests/cases/compiler/reachabilityChecks5.ts | 1 + tests/cases/compiler/reachabilityChecks6.ts | 1 + tests/cases/compiler/reachabilityChecks7.ts | 1 + tests/cases/compiler/readonlyInNonPropertyParameters.ts | 1 + tests/cases/compiler/recur1.ts | 1 + tests/cases/compiler/recursiveClassReferenceTest.ts | 1 + .../compiler/recursiveExportAssignmentAndFindAliasedType7.ts | 1 + tests/cases/compiler/recursiveGetterAccess.ts | 1 + tests/cases/compiler/recursiveInference1.ts | 1 + tests/cases/compiler/recursiveLetConst.ts | 1 + tests/cases/compiler/recursiveNamedLambdaCall.ts | 1 + tests/cases/compiler/recursiveProperties.ts | 1 + tests/cases/compiler/recursiveSpecializationOfSignatures.ts | 1 + tests/cases/compiler/redeclareParameterInCatchBlock.ts | 1 + tests/cases/compiler/reexportMissingDefault.ts | 1 + tests/cases/compiler/reexportMissingDefault1.ts | 1 + tests/cases/compiler/reexportMissingDefault2.ts | 1 + tests/cases/compiler/reexportMissingDefault3.ts | 1 + tests/cases/compiler/reexportMissingDefault4.ts | 1 + tests/cases/compiler/reexportMissingDefault5.ts | 1 + tests/cases/compiler/reexportMissingDefault6.ts | 1 + tests/cases/compiler/reexportMissingDefault7.ts | 1 + tests/cases/compiler/reexportMissingDefault8.ts | 1 + tests/cases/compiler/reexportNameAliasedAndHoisted.ts | 1 + .../cases/compiler/renamingDestructuredPropertyInFunctionType.ts | 1 + .../compiler/renamingDestructuredPropertyInFunctionType2.ts | 1 + .../compiler/renamingDestructuredPropertyInFunctionType3.ts | 1 + tests/cases/compiler/requiredInitializedParameter1.ts | 1 + tests/cases/compiler/requiredInitializedParameter2.ts | 1 + tests/cases/compiler/requiredInitializedParameter3.ts | 1 + tests/cases/compiler/requiredInitializedParameter4.ts | 1 + tests/cases/compiler/restArgMissingName.ts | 1 + tests/cases/compiler/restParamAsOptional.ts | 1 + tests/cases/compiler/restParamModifier.ts | 1 + tests/cases/compiler/restParamModifier2.ts | 1 + tests/cases/compiler/restParameterNoTypeAnnotation.ts | 1 + tests/cases/compiler/restParameterWithBindingPattern1.ts | 1 + tests/cases/compiler/restParameterWithBindingPattern2.ts | 1 + tests/cases/compiler/returnInfiniteIntersection.ts | 1 + tests/cases/compiler/returnStatement1.ts | 1 + tests/cases/compiler/returnTypeParameterWithModules.ts | 1 + tests/cases/compiler/returnValueInSetter.ts | 1 + .../cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts | 1 + .../cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts | 1 + tests/cases/compiler/scopeCheckInsidePublicMethod1.ts | 1 + tests/cases/compiler/scopeCheckInsideStaticMethod1.ts | 1 + tests/cases/compiler/scopeTests.ts | 1 + tests/cases/compiler/selfReferencesInFunctionParameters.ts | 1 + tests/cases/compiler/setMethods.ts | 1 + tests/cases/compiler/setterWithReturn.ts | 1 + .../compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts | 1 + .../compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts | 1 + tests/cases/compiler/sourceMapValidationExportAssignment.ts | 1 + .../compiler/sourceMapValidationExportAssignmentCommonjs.ts | 1 + tests/cases/compiler/specializationsShouldNotAffectEachOther.ts | 1 + tests/cases/compiler/specializeVarArgs1.ts | 1 + tests/cases/compiler/specializedOverloadWithRestParameters.ts | 1 + tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts | 1 + tests/cases/compiler/staticAsIdentifier.ts | 1 + tests/cases/compiler/staticClassMemberError.ts | 1 + ...staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts | 1 + tests/cases/compiler/staticModifierAlreadySeen.ts | 1 + tests/cases/compiler/structuralTypeInDeclareFileForModule.ts | 1 + tests/cases/compiler/super1.ts | 1 + ...rivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts | 1 + ...FromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts | 1 + ...allFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts | 1 + tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts | 1 + tests/cases/compiler/superCallFromFunction1.ts | 1 + tests/cases/compiler/superNewCall1.ts | 1 + tests/cases/compiler/superWithTypeArgument2.ts | 1 + tests/cases/compiler/switchCaseCircularRefeference.ts | 1 + tests/cases/compiler/systemJsForInNoException.ts | 1 + tests/cases/compiler/systemModule11.ts | 1 + tests/cases/compiler/systemModule4.ts | 1 + tests/cases/compiler/systemModule8.ts | 1 + tests/cases/compiler/systemModuleAmbientDeclarations.ts | 1 + tests/cases/compiler/systemModuleConstEnums.ts | 1 + .../cases/compiler/systemModuleConstEnumsSeparateCompilation.ts | 1 + tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts | 1 + tests/cases/compiler/targetTypeCastTest.ts | 1 + tests/cases/compiler/targetTypeTest1.ts | 1 + tests/cases/compiler/testTypings.ts | 1 + tests/cases/compiler/thisBinding.ts | 1 + tests/cases/compiler/thisExpressionInIndexExpression.ts | 1 + tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts | 1 + tests/cases/compiler/thisInConstructorParameter1.ts | 1 + tests/cases/compiler/thisInSuperCall.ts | 1 + tests/cases/compiler/thisInSuperCall1.ts | 1 + tests/cases/compiler/thisInSuperCall2.ts | 1 + tests/cases/compiler/thisInSuperCall3.ts | 1 + .../compiler/thisReferencedInFunctionInsideArrowFunction1.ts | 1 + tests/cases/compiler/topLevel.ts | 1 + tests/cases/compiler/topLevelBlockExpando.ts | 1 + tests/cases/compiler/topLevelExports.ts | 1 + tests/cases/compiler/topLevelLambda.ts | 1 + tests/cases/compiler/topLevelLambda2.ts | 1 + tests/cases/compiler/topLevelLambda4.ts | 1 + tests/cases/compiler/trailingCommasES5.ts | 1 + .../compiler/transformArrowInBlockScopedLoopVarInitializer.ts | 1 + tests/cases/compiler/transformsElideNullUndefinedType.ts | 1 + tests/cases/compiler/typeAliasExport.ts | 1 + tests/cases/compiler/typeArgumentConstraintResolution1.ts | 1 + .../compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts | 1 + ...eckObjectCreationExpressionWithUndefinedCallResolutionData.ts | 1 + tests/cases/compiler/typeCheckTypeArgument.ts | 1 + tests/cases/compiler/typeMatch1.ts | 1 + tests/cases/compiler/typeMatch2.ts | 1 + tests/cases/compiler/typeName1.ts | 1 + .../compiler/typeParameterConstrainedToOuterTypeParameter.ts | 1 + .../compiler/typeParameterConstrainedToOuterTypeParameter2.ts | 1 + tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts | 1 + tests/cases/compiler/typeParameterExtendingUnion1.ts | 1 + tests/cases/compiler/typeParameterExtendingUnion2.ts | 1 + tests/cases/compiler/typeParameterFixingWithConstraints.ts | 1 + .../compiler/typeParameterFixingWithContextSensitiveArguments.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments2.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments3.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments4.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments5.ts | 1 + tests/cases/compiler/typeParameterWithInvalidConstraintType.ts | 1 + tests/cases/compiler/typeReferenceDirectives1.ts | 1 + tests/cases/compiler/typeReferenceDirectives10.ts | 1 + tests/cases/compiler/typeReferenceDirectives11.ts | 1 + tests/cases/compiler/typeReferenceDirectives12.ts | 1 + tests/cases/compiler/typeReferenceDirectives13.ts | 1 + tests/cases/compiler/typeReferenceDirectives2.ts | 1 + tests/cases/compiler/typeReferenceDirectives3.ts | 1 + tests/cases/compiler/typeReferenceDirectives4.ts | 1 + tests/cases/compiler/typeReferenceDirectives5.ts | 1 + tests/cases/compiler/typeReferenceDirectives6.ts | 1 + tests/cases/compiler/typeReferenceDirectives8.ts | 1 + tests/cases/compiler/typeReferenceDirectives9.ts | 1 + tests/cases/compiler/typeResolution.ts | 1 + tests/cases/compiler/typedArrays-es5.ts | 1 + tests/cases/compiler/typedArrays-es6.ts | 1 + tests/cases/compiler/typedArraysSubarray.ts | 1 + tests/cases/compiler/uncaughtCompilerError1.ts | 1 + tests/cases/compiler/undefinedTypeAssignment2.ts | 1 + tests/cases/compiler/underscoreTest1.ts | 1 + .../unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts | 1 + tests/cases/compiler/uniqueSymbolJs.ts | 1 + tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts | 1 + tests/cases/compiler/unknownSymbols1.ts | 1 + tests/cases/compiler/unknownSymbols2.ts | 1 + tests/cases/compiler/unknownTypeArgOnCall.ts | 1 + tests/cases/compiler/untypedArgumentInLambdaExpression.ts | 1 + tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts | 1 + tests/cases/compiler/untypedModuleImport_withAugmentation2.ts | 1 + tests/cases/compiler/unusedDestructuring.ts | 1 + tests/cases/compiler/unusedDestructuringParameters.ts | 1 + tests/cases/compiler/unusedImports13.ts | 1 + tests/cases/compiler/unusedImports14.ts | 1 + tests/cases/compiler/unusedImports15.ts | 1 + tests/cases/compiler/unusedImports16.ts | 1 + tests/cases/compiler/unusedLocalsAndParameters.ts | 1 + tests/cases/compiler/unusedLocalsAndParametersDeferred.ts | 1 + .../compiler/unusedLocalsAndParametersOverloadSignatures.ts | 1 + tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts | 1 + tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts | 1 + tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts | 1 + tests/cases/compiler/unusedMethodsInInterface.ts | 1 + tests/cases/compiler/unusedParameterProperty2.ts | 1 + tests/cases/compiler/unusedParametersInLambda1.ts | 1 + tests/cases/compiler/unusedParametersInLambda2.ts | 1 + tests/cases/compiler/unusedParametersWithUnderscore.ts | 1 + tests/cases/compiler/unusedPrivateMembers.ts | 1 + tests/cases/compiler/varArgsOnConstructorTypes.ts | 1 + tests/cases/compiler/varAsID.ts | 1 + tests/cases/compiler/varBlock.ts | 1 + tests/cases/compiler/vardecl.ts | 1 + .../compiler/variableDeclaratorResolvedDuringContextualTyping.ts | 1 + tests/cases/compiler/verbatimModuleSyntaxReactReference.ts | 1 + tests/cases/compiler/voidOperator1.ts | 1 + tests/cases/compiler/voidReturnLambdaValue.ts | 1 + tests/cases/compiler/wellKnownSymbolExpando.ts | 1 + tests/cases/compiler/widenedTypes1.ts | 1 + tests/cases/compiler/withExportDecl.ts | 1 + tests/cases/compiler/withImportDecl.ts | 1 + tests/cases/compiler/wrappedIncovations1.ts | 1 + tests/cases/compiler/wrappedIncovations2.ts | 1 + tests/cases/conformance/Symbols/ES5SymbolProperty2.ts | 1 + tests/cases/conformance/ambient/ambientDeclarations.ts | 1 + tests/cases/conformance/ambient/ambientDeclarationsExternal.ts | 1 + tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts | 1 + .../conformance/ambient/ambientDeclarationsPatterns_merging1.ts | 1 + .../conformance/ambient/ambientDeclarationsPatterns_merging2.ts | 1 + .../conformance/ambient/ambientDeclarationsPatterns_merging3.ts | 1 + .../ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts | 1 + tests/cases/conformance/ambient/ambientErrors.ts | 1 + tests/cases/conformance/ambient/ambientInsideNonAmbient.ts | 1 + .../conformance/ambient/ambientInsideNonAmbientExternalModule.ts | 1 + .../async/asyncFunctionDeclarationParameterEvaluation.ts | 1 + .../arrowFunctionWithParameterNameAsync_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts | 1 + .../asyncUnParenthesizedArrowFunction_es2017.ts | 1 + .../conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration10_es2017.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration2_es2017.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration3_es2017.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration5_es2017.ts | 1 + .../arrowFunctionWithParameterNameAsync_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts | 1 + .../asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts | 1 + tests/cases/conformance/async/es5/asyncSetter_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts | 1 + .../arrowFunctionWithParameterNameAsync_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts | 1 + .../asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts | 1 + tests/cases/conformance/async/es6/asyncSetter_es6.ts | 1 + tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts | 1 + .../asyncGenerators/asyncGeneratorParameterEvaluation.ts | 1 + tests/cases/conformance/classes/awaitAndYieldInProperty.ts | 1 + .../classAbstractKeyword/classAbstractAccessor.ts | 1 + .../classAbstractKeyword/classAbstractCrashedOnce.ts | 1 + .../classAbstractKeyword/classAbstractDeclarations.d.ts | 1 + .../classAbstractKeyword/classAbstractExtends.ts | 1 + .../classAbstractKeyword/classAbstractGeneric.ts | 1 + .../classAbstractKeyword/classAbstractInheritance1.ts | 1 + .../classAbstractMethodInNonAbstractClass.ts | 1 + .../classAbstractKeyword/classAbstractMixedWithModifiers.ts | 1 + .../classAbstractKeyword/classAbstractOverloads.ts | 1 + .../classAbstractKeyword/classAbstractOverrideWithAbstract.ts | 1 + .../classAbstractKeyword/classAbstractSuperCalls.ts | 1 + .../classAbstractKeyword/classAbstractUsingAbstractMethods2.ts | 1 + .../classExtendsValidConstructorFunction.ts | 1 + .../classWithStaticFieldInParameterBindingPattern.2.ts | 1 + .../classWithStaticFieldInParameterBindingPattern.3.ts | 1 + .../classWithStaticFieldInParameterBindingPattern.ts | 1 + .../classWithStaticFieldInParameterInitializer.2.ts | 1 + .../conformance/classes/classStaticBlock/classStaticBlock26.ts | 1 + .../classWithTwoConstructorDefinitions.ts | 1 + .../constructorImplementationWithDefaultValues.ts | 1 + .../constructorImplementationWithDefaultValues2.ts | 1 + .../constructorOverloadsWithOptionalParameters.ts | 1 + .../constructorParameters/readonlyInAmbientClass.ts | 1 + .../superCalls/derivedClassSuperCallsWithThisArg.ts | 1 + .../superCalls/derivedClassSuperProperties.ts | 1 + .../classes/indexMemberDeclarations/privateIndexer2.ts | 1 + .../classes/members/accessibility/classPropertyAsPrivate.ts | 1 + .../classes/members/accessibility/classPropertyAsProtected.ts | 1 + .../members/accessibility/classPropertyIsPublicByDefault.ts | 1 + .../accessibility/privateClassPropertyAccessibleWithinClass.ts | 1 + .../members/accessibility/privateInstanceMemberAccessibility.ts | 1 + .../privateProtectedMembersAreNotAccessibleDestructuring.ts | 1 + .../accessibility/protectedClassPropertyAccessibleWithinClass.ts | 1 + .../derivedClassIncludesInheritedMembers.ts | 1 + .../members/instanceAndStaticMembers/superInStaticMembers1.ts | 1 + .../members/privateNames/privateNameAccessorsCallExpression.ts | 1 + .../classes/members/privateNames/privateNameBadSuper.ts | 1 + .../privateNames/privateNameBadSuperUseDefineForClassFields.ts | 1 + .../members/privateNames/privateNameComputedPropertyName3.ts | 1 + .../members/privateNames/privateNameConstructorSignature.ts | 1 + .../members/privateNames/privateNameDeclarationMerging.ts | 1 + .../members/privateNames/privateNameFieldCallExpression.ts | 1 + .../classes/members/privateNames/privateNameFieldInitializer.ts | 1 + .../classes/members/privateNames/privateNameFieldsESNext.ts | 1 + .../classes/members/privateNames/privateNameHashCharName.ts | 1 + .../classes/members/privateNames/privateNameLateSuper.ts | 1 + .../privateNames/privateNameLateSuperUseDefineForClassFields.ts | 1 + .../members/privateNames/privateNameMethodCallExpression.ts | 1 + .../members/privateNames/privateNameNestedClassFieldShadowing.ts | 1 + .../classes/members/privateNames/privateNameSetterNoGetter.ts | 1 + .../privateNames/privateNameStaticAccessorsCallExpression.ts | 1 + .../members/privateNames/privateNameStaticFieldCallExpression.ts | 1 + .../members/privateNames/privateNameStaticFieldInitializer.ts | 1 + .../members/privateNames/privateNameStaticFieldNoInitializer.ts | 1 + .../privateNames/privateNameStaticMethodCallExpression.ts | 1 + .../members/privateNames/privateNamesInterfaceExtendingClass.ts | 1 + .../classes/members/privateNames/privateNamesUnique-2.ts | 1 + .../classes/members/privateNames/privateNamesUseBeforeDef.ts | 1 + .../classes/propertyMemberDeclarations/accessibilityModifiers.ts | 1 + .../classes/propertyMemberDeclarations/autoAccessor11.ts | 1 + .../classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts | 1 + .../classes/propertyMemberDeclarations/defineProperty.ts | 1 + .../initializerReferencingConstructorLocals.ts | 1 + .../initializerReferencingConstructorParameters.ts | 1 + .../memberAccessorDeclarations/accessorWithES5.ts | 1 + .../memberFunctionOverloadMixingStaticAndInstance.ts | 1 + .../memberFunctionsWithPrivateOverloads.ts | 1 + .../memberFunctionsWithPublicOverloads.ts | 1 + .../memberFunctionsWithPublicPrivateOverloads.ts | 1 + .../classes/propertyMemberDeclarations/optionalProperty.ts | 1 + .../propertyAndAccessorWithSameName.ts | 1 + .../propertyAndFunctionWithSameName.ts | 1 + .../propertyMemberDeclarations/twoAccessorsWithSameName.ts | 1 + .../propertyMemberDeclarations/twoAccessorsWithSameName2.ts | 1 + tests/cases/conformance/declarationEmit/nullPropertyName.ts | 1 + .../decorators/class/accessor/decoratorOnClassAccessor3.ts | 1 + .../decorators/class/accessor/decoratorOnClassAccessor6.ts | 1 + .../parameter/decoratorOnClassConstructorParameter4.ts | 1 + .../decorators/class/method/decoratorOnClassMethod16.ts | 1 + .../decorators/class/method/decoratorOnClassMethod17.ts | 1 + .../decorators/class/method/decoratorOnClassMethod18.ts | 1 + .../decorators/class/method/decoratorOnClassMethod19.ts | 1 + .../decorators/class/method/decoratorOnClassMethod3.ts | 1 + .../decorators/class/method/decoratorOnClassMethodOverload1.ts | 1 + .../decorators/class/method/decoratorOnClassMethodOverload2.ts | 1 + .../decorators/class/property/decoratorOnClassProperty1.ts | 1 + .../decorators/class/property/decoratorOnClassProperty10.ts | 1 + .../decorators/class/property/decoratorOnClassProperty11.ts | 1 + .../decorators/class/property/decoratorOnClassProperty12.ts | 1 + .../decorators/class/property/decoratorOnClassProperty13.ts | 1 + .../decorators/class/property/decoratorOnClassProperty2.ts | 1 + .../decorators/class/property/decoratorOnClassProperty3.ts | 1 + .../decorators/class/property/decoratorOnClassProperty6.ts | 1 + .../decorators/class/property/decoratorOnClassProperty7.ts | 1 + .../conformance/decorators/invalid/decoratorOnImportEquals2.ts | 1 + tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts | 1 + tests/cases/conformance/decorators/missingDecoratorType.ts | 1 + .../emitter.asyncGenerators.classMethods.es2015.ts | 1 + .../emitter.asyncGenerators.functionDeclarations.es2015.ts | 1 + .../emitter.asyncGenerators.functionExpressions.es2015.ts | 1 + .../emitter.asyncGenerators.objectLiteralMethods.es2015.ts | 1 + .../emitter.asyncGenerators.classMethods.es2018.ts | 1 + .../emitter.asyncGenerators.functionDeclarations.es2018.ts | 1 + .../emitter.asyncGenerators.functionExpressions.es2018.ts | 1 + .../emitter.asyncGenerators.objectLiteralMethods.es2018.ts | 1 + .../asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts | 1 + .../emitter.asyncGenerators.functionDeclarations.es5.ts | 1 + .../emitter.asyncGenerators.functionExpressions.es5.ts | 1 + .../emitter.asyncGenerators.objectLiteralMethods.es5.ts | 1 + tests/cases/conformance/enums/awaitAndYield.ts | 1 + tests/cases/conformance/enums/enumBasics.ts | 1 + tests/cases/conformance/es2019/globalThisUnknown.ts | 1 + .../conformance/es2021/logicalAssignment/logicalAssignment10.ts | 1 + tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts | 1 + tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty10.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty11.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty12.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty13.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty14.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty15.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty16.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty19.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty39.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty40.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty41.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty42.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty48.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty49.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty56.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty57.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty8.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty9.ts | 1 + tests/cases/conformance/es6/Symbols/symbolType14.ts | 1 + tests/cases/conformance/es6/Symbols/symbolType17.ts | 1 + tests/cases/conformance/es6/Symbols/symbolType18.ts | 1 + .../es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts | 1 + .../es6/computedProperties/computedPropertyNames11_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames11_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames16_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames16_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames17_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames17_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames20_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames20_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames2_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames2_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames36_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames36_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames37_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames37_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames38_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames38_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames39_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames39_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames3_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames3_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames40_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames40_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames41_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames41_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames42_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames42_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames43_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames43_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames44_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames44_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames45_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames45_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames49_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames49_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames50_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames50_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames5_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames5_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames9_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames9_ES6.ts | 1 + .../computedPropertyNamesDeclarationEmit1_ES5.ts | 1 + .../computedPropertyNamesDeclarationEmit1_ES6.ts | 1 + .../computedPropertyNamesDeclarationEmit2_ES5.ts | 1 + .../computedPropertyNamesDeclarationEmit2_ES6.ts | 1 + .../computedPropertyNamesDeclarationEmit5_ES5.ts | 1 + .../computedPropertyNamesDeclarationEmit5_ES6.ts | 1 + .../computedProperties/computedPropertyNamesOnOverloads_ES5.ts | 1 + .../computedProperties/computedPropertyNamesOnOverloads_ES6.ts | 1 + .../decorators/class/property/decoratorOnClassProperty1.es6.ts | 1 + .../conformance/es6/destructuring/declarationInAmbientContext.ts | 1 + .../es6/destructuring/declarationWithNoInitializer.ts | 1 + .../conformance/es6/destructuring/declarationsAndAssignments.ts | 1 + .../destructuringArrayBindingPatternAndAssignment3.ts | 1 + .../conformance/es6/destructuring/destructuringInFunctionType.ts | 1 + .../es6/destructuring/destructuringWithLiteralInitializers.ts | 1 + .../es6/destructuring/emptyArrayBindingPatternParameter02.ts | 1 + .../es6/destructuring/emptyArrayBindingPatternParameter03.ts | 1 + .../es6/destructuring/emptyObjectBindingPatternParameter02.ts | 1 + .../es6/destructuring/emptyObjectBindingPatternParameter03.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern10.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern11.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern12.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern13.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern14.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern15.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern16.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern17.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern18.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern19.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern20.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern25.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern3.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern30.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern4.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern5.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern6.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern7.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern8.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern9.ts | 1 + .../es6/destructuring/restElementWithNullInitializer.ts | 1 + .../es6/functionDeclarations/FunctionDeclaration2_es6.ts | 1 + .../es6/functionDeclarations/FunctionDeclaration9_es6.ts | 1 + .../es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts | 1 + .../es6/moduleExportsSystem/topLevelVarHoistingSystem.ts | 1 + .../conformance/es6/modules/defaultExportWithOverloads01.ts | 1 + .../cases/conformance/es6/modules/defaultExportsCannotMerge04.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports1.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports3.ts | 1 + tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts | 1 + tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts | 1 + .../es6/propertyAccess/propertyAccessNumericLiterals.es6.ts | 1 + .../objectLiteralShorthandProperties.ts | 1 + .../objectLiteralShorthandPropertiesES6.ts | 1 + ...tLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts | 1 + ...bjectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts | 1 + .../objectLiteralShorthandPropertiesErrorWithModule.ts | 1 + .../objectLiteralShorthandPropertiesWithModule.ts | 1 + .../objectLiteralShorthandPropertiesWithModuleES6.ts | 1 + tests/cases/conformance/es6/spread/arrayLiteralSpread.ts | 1 + .../conformance/es6/spread/arrayLiteralSpreadES5iterable.ts | 1 + .../es6/variableDeclarations/VariableDeclaration2_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression13_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression3_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression4_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression6_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck31.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck36.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck37.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck38.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck39.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck40.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck41.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck43.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck45.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck46.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck55.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck56.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck57.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck58.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck60.ts | 1 + .../compoundExponentiationAssignmentLHSIsValue.ts | 1 + tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts | 1 + .../es7/trailingCommasInFunctionParametersAndArguments.ts | 1 + .../esDecorators-classDeclaration-exportModifier.2.ts | 1 + .../conformance/esDecorators/esDecorators-privateFieldAccess.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata1.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata2.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata3.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata4.ts | 1 + tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts | 1 + tests/cases/conformance/expressions/asOperator/asOperatorASI.ts | 1 + .../expressions/assignmentOperator/assignmentLHSIsValue.ts | 1 + .../assignmentOperator/compoundAssignmentLHSIsReference.ts | 1 + .../assignmentOperator/compoundAssignmentLHSIsValue.ts | 1 + .../additionOperator/additionOperatorWithAnyAndEveryType.ts | 1 + .../additionOperator/additionOperatorWithInvalidOperands.ts | 1 + .../comparisonOperatorWithSubtypeObjectOnProperty.ts | 1 + .../binaryOperators/inOperator/inOperatorWithInvalidOperands.ts | 1 + .../binaryOperators/inOperator/inOperatorWithValidOperands.ts | 1 + .../logicalAndOperator/logicalAndOperatorWithEveryType.ts | 1 + .../logicalOrOperator/logicalOrOperatorWithEveryType.ts | 1 + .../commaOperator/commaOperatorWithSecondOperandAnyType.ts | 1 + .../expressions/contextualTyping/generatedContextualTyping.ts | 1 + .../contextualTyping/parenthesizedContexualTyping1.ts | 1 + .../conformance/expressions/functionCalls/callWithSpreadES6.ts | 1 + .../conformance/expressions/functionCalls/grammarAmbiguities.ts | 1 + .../cases/conformance/expressions/functionCalls/newWithSpread.ts | 1 + .../conformance/expressions/functionCalls/newWithSpreadES5.ts | 1 + .../conformance/expressions/functionCalls/newWithSpreadES6.ts | 1 + .../conformance/expressions/functionCalls/overloadResolution.ts | 1 + .../functionCalls/overloadResolutionClassConstructors.ts | 1 + .../expressions/functionCalls/overloadResolutionConstructors.ts | 1 + .../functionCalls/typeArgumentInferenceConstructSignatures.ts | 1 + .../functionCalls/typeArgumentInferenceWithObjectLiteral.ts | 1 + .../conformance/expressions/functions/arrowFunctionContexts.ts | 1 + .../expressions/functions/arrowFunctionExpressions.ts | 1 + .../contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts | 1 + .../conformance/expressions/functions/contextuallyTypedIife.ts | 1 + .../expressions/newOperator/newOperatorConformance.ts | 1 + .../conformance/expressions/newOperator/newOperatorErrorCases.ts | 1 + .../nullishCoalescingOperatorInAsyncGenerator.ts | 1 + .../nullishCoalescingOperatorInParameterBindingPattern.2.ts | 1 + .../nullishCoalescingOperatorInParameterBindingPattern.ts | 1 + .../nullishCoalescingOperatorInParameterInitializer.2.ts | 1 + .../nullishCoalescingOperatorInParameterInitializer.ts | 1 + .../expressions/objectLiterals/objectLiteralGettersAndSetters.ts | 1 + .../optionalChainingInParameterBindingPattern.2.ts | 1 + .../optionalChainingInParameterBindingPattern.ts | 1 + .../optionalChaining/optionalChainingInParameterInitializer.2.ts | 1 + .../conformance/expressions/propertyAccess/propertyAccess.ts | 1 + .../expressions/propertyAccess/propertyAccessNumericLiterals.ts | 1 + .../cases/conformance/expressions/superCalls/errorSuperCalls.ts | 1 + .../expressions/superPropertyAccess/errorSuperPropertyAccess.ts | 1 + .../superPropertyAccess/superPropertyAccessNoError.ts | 1 + .../conformance/expressions/thisKeyword/thisInInvalidContexts.ts | 1 + .../thisKeyword/thisInInvalidContextsExternalModule.ts | 1 + .../conformance/expressions/thisKeyword/typeOfThisGeneral.ts | 1 + .../conformance/expressions/typeAssertions/typeAssertions.ts | 1 + .../conformance/expressions/typeGuards/typeGuardFunction.ts | 1 + .../expressions/typeGuards/typeGuardFunctionGenerics.ts | 1 + .../expressions/typeGuards/typeGuardFunctionOfFormThis.ts | 1 + .../expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts | 1 + .../expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts | 1 + .../expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts | 1 + .../bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts | 1 + .../decrementOperator/decrementOperatorWithAnyOtherType.ts | 1 + .../decrementOperatorWithAnyOtherTypeInvalidOperations.ts | 1 + .../decrementOperatorWithEnumTypeInvalidOperations.ts | 1 + .../deleteOperator/deleteOperatorWithAnyOtherType.ts | 1 + .../incrementOperator/incrementOperatorWithAnyOtherType.ts | 1 + .../incrementOperatorWithAnyOtherTypeInvalidOperations.ts | 1 + .../unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts | 1 + .../typeofOperator/typeofOperatorInvalidOperations.ts | 1 + .../unaryOperators/voidOperator/voidOperatorInvalidOperations.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithBooleanType.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithEnumType.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithNumberType.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithStringType.ts | 1 + .../conformance/expressions/valuesAndReferences/assignments.ts | 1 + .../externalModules/es6/es6modulekindWithES5Target6.ts | 1 + .../externalModules/esnext/esnextmodulekindWithES5Target6.ts | 1 + tests/cases/conformance/externalModules/exportAssignTypes.ts | 1 + .../externalModules/exportAssignmentCircularModules.ts | 1 + .../externalModules/exportNonInitializedVariablesAMD.ts | 1 + .../externalModules/exportNonInitializedVariablesCommonJS.ts | 1 + .../externalModules/exportNonInitializedVariablesES6.ts | 1 + .../externalModules/exportNonInitializedVariablesSystem.ts | 1 + .../externalModules/exportNonInitializedVariablesUMD.ts | 1 + .../conformance/externalModules/initializersInDeclarations.ts | 1 + tests/cases/conformance/externalModules/topLevelAmbientModule.ts | 1 + tests/cases/conformance/externalModules/topLevelAwait.1.ts | 1 + tests/cases/conformance/externalModules/topLevelAwait.2.ts | 1 + tests/cases/conformance/externalModules/topLevelAwait.3.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitErrors.10.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitErrors.11.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitErrors.12.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitNonModule.ts | 1 + tests/cases/conformance/externalModules/topLevelFileModule.ts | 1 + .../conformance/externalModules/topLevelFileModuleMissing.ts | 1 + .../externalModules/topLevelModuleDeclarationAndFile.ts | 1 + tests/cases/conformance/externalModules/umd-errors.ts | 1 + tests/cases/conformance/fixSignatureCaching.ts | 1 + .../cases/conformance/functions/functionImplementationErrors.ts | 1 + tests/cases/conformance/functions/functionImplementations.ts | 1 + tests/cases/conformance/functions/functionNameConflicts.ts | 1 + tests/cases/conformance/functions/functionOverloadErrors.ts | 1 + .../cases/conformance/functions/functionOverloadErrorsSyntax.ts | 1 + .../functions/functionParameterObjectRestAndInitializers.ts | 1 + .../functions/functionWithUseStrictAndSimpleParameterList.ts | 1 + .../functionWithUseStrictAndSimpleParameterList_es2016.ts | 1 + .../functions/parameterInitializersBackwardReferencing.ts | 1 + .../functions/parameterInitializersForwardReferencing.2.ts | 1 + .../functions/parameterInitializersForwardReferencing.ts | 1 + .../functions/parameterInitializersForwardReferencing1_es6.ts | 1 + ...MergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts | 1 + ...nalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts | 1 + ...ParameterConstraintsClassHeritageListMemberTypeAnnotations.ts | 1 + ...portInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts | 1 + .../exportDeclarations/NonInitializedExportInInternalModule.ts | 1 + .../conformance/jsdoc/callOfPropertylessConstructorFunction.ts | 1 + tests/cases/conformance/jsdoc/callbackTag2.ts | 1 + .../jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts | 1 + .../jsdoc/declarations/jsDeclarationsClassAccessor.ts | 1 + .../jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts | 1 + .../jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts | 1 + .../conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts | 1 + .../jsdoc/declarations/jsDeclarationsExportedClassAliases.ts | 1 + .../jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts | 1 + .../jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts | 1 + .../conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts | 1 + .../jsdoc/declarations/jsDeclarationsMissingGenerics.ts | 1 + .../jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts | 1 + .../declarations/jsDeclarationsNonIdentifierInferredNames.ts | 1 + tests/cases/conformance/jsdoc/enumTag.ts | 1 + tests/cases/conformance/jsdoc/enumTagCircularReference.ts | 1 + tests/cases/conformance/jsdoc/enumTagImported.ts | 1 + tests/cases/conformance/jsdoc/enumTagOnExports.ts | 1 + tests/cases/conformance/jsdoc/enumTagOnExports2.ts | 1 + tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts | 1 + tests/cases/conformance/jsdoc/errorIsolation.ts | 1 + tests/cases/conformance/jsdoc/importTag24.ts | 1 + .../conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts | 1 + tests/cases/conformance/jsdoc/jsdocLinkTag8.ts | 1 + tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts | 1 + tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts | 1 + tests/cases/conformance/jsdoc/jsdocParamTag2.ts | 1 + tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTag.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts | 1 + tests/cases/conformance/jsdoc/overloadTag1.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts | 1 + tests/cases/conformance/jsdoc/parseLinkTag.ts | 1 + tests/cases/conformance/jsdoc/syntaxErrors.ts | 1 + tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts | 1 + tests/cases/conformance/jsx/jsxAttributeInitializer.ts | 1 + tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts | 1 + tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts | 1 + .../conformance/moduleResolution/extensionLoadingPriority.ts | 1 + tests/cases/conformance/moduleResolution/packageJsonMain.ts | 1 + .../moduleResolution/packageJsonMain_isNonRecursive.ts | 1 + tests/cases/conformance/moduleResolution/untypedModuleImport.ts | 1 + .../conformance/moduleResolution/untypedModuleImport_allowJs.ts | 1 + .../moduleResolution/untypedModuleImport_vsAmbient.ts | 1 + .../moduleResolution/untypedModuleImport_withAugmentation.ts | 1 + .../node/allowJs/nodeModulesAllowJsImportAssignment.ts | 1 + .../conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts | 1 + tests/cases/conformance/node/nodeModulesImportAssignments.ts | 1 + .../nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts | 1 + .../node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts | 1 + tests/cases/conformance/node/nodeModulesTopLevelAwait.ts | 1 + tests/cases/conformance/override/override_js2.ts | 1 + tests/cases/conformance/override/override_js3.ts | 1 + .../parser.asyncGenerators.classMethods.es2018.ts | 1 + .../parser.asyncGenerators.functionDeclarations.es2018.ts | 1 + .../parser.asyncGenerators.functionExpressions.es2018.ts | 1 + .../parser.asyncGenerators.objectLiteralMethods.es2018.ts | 1 + .../parser/ecmascript3/Accessors/parserES3Accessors2.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors2.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors4.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors6.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors8.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors9.ts | 1 + .../Accessors/parserSetAccessorWithTypeAnnotation1.ts | 1 + .../Accessors/parserSetAccessorWithTypeParameters1.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression10.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression11.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression12.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression15.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression16.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression17.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression8.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression9.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration10.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration12.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration13.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration14.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration15.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration16.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration17.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration19.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration20.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration21.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration22.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration26.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration9.ts | 1 + .../ComputedPropertyNames/parserES5ComputedPropertyName11.ts | 1 + .../ComputedPropertyNames/parserES5ComputedPropertyName7.ts | 1 + .../AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts | 1 + .../AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts | 1 + .../AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts | 1 + .../ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts | 1 + .../ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts | 1 + .../parserErrorRecovery_IncompleteMemberVariable2.ts | 1 + .../ParameterLists/parserErrorRecovery_ParameterList1.ts | 1 + .../ParameterLists/parserErrorRecovery_ParameterList2.ts | 1 + .../ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts | 1 + .../ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts | 1 + .../ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts | 1 + .../ErrorRecovery/parserModifierOnPropertySignature1.ts | 1 + .../ErrorRecovery/parserModifierOnPropertySignature2.ts | 1 + .../parserStatementIsNotAMemberVariableDeclaration1.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration1.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration4.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration5.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration6.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration7.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration8.ts | 1 + .../cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts | 1 + .../ecmascript5/Generics/parserCastVersusArrowFunction1.ts | 1 + .../IndexMemberDeclarations/parserIndexMemberDeclaration10.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts | 1 + .../parserMemberAccessorDeclaration13.ts | 1 + .../parserMemberAccessorDeclaration16.ts | 1 + .../parserMemberAccessorDeclaration18.ts | 1 + .../parserMemberAccessorDeclaration4.ts | 1 + .../parserMemberAccessorDeclaration5.ts | 1 + .../parserMemberAccessorDeclaration6.ts | 1 + .../parserMemberAccessorDeclaration8.ts | 1 + .../parserMemberFunctionDeclaration2.ts | 1 + .../parserMemberVariableDeclaration1.ts | 1 + .../parserMemberVariableDeclaration2.ts | 1 + .../parserMemberVariableDeclaration3.ts | 1 + .../parserMemberVariableDeclaration4.ts | 1 + .../parserMemberVariableDeclaration5.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature1.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature10.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature11.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature12.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature2.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature3.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature4.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature5.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature6.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature7.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature8.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature9.ts | 1 + .../ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts | 1 + .../parser/ecmascript5/ObjectTypes/parserObjectType3.ts | 1 + .../parser/ecmascript5/ObjectTypes/parserObjectType4.ts | 1 + .../parser/ecmascript5/ObjectTypes/parserObjectType5.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList1.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList10.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList12.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList13.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList14.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList15.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList16.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList17.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList3.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList4.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList5.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList6.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList9.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature1.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature10.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature11.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature12.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature2.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature5.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature6.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature9.ts | 1 + .../cases/conformance/parser/ecmascript5/Protected/Protected8.ts | 1 + .../cases/conformance/parser/ecmascript5/Protected/Protected9.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509534.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509546.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509546_1.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509546_2.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509630.ts | 1 + .../parser/ecmascript5/RegressionTests/parser642331.ts | 1 + .../parser/ecmascript5/RegressionTests/parser642331_1.ts | 1 + .../parser/ecmascript5/RegressionTests/parser643728.ts | 1 + .../ecmascript5/RegularExpressions/parserRegularExpression6.ts | 1 + .../parserRegularExpressionDivideAmbiguity6.ts | 1 + .../parser/ecmascript5/Statements/parserES5ForOfStatement18.ts | 1 + .../parser/ecmascript5/Statements/parserES5ForOfStatement19.ts | 1 + .../parser/ecmascript5/Statements/parserES5ForOfStatement20.ts | 1 + .../parser/ecmascript5/Statements/parserForStatement2.ts | 1 + .../parser/ecmascript5/StrictMode/parserStrictMode10.ts | 1 + .../parser/ecmascript5/StrictMode/parserStrictMode11.ts | 1 + .../parser/ecmascript5/StrictMode/parserStrictMode12.ts | 1 + .../VariableDeclarations/parserVariableDeclaration4.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts | 1 + .../parser/ecmascript5/parserUsingConstructorAsIdentifier.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName11.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName17.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName19.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName24.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName25.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName26.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName27.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName33.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName7.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName8.ts | 1 + .../parser/ecmascript6/Iterators/parserForOfStatement18.ts | 1 + .../parser/ecmascript6/Iterators/parserForOfStatement19.ts | 1 + .../parser/ecmascript6/Iterators/parserForOfStatement20.ts | 1 + .../salsa/binderUninitializedModuleExportsAssignment.ts | 1 + .../conformance/salsa/circularMultipleAssignmentDeclaration.ts | 1 + tests/cases/conformance/salsa/commonJSAliasedExport.ts | 1 + .../cases/conformance/salsa/conflictingCommonJSES2015Exports.ts | 1 + tests/cases/conformance/salsa/constructorFunctions.ts | 1 + tests/cases/conformance/salsa/constructorFunctions2.ts | 1 + tests/cases/conformance/salsa/expandoOnAlias.ts | 1 + tests/cases/conformance/salsa/exportNestedNamespaces2.ts | 1 + .../conformance/salsa/inferringClassMembersFromAssignments8.ts | 1 + tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts | 1 + .../salsa/mixedPropertyElementAccessAssignmentDeclaration.ts | 1 + tests/cases/conformance/salsa/moduleExportAlias2.ts | 1 + tests/cases/conformance/salsa/moduleExportAssignment2.ts | 1 + tests/cases/conformance/salsa/moduleExportAssignment4.ts | 1 + tests/cases/conformance/salsa/privateIdentifierExpando.ts | 1 + .../conformance/salsa/propertyAssignmentOnImportedSymbol.ts | 1 + .../conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts | 1 + .../salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts | 1 + .../cases/conformance/salsa/propertyAssignmentUseParentType1.ts | 1 + .../cases/conformance/salsa/propertyAssignmentUseParentType2.ts | 1 + .../cases/conformance/salsa/propertyAssignmentUseParentType3.ts | 1 + tests/cases/conformance/salsa/topLevelThisAssignment.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts | 1 + .../conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts | 1 + .../conformance/salsa/typeFromPropertyAssignmentWithExport.ts | 1 + tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts | 1 + .../cases/conformance/salsa/unannotatedParametersAreOptional.ts | 1 + .../statements/VariableStatements/everyTypeWithInitializer.ts | 1 + .../statements/VariableStatements/recursiveInitializer.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.1.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.10.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.11.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.12.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.13.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.14.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.15.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.16.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.17.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.3.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.5.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.7.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.8.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.9.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInFor.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForIn.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.1.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.2.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.3.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.4.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.5.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts | 1 + .../awaitUsingDeclarationsWithIteratorObject.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.1.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.10.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.11.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.12.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.13.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.14.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.15.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.16.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.17.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.3.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.5.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.7.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.8.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.9.ts | 1 + .../usingDeclarations/usingDeclarationsInFor.ts | 1 + .../usingDeclarations/usingDeclarationsInForAwaitOf.ts | 1 + .../usingDeclarations/usingDeclarationsInForIn.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.1.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.2.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.3.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.4.ts | 1 + .../usingDeclarationsWithESClassDecorators.1.ts | 1 + .../usingDeclarationsWithESClassDecorators.10.ts | 1 + .../usingDeclarationsWithESClassDecorators.11.ts | 1 + .../usingDeclarationsWithESClassDecorators.12.ts | 1 + .../usingDeclarationsWithESClassDecorators.2.ts | 1 + .../usingDeclarationsWithESClassDecorators.3.ts | 1 + .../usingDeclarationsWithESClassDecorators.4.ts | 1 + .../usingDeclarationsWithESClassDecorators.5.ts | 1 + .../usingDeclarationsWithESClassDecorators.6.ts | 1 + .../usingDeclarationsWithESClassDecorators.7.ts | 1 + .../usingDeclarationsWithESClassDecorators.8.ts | 1 + .../usingDeclarationsWithESClassDecorators.9.ts | 1 + .../usingDeclarations/usingDeclarationsWithImportHelpers.ts | 1 + .../usingDeclarations/usingDeclarationsWithIteratorObject.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.1.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.10.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.11.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.12.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.2.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.3.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.4.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.5.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.6.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.7.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.8.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.9.ts | 1 + .../statements/breakStatements/forInBreakStatements.ts | 1 + .../statements/continueStatements/forInContinueStatements.ts | 1 + .../conformance/statements/for-inStatements/for-inStatements.ts | 1 + .../statements/for-inStatements/for-inStatementsArray.ts | 1 + .../for-inStatements/for-inStatementsAsyncIdentifier.ts | 1 + .../for-inStatements/for-inStatementsDestructuring3.ts | 1 + .../for-inStatements/for-inStatementsDestructuring4.ts | 1 + .../statements/for-inStatements/for-inStatementsInvalid.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of14.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of15.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of16.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of18.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of19.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of2.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of20.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of21.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of22.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of23.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of24.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of25.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of26.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of27.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of28.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of29.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of4.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of5.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of6.ts | 1 + .../statements/throwStatements/throwInEnclosingStatements.ts | 1 + .../conformance/statements/throwStatements/throwStatements.ts | 1 + .../types/any/narrowExceptionVariableInCatchClause.ts | 1 + .../conformance/types/any/narrowFromAnyWithTypePredicate.ts | 1 + .../types/asyncGenerators/types.asyncGenerators.es2018.1.ts | 1 + .../types/asyncGenerators/types.asyncGenerators.es2018.2.ts | 1 + .../partiallyAnnotatedFunctionInferenceError.ts | 1 + .../types/intersection/operatorsAndIntersectionTypes.ts | 1 + tests/cases/conformance/types/localTypes/localTypes4.ts | 1 + tests/cases/conformance/types/mapped/mappedTypeProperties.ts | 1 + .../types/members/augmentedTypeAssignmentCompatIndexSignature.ts | 1 + .../types/members/augmentedTypeBracketAccessIndexSignature.ts | 1 + .../cases/conformance/types/members/classWithPrivateProperty.ts | 1 + .../conformance/types/members/classWithProtectedProperty.ts | 1 + tests/cases/conformance/types/members/classWithPublicProperty.ts | 1 + tests/cases/conformance/types/members/duplicatePropertyNames.ts | 1 + .../types/members/objectTypeHidingMembersOfExtendedObject.ts | 1 + ...objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts | 1 + ...tTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts | 1 + .../types/members/objectTypeWithDuplicateNumericProperty.ts | 1 + .../members/objectTypeWithStringIndexerHidingObjectIndexer.ts | 1 + .../objectTypeWithStringNamedPropertyOfIllegalCharacters.ts | 1 + .../types/members/typesWithSpecializedCallSignatures.ts | 1 + .../types/members/typesWithSpecializedConstructSignatures.ts | 1 + .../namedTypes/genericInstantiationEquivalentToObjectLiteral.ts | 1 + .../types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts | 1 + .../nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts | 1 + .../callSignatureWithOptionalParameterAndInitializer.ts | 1 + .../callSignatures/callSignatureWithoutAnnotationsOrBody.ts | 1 + .../callSignatureWithoutReturnTypeAnnotationInference.ts | 1 + .../callSignatures/callSignaturesThatDifferOnlyByReturnType.ts | 1 + .../callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts | 1 + .../callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts | 1 + .../callSignaturesWithAccessibilityModifiersOnParameters.ts | 1 + .../callSignatures/callSignaturesWithDuplicateParameters.ts | 1 + .../callSignatures/callSignaturesWithOptionalParameters.ts | 1 + .../callSignatures/callSignaturesWithOptionalParameters2.ts | 1 + .../callSignatures/callSignaturesWithParameterInitializers.ts | 1 + .../callSignatures/callSignaturesWithParameterInitializers2.ts | 1 + .../constructSignatureWithAccessibilityModifiersOnParameters.ts | 1 + .../constructSignatureWithAccessibilityModifiersOnParameters2.ts | 1 + .../objectTypeLiteral/callSignatures/identicalCallSignatures.ts | 1 + .../objectTypeLiteral/callSignatures/identicalCallSignatures2.ts | 1 + .../objectTypeLiteral/callSignatures/identicalCallSignatures3.ts | 1 + .../callSignatures/parametersWithNoAnnotationAreAny.ts | 1 + .../callSignatures/restParameterWithoutAnnotationIsAnyArray.ts | 1 + .../callSignatures/restParametersOfNonArrayTypes.ts | 1 + .../callSignatures/restParametersOfNonArrayTypes2.ts | 1 + .../callSignatures/restParametersWithArrayTypeAnnotations.ts | 1 + .../specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts | 1 + .../specializedSignatureIsSubtypeOfNonSpecializedSignature.ts | 1 + .../stringLiteralTypesInImplementationSignatures.ts | 1 + .../stringLiteralTypesInImplementationSignatures2.ts | 1 + .../numericIndexerConstrainsPropertyDeclarations.ts | 1 + .../numericIndexerConstrainsPropertyDeclarations2.ts | 1 + .../stringIndexerConstrainsPropertyDeclarations.ts | 1 + .../stringIndexerConstrainsPropertyDeclarations2.ts | 1 + .../methodSignatures/objectTypesWithOptionalProperties2.ts | 1 + .../propertySignatures/propertyNameWithoutTypeAnnotation.ts | 1 + .../propertySignatures/propertyNamesOfReservedWords.ts | 1 + .../types/primitives/stringLiteral/stringLiteralType.ts | 1 + tests/cases/conformance/types/rest/objectRest.ts | 1 + tests/cases/conformance/types/rest/objectRest2.ts | 1 + tests/cases/conformance/types/rest/objectRestAssignment.ts | 1 + tests/cases/conformance/types/rest/objectRestCatchES5.ts | 1 + tests/cases/conformance/types/rest/objectRestForOf.ts | 1 + tests/cases/conformance/types/rest/objectRestParameter.ts | 1 + tests/cases/conformance/types/rest/objectRestParameterES5.ts | 1 + .../cases/conformance/types/rest/objectRestPropertyMustBeLast.ts | 1 + tests/cases/conformance/types/rest/objectRestReadonly.ts | 1 + .../specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts | 1 + .../specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts | 1 + .../specifyingTypes/typeLiterals/functionLiteralForOverloads.ts | 1 + .../specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts | 1 + .../types/specifyingTypes/typeLiterals/parenthesizedTypes.ts | 1 + .../specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts | 1 + .../types/specifyingTypes/typeQueries/typeQueryOnClass.ts | 1 + .../types/specifyingTypes/typeQueries/typeofClass2.ts | 1 + .../typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts | 1 + .../typeReferences/genericTypeReferenceWithoutTypeArgument3.ts | 1 + .../types/stringLiteral/stringLiteralTypesAndTuples01.ts | 1 + .../types/stringLiteral/stringLiteralTypesAsTags01.ts | 1 + .../types/stringLiteral/stringLiteralTypesAsTags02.ts | 1 + .../types/stringLiteral/stringLiteralTypesAsTags03.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes01.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes02.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes03.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes04.ts | 1 + .../stringLiteral/stringLiteralTypesInVariableDeclarations01.ts | 1 + .../types/stringLiteral/stringLiteralTypesOverloads01.ts | 1 + .../types/stringLiteral/stringLiteralTypesOverloads02.ts | 1 + .../types/stringLiteral/stringLiteralTypesTypePredicates01.ts | 1 + .../conformance/types/thisType/contextualThisTypeInJavascript.ts | 1 + tests/cases/conformance/types/thisType/thisTypeInFunctions.ts | 1 + tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts | 1 + tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts | 1 + .../conformance/types/thisType/thisTypeInFunctionsNegative.ts | 1 + tests/cases/conformance/types/tuple/named/namedTupleMembers.ts | 1 + .../conformance/types/tuple/named/namedTupleMembersErrors.ts | 1 + .../types/typeAliases/asiPreventsParsingAsTypeAlias02.ts | 1 + .../typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts | 1 + .../typeArgumentLists/functionConstraintSatisfaction.ts | 1 + .../typeArgumentLists/functionConstraintSatisfaction2.ts | 1 + .../typeArgumentLists/functionConstraintSatisfaction3.ts | 1 + .../instantiateNonGenericTypeWithTypeArguments.ts | 1 + .../typeParameterAsTypeParameterConstraintTransitively.ts | 1 + .../typeParameterAsTypeParameterConstraintTransitively2.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints2.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints3.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints4.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints5.ts | 1 + .../propertyAccessOnTypeParameterWithoutConstraints.ts | 1 + .../assignmentCompatibility/anyAssignabilityInInheritance.ts | 1 + .../assignmentCompatibility/anyAssignableToEveryType2.ts | 1 + ...nmentCompatWithGenericCallSignaturesWithOptionalParameters.ts | 1 + .../assignmentCompatibility/assignmentCompatWithObjectMembers.ts | 1 + .../assignmentCompatWithObjectMembers2.ts | 1 + .../assignmentCompatWithObjectMembers3.ts | 1 + .../assignmentCompatWithObjectMembers4.ts | 1 + .../assignmentCompatWithObjectMembers5.ts | 1 + .../assignmentCompatWithObjectMembersAccessibility.ts | 1 + .../assignmentCompatWithObjectMembersNumericNames.ts | 1 + .../assignmentCompatWithObjectMembersOptionality.ts | 1 + .../assignmentCompatWithObjectMembersOptionality2.ts | 1 + .../assignmentCompatWithObjectMembersStringNumericNames.ts | 1 + .../assignmentCompatibility/enumAssignabilityInInheritance.ts | 1 + .../assignmentCompatibility/nullAssignableToEveryType.ts | 1 + .../assignmentCompatibility/nullAssignedToUndefined.ts | 1 + .../bestCommonType/heterogeneousArrayLiterals.ts | 1 + .../comparable/typeAssertionsWithIntersectionTypes01.ts | 1 + .../comparable/typeAssertionsWithUnionTypes01.ts | 1 + .../recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts | 1 + .../recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts | 1 + .../enumIsNotASubtypeOfAnythingButNumber.ts | 1 + .../nullIsSubtypeOfEverythingButUndefined.ts | 1 + .../subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts | 1 + .../typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts | 1 + .../typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts | 1 + .../subtypesAndSuperTypes/subtypingWithCallSignatures4.ts | 1 + .../subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts | 1 + .../unionSubtypeIfEveryConstituentTypeIsSubtype.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentity.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentity2.ts | 1 + .../objectTypesIdentityWithCallSignatures.ts | 1 + .../objectTypesIdentityWithCallSignatures2.ts | 1 + .../objectTypesIdentityWithCallSignatures3.ts | 1 + .../objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts | 1 + ...objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts | 1 + .../objectTypesIdentityWithCallSignaturesWithOverloads.ts | 1 + .../objectTypesIdentityWithComplexConstraints.ts | 1 + .../objectTypesIdentityWithConstructSignatures.ts | 1 + .../objectTypesIdentityWithConstructSignatures2.ts | 1 + ...ctTypesIdentityWithConstructSignaturesDifferingParamCounts.ts | 1 + .../objectTypesIdentityWithGenericCallSignatures.ts | 1 + .../objectTypesIdentityWithGenericCallSignatures2.ts | 1 + ...pesIdentityWithGenericCallSignaturesDifferingByConstraints.ts | 1 + ...esIdentityWithGenericCallSignaturesDifferingByConstraints2.ts | 1 + ...esIdentityWithGenericCallSignaturesDifferingByConstraints3.ts | 1 + ...ypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts | 1 + ...pesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts | 1 + ...ntityWithGenericCallSignaturesDifferingTypeParameterCounts.ts | 1 + ...tityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts | 1 + ...entityWithGenericCallSignaturesDifferingTypeParameterNames.ts | 1 + ...objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts | 1 + ...bjectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts | 1 + ...bjectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts | 1 + ...entityWithGenericConstructSignaturesDifferingByConstraints.ts | 1 + ...ntityWithGenericConstructSignaturesDifferingByConstraints2.ts | 1 + ...ntityWithGenericConstructSignaturesDifferingByConstraints3.ts | 1 + ...dentityWithGenericConstructSignaturesDifferingByReturnType.ts | 1 + ...entityWithGenericConstructSignaturesDifferingByReturnType2.ts | 1 + ...WithGenericConstructSignaturesDifferingTypeParameterCounts.ts | 1 + ...yWithGenericConstructSignaturesDifferingTypeParameterNames.ts | 1 + ...tTypesIdentityWithGenericConstructSignaturesOptionalParams.ts | 1 + ...TypesIdentityWithGenericConstructSignaturesOptionalParams2.ts | 1 + ...TypesIdentityWithGenericConstructSignaturesOptionalParams3.ts | 1 + .../objectTypesIdentityWithNumericIndexers1.ts | 1 + .../objectTypesIdentityWithNumericIndexers2.ts | 1 + .../objectTypesIdentityWithNumericIndexers3.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithPublics.ts | 1 + .../objectTypesIdentityWithStringIndexers.ts | 1 + .../objectTypesIdentityWithStringIndexers2.ts | 1 + .../typeAndMemberIdentity/primtiveTypesAreIdentical.ts | 1 + .../typeParametersAreIdenticalToThemselves.ts | 1 + .../typeInference/genericCallTypeArgumentInference.ts | 1 + .../genericCallWithConstraintsTypeArgumentInference.ts | 1 + .../genericCallWithConstraintsTypeArgumentInference2.ts | 1 + .../typeInference/genericCallWithGenericSignatureArguments.ts | 1 + .../typeInference/genericCallWithGenericSignatureArguments2.ts | 1 + .../typeInference/genericCallWithGenericSignatureArguments3.ts | 1 + .../genericCallWithOverloadedFunctionTypedArguments.ts | 1 + .../genericCallWithOverloadedFunctionTypedArguments2.ts | 1 + .../types/typeRelationships/widenedTypes/arrayLiteralWidened.ts | 1 + .../types/typeRelationships/widenedTypes/objectLiteralWidened.ts | 1 + tests/cases/conformance/types/union/unionTypeReduction.ts | 1 + .../cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts | 1 + tests/cases/fourslash/commentsInterfaceFourslash.ts | 1 + tests/cases/fourslash/commentsOverloadsFourslash.ts | 1 + tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts | 1 + tests/cases/fourslash/contextualTypingGenericFunction1.ts | 1 + tests/cases/fourslash/contextualTypingOfArrayLiterals.ts | 1 + .../cases/fourslash/contextualTypingOfGenericCallSignatures1.ts | 1 + .../cases/fourslash/contextualTypingOfGenericCallSignatures2.ts | 1 + tests/cases/fourslash/contextualTypingReturnExpressions.ts | 1 + tests/cases/fourslash/extendArrayInterface.ts | 1 + tests/cases/fourslash/extendArrayInterfaceMember.ts | 1 + tests/cases/fourslash/jsdocTemplateTagCompletion.ts | 1 + tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts | 1 + tests/cases/fourslash/optionalPropertyFormatting.ts | 1 + tests/cases/fourslash/qualifyModuleTypeNames.ts | 1 + .../fourslash/server/declarationMapsEnableMapping_NoInline.ts | 1 + .../server/declarationMapsEnableMapping_NoInlineSources.ts | 1 + .../server/declarationMapsGeneratedMapsEnableMapping.ts | 1 + .../server/declarationMapsGeneratedMapsEnableMapping2.ts | 1 + .../server/declarationMapsGeneratedMapsEnableMapping3.ts | 1 + .../server/declarationMapsGoToDefinitionRelativeSourceRoot.ts | 1 + .../declarationMapsGoToDefinitionSameNameDifferentDirectory.ts | 1 + tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts | 1 + .../stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts | 1 + tests/cases/fourslash/thisBindingInLambda.ts | 1 + tests/cases/fourslash/typeAssertionsFormatting.ts | 1 + tests/cases/fourslash/unusedImports13FS.ts | 1 + tests/cases/fourslash/unusedImports14FS.ts | 1 + tests/cases/projects/PrologueEmit/globalThisCapture.ts | 1 + 2040 files changed, 2040 insertions(+) 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..441a21017280d 100644 --- a/tests/cases/compiler/redeclareParameterInCatchBlock.ts +++ b/tests/cases/compiler/redeclareParameterInCatchBlock.ts @@ -1,3 +1,4 @@ +// @strict: false // @useUnknownInCatchVariables: false // @target: es6 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..07d0a1dc601bd 100644 --- a/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts +++ b/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @useUnknownInCatchVariables: false // @target: es2015 // @noEmitHelpers: true 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/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/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..330489b3144eb 100644 --- a/tests/cases/conformance/types/rest/objectRestCatchES5.ts +++ b/tests/cases/conformance/types/rest/objectRestCatchES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @useUnknownInCatchVariables: false let a = 1, b = 2; 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/commentsInterfaceFourslash.ts b/tests/cases/fourslash/commentsInterfaceFourslash.ts index 9501e9ba28723..e8e14072d6395 100644 --- a/tests/cases/fourslash/commentsInterfaceFourslash.ts +++ b/tests/cases/fourslash/commentsInterfaceFourslash.ts @@ -1,3 +1,4 @@ +// @strict: false /// /////** this is interface 1*/ diff --git a/tests/cases/fourslash/commentsOverloadsFourslash.ts b/tests/cases/fourslash/commentsOverloadsFourslash.ts index 51fbf0dfe9a46..db1b7d9cb571b 100644 --- a/tests/cases/fourslash/commentsOverloadsFourslash.ts +++ b/tests/cases/fourslash/commentsOverloadsFourslash.ts @@ -1,3 +1,4 @@ +// @strict: false /// /////** this is signature 1*/ diff --git a/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts b/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts index 1389a31ed3cf2..9065a17080c64 100644 --- a/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts +++ b/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////var f3 = <(x: string) => string> function (/**/x) { return x.toLowerCase(); }; diff --git a/tests/cases/fourslash/contextualTypingGenericFunction1.ts b/tests/cases/fourslash/contextualTypingGenericFunction1.ts index 9fa6b92da237a..73f086fbb8c26 100644 --- a/tests/cases/fourslash/contextualTypingGenericFunction1.ts +++ b/tests/cases/fourslash/contextualTypingGenericFunction1.ts @@ -1,3 +1,4 @@ +// @strict: false /// // should not contextually type the RHS because it introduces type parameters diff --git a/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts b/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts index 7318eeee6cb33..35d20b89a12c6 100644 --- a/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts +++ b/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////class C { diff --git a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts index d750d257d521c..0417c61b6bf2a 100644 --- a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts +++ b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////var f24: { diff --git a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts index efb26cb3af1a4..df35832d978d1 100644 --- a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts +++ b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////interface I { diff --git a/tests/cases/fourslash/contextualTypingReturnExpressions.ts b/tests/cases/fourslash/contextualTypingReturnExpressions.ts index a0480defdc4e9..8af17c818fd28 100644 --- a/tests/cases/fourslash/contextualTypingReturnExpressions.ts +++ b/tests/cases/fourslash/contextualTypingReturnExpressions.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////interface A { } diff --git a/tests/cases/fourslash/extendArrayInterface.ts b/tests/cases/fourslash/extendArrayInterface.ts index 09add80a685de..fbd813fb288f1 100644 --- a/tests/cases/fourslash/extendArrayInterface.ts +++ b/tests/cases/fourslash/extendArrayInterface.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////var x = [1, 2, 3]; diff --git a/tests/cases/fourslash/extendArrayInterfaceMember.ts b/tests/cases/fourslash/extendArrayInterfaceMember.ts index cc1460b126e54..c02c99e54481e 100644 --- a/tests/cases/fourslash/extendArrayInterfaceMember.ts +++ b/tests/cases/fourslash/extendArrayInterfaceMember.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////var x = [1, 2, 3]; diff --git a/tests/cases/fourslash/jsdocTemplateTagCompletion.ts b/tests/cases/fourslash/jsdocTemplateTagCompletion.ts index bca1287fd6a33..aa1d05177c3b1 100644 --- a/tests/cases/fourslash/jsdocTemplateTagCompletion.ts +++ b/tests/cases/fourslash/jsdocTemplateTagCompletion.ts @@ -1,3 +1,4 @@ +// @strict: false /// /////** diff --git a/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts b/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts index bb13973cc8234..feb8f9a4b8256 100644 --- a/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts +++ b/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts @@ -1,3 +1,4 @@ +// @strict: false /// //// interface connectModule { diff --git a/tests/cases/fourslash/optionalPropertyFormatting.ts b/tests/cases/fourslash/optionalPropertyFormatting.ts index 141e691b14de6..766b7a2b3aa41 100644 --- a/tests/cases/fourslash/optionalPropertyFormatting.ts +++ b/tests/cases/fourslash/optionalPropertyFormatting.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////export class C extends Error { diff --git a/tests/cases/fourslash/qualifyModuleTypeNames.ts b/tests/cases/fourslash/qualifyModuleTypeNames.ts index 13bf8d40d85e4..f6197ca147a06 100644 --- a/tests/cases/fourslash/qualifyModuleTypeNames.ts +++ b/tests/cases/fourslash/qualifyModuleTypeNames.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////namespace m { export class c { } }; diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts index fffd4662f0892..6a28416784cf6 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: /home/src/workspaces/project/tsconfig.json diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts index d0720f53a481c..8a624cfca2c3c 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: /home/src/workspaces/project/tsconfig.json diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts index 12f60211ede0c..305470280bfd9 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: /home/src/workspaces/project/tsconfig.json diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts index fe529c2794925..3a81d18e227bd 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: /home/src/workspaces/project/tsconfig.json diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts index b27faeb8919a2..3e34f6a6d25ca 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: /home/src/workspaces/project/tsconfig.json diff --git a/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts b/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts index ba3447a28c4ff..2715b951fc059 100644 --- a/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts +++ b/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: index.ts ////export class Foo { diff --git a/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts b/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts index 078aecb6418bb..91070aa12c425 100644 --- a/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts +++ b/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: BaseClass/Source.d.ts ////declare class Control { diff --git a/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts b/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts index 89345b2316a5b..ec2f9d5c98ec2 100644 --- a/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @Filename: /home/src/workspaces/project/node_modules/a/dist/index.d.ts diff --git a/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts b/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts index 7c1a11889a682..243b0a4fe3359 100644 --- a/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts +++ b/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////interface Foo {} diff --git a/tests/cases/fourslash/thisBindingInLambda.ts b/tests/cases/fourslash/thisBindingInLambda.ts index 8997f6438a771..635e288420a77 100644 --- a/tests/cases/fourslash/thisBindingInLambda.ts +++ b/tests/cases/fourslash/thisBindingInLambda.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////class Greeter { diff --git a/tests/cases/fourslash/typeAssertionsFormatting.ts b/tests/cases/fourslash/typeAssertionsFormatting.ts index 3f3ab070fec08..50db6466ef5cd 100644 --- a/tests/cases/fourslash/typeAssertionsFormatting.ts +++ b/tests/cases/fourslash/typeAssertionsFormatting.ts @@ -1,3 +1,4 @@ +// @strict: false /// ////( < any > publisher);/*1*/ diff --git a/tests/cases/fourslash/unusedImports13FS.ts b/tests/cases/fourslash/unusedImports13FS.ts index 4e19f4d7f1a74..5906d3ac228c5 100644 --- a/tests/cases/fourslash/unusedImports13FS.ts +++ b/tests/cases/fourslash/unusedImports13FS.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @noUnusedLocals: true diff --git a/tests/cases/fourslash/unusedImports14FS.ts b/tests/cases/fourslash/unusedImports14FS.ts index 75124802d3592..cdb9d4af0975f 100644 --- a/tests/cases/fourslash/unusedImports14FS.ts +++ b/tests/cases/fourslash/unusedImports14FS.ts @@ -1,3 +1,4 @@ +// @strict: false /// // @noUnusedLocals: true diff --git a/tests/cases/projects/PrologueEmit/globalThisCapture.ts b/tests/cases/projects/PrologueEmit/globalThisCapture.ts index ee4015477dd2d..ac49ce91a32a4 100644 --- a/tests/cases/projects/PrologueEmit/globalThisCapture.ts +++ b/tests/cases/projects/PrologueEmit/globalThisCapture.ts @@ -1,2 +1,3 @@ +// @strict: false // Add a lambda to ensure global 'this' capture is triggered (()=>this.window); From cfeb55e339e0dc68b205be0e2df09a7b8f74f911 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 14 Jan 2026 19:33:33 +0000 Subject: [PATCH 13/21] Fix tests to use tsconfig options. --- .../fourslash/server/declarationMapsEnableMapping_NoInline.ts | 2 +- .../server/declarationMapsEnableMapping_NoInlineSources.ts | 2 +- .../server/declarationMapsGeneratedMapsEnableMapping.ts | 2 +- .../server/declarationMapsGeneratedMapsEnableMapping2.ts | 2 +- .../server/declarationMapsGeneratedMapsEnableMapping3.ts | 2 +- .../declarationMapsGoToDefinitionSameNameDifferentDirectory.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts index 6a28416784cf6..c791d76a00060 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts @@ -1,9 +1,9 @@ -// @strict: false /// // @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 8a624cfca2c3c..4b74b1fe3c53b 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts @@ -1,9 +1,9 @@ -// @strict: false /// // @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 305470280bfd9..e1a012fa4b701 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts @@ -1,9 +1,9 @@ -// @strict: false /// // @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 3a81d18e227bd..466c64ea0d437 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts @@ -1,9 +1,9 @@ -// @strict: false /// // @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 3e34f6a6d25ca..f9cdea1c1f5e1 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts @@ -1,9 +1,9 @@ -// @strict: false /// // @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 91070aa12c425..f6f9b9d31d371 100644 --- a/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts +++ b/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts @@ -1,4 +1,3 @@ -// @strict: false /// // @Filename: BaseClass/Source.d.ts ////declare class Control { @@ -22,6 +21,7 @@ //// "$schema": "http://json.schemastore.org/tsconfig", //// "compileOnSave": true, //// "compilerOptions": { +//// "strict": false, //// "sourceMap": true, //// "declaration": true, //// "declarationMap": true From 6ffe210888bd2173348f928fe28222c954959f8e Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 14 Jan 2026 21:24:24 +0000 Subject: [PATCH 14/21] Fix harness to correctly process `// @option: value` comments in tests with mixed line endings. --- src/harness/harnessUtils.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/harness/harnessUtils.ts b/src/harness/harnessUtils.ts index b0b0edd8af868..51f4a0ab0ab01 100644 --- a/src/harness/harnessUtils.ts +++ b/src/harness/harnessUtils.ts @@ -15,19 +15,12 @@ export function evalFile(fileContents: string, fileName: string, nodeContext?: a } } +const newlineRegex = /\r\n?|\n/; + /** Splits the given string on \r\n, or on only \n if that fails, or on only \r if *that* fails. */ export function splitContentByNewlines(content: string): string[] { // Split up the input file by line - // Note: IE JS engine incorrectly handles consecutive delimiters here when using RegExp split, so - // we have to use string-based splitting instead and try to figure out the delimiting chars - let lines = content.split("\r\n"); - if (lines.length === 1) { - lines = content.split("\n"); - - if (lines.length === 1) { - lines = content.split("\r"); - } - } + const lines = content.split(newlineRegex); return lines; } From e85286b6745f99981b714d87e7fcc141cc568937 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 14 Jan 2026 21:24:41 +0000 Subject: [PATCH 15/21] Accept baselines. --- .../decoratedClassExportsCommonJS1.js | 5 ++-- .../decoratedClassExportsCommonJS1.symbols | 26 +++++++++++-------- .../decoratedClassExportsCommonJS1.types | 7 ++++- tests/baselines/reference/genericArray0.js | 1 - .../baselines/reference/genericArray0.symbols | 15 +++++------ tests/baselines/reference/genericArray0.types | 1 - .../reference/sourceMap-LineBreaks.js | 12 ++++++--- .../reference/sourceMap-LineBreaks.js.map | 2 +- .../sourceMap-LineBreaks.sourcemap.txt | 12 ++++++--- .../reference/sourceMap-LineBreaks.types | 4 +-- 10 files changed, 50 insertions(+), 35 deletions(-) diff --git a/tests/baselines/reference/decoratedClassExportsCommonJS1.js b/tests/baselines/reference/decoratedClassExportsCommonJS1.js index ad8a57ab01244..6e2b258cd8742 100644 --- a/tests/baselines/reference/decoratedClassExportsCommonJS1.js +++ b/tests/baselines/reference/decoratedClassExportsCommonJS1.js @@ -1,6 +1,7 @@ //// [tests/cases/conformance/decorators/class/decoratedClassExportsCommonJS1.ts] //// -//// [decoratedClassExportsCommonJS1.ts] +//// [a.ts] +declare function forwardRef(x: any): any; declare var Something: any; @Something({ v: () => Testing123 }) export class Testing123 { @@ -8,7 +9,7 @@ export class Testing123 { static prop1 = Testing123.prop0; } -//// [decoratedClassExportsCommonJS1.js] +//// [a.js] "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; diff --git a/tests/baselines/reference/decoratedClassExportsCommonJS1.symbols b/tests/baselines/reference/decoratedClassExportsCommonJS1.symbols index 1134ada758812..e2bca53fe8438 100644 --- a/tests/baselines/reference/decoratedClassExportsCommonJS1.symbols +++ b/tests/baselines/reference/decoratedClassExportsCommonJS1.symbols @@ -1,23 +1,27 @@ //// [tests/cases/conformance/decorators/class/decoratedClassExportsCommonJS1.ts] //// -=== decoratedClassExportsCommonJS1.ts === +=== a.ts === +declare function forwardRef(x: any): any; +>forwardRef : Symbol(forwardRef, Decl(a.ts, 0, 0)) +>x : Symbol(x, Decl(a.ts, 0, 28)) + declare var Something: any; ->Something : Symbol(Something, Decl(decoratedClassExportsCommonJS1.ts, 0, 11)) +>Something : Symbol(Something, Decl(a.ts, 1, 11)) @Something({ v: () => Testing123 }) ->Something : Symbol(Something, Decl(decoratedClassExportsCommonJS1.ts, 0, 11)) ->v : Symbol(v, Decl(decoratedClassExportsCommonJS1.ts, 1, 12)) ->Testing123 : Symbol(Testing123, Decl(decoratedClassExportsCommonJS1.ts, 0, 27)) +>Something : Symbol(Something, Decl(a.ts, 1, 11)) +>v : Symbol(v, Decl(a.ts, 2, 12)) +>Testing123 : Symbol(Testing123, Decl(a.ts, 1, 27)) export class Testing123 { ->Testing123 : Symbol(Testing123, Decl(decoratedClassExportsCommonJS1.ts, 0, 27)) +>Testing123 : Symbol(Testing123, Decl(a.ts, 1, 27)) static prop0: string; ->prop0 : Symbol(Testing123.prop0, Decl(decoratedClassExportsCommonJS1.ts, 2, 25)) +>prop0 : Symbol(Testing123.prop0, Decl(a.ts, 3, 25)) static prop1 = Testing123.prop0; ->prop1 : Symbol(Testing123.prop1, Decl(decoratedClassExportsCommonJS1.ts, 3, 25)) ->Testing123.prop0 : Symbol(Testing123.prop0, Decl(decoratedClassExportsCommonJS1.ts, 2, 25)) ->Testing123 : Symbol(Testing123, Decl(decoratedClassExportsCommonJS1.ts, 0, 27)) ->prop0 : Symbol(Testing123.prop0, Decl(decoratedClassExportsCommonJS1.ts, 2, 25)) +>prop1 : Symbol(Testing123.prop1, Decl(a.ts, 4, 25)) +>Testing123.prop0 : Symbol(Testing123.prop0, Decl(a.ts, 3, 25)) +>Testing123 : Symbol(Testing123, Decl(a.ts, 1, 27)) +>prop0 : Symbol(Testing123.prop0, Decl(a.ts, 3, 25)) } diff --git a/tests/baselines/reference/decoratedClassExportsCommonJS1.types b/tests/baselines/reference/decoratedClassExportsCommonJS1.types index a931e19930fe4..368258ebdd17a 100644 --- a/tests/baselines/reference/decoratedClassExportsCommonJS1.types +++ b/tests/baselines/reference/decoratedClassExportsCommonJS1.types @@ -1,6 +1,11 @@ //// [tests/cases/conformance/decorators/class/decoratedClassExportsCommonJS1.ts] //// -=== decoratedClassExportsCommonJS1.ts === +=== a.ts === +declare function forwardRef(x: any): any; +>forwardRef : (x: any) => any +> : ^ ^^ ^^^^^ +>x : any + declare var Something: any; >Something : any diff --git a/tests/baselines/reference/genericArray0.js b/tests/baselines/reference/genericArray0.js index 833ae661cc26f..b437091fcf95a 100644 --- a/tests/baselines/reference/genericArray0.js +++ b/tests/baselines/reference/genericArray0.js @@ -1,7 +1,6 @@ //// [tests/cases/compiler/genericArray0.ts] //// //// [genericArray0.ts] - var x:number[]; diff --git a/tests/baselines/reference/genericArray0.symbols b/tests/baselines/reference/genericArray0.symbols index e06c294a93020..9ec736a1b1725 100644 --- a/tests/baselines/reference/genericArray0.symbols +++ b/tests/baselines/reference/genericArray0.symbols @@ -1,21 +1,20 @@ //// [tests/cases/compiler/genericArray0.ts] //// === genericArray0.ts === - var x:number[]; ->x : Symbol(x, Decl(genericArray0.ts, 1, 3)) +>x : Symbol(x, Decl(genericArray0.ts, 0, 3)) var y = x; ->y : Symbol(y, Decl(genericArray0.ts, 4, 3)) ->x : Symbol(x, Decl(genericArray0.ts, 1, 3)) +>y : Symbol(y, Decl(genericArray0.ts, 3, 3)) +>x : Symbol(x, Decl(genericArray0.ts, 0, 3)) function map() { ->map : Symbol(map, Decl(genericArray0.ts, 4, 10)) ->U : Symbol(U, Decl(genericArray0.ts, 6, 13)) +>map : Symbol(map, Decl(genericArray0.ts, 3, 10)) +>U : Symbol(U, Decl(genericArray0.ts, 5, 13)) var ys: U[] = []; ->ys : Symbol(ys, Decl(genericArray0.ts, 7, 7)) ->U : Symbol(U, Decl(genericArray0.ts, 6, 13)) +>ys : Symbol(ys, Decl(genericArray0.ts, 6, 7)) +>U : Symbol(U, Decl(genericArray0.ts, 5, 13)) } diff --git a/tests/baselines/reference/genericArray0.types b/tests/baselines/reference/genericArray0.types index 0589420cc24d6..3947445ff7d56 100644 --- a/tests/baselines/reference/genericArray0.types +++ b/tests/baselines/reference/genericArray0.types @@ -1,7 +1,6 @@ //// [tests/cases/compiler/genericArray0.ts] //// === genericArray0.ts === - var x:number[]; >x : number[] > : ^^^^^^^^ diff --git a/tests/baselines/reference/sourceMap-LineBreaks.js b/tests/baselines/reference/sourceMap-LineBreaks.js index 715e01c05c5fb..7a0564f7bf450 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.js +++ b/tests/baselines/reference/sourceMap-LineBreaks.js @@ -3,14 +3,17 @@ //// [sourceMap-LineBreaks.ts] var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; var endsWithCarriageReturnLineFeed = 1; -var endsWithCarriageReturn = 1; var endsWithLineFeedCarriageReturn = 1; - var endsWithLineFeedCarriageReturnLineFeed = 1; +var endsWithCarriageReturn = 1; +var endsWithLineFeedCarriageReturn = 1; + +var endsWithLineFeedCarriageReturnLineFeed = 1; var stringLiteralWithLineFeed = "line 1\ line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ line 2"; -var stringLiteralWithCarriageReturn = "line 1\ line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +line 2"; var stringLiteralWithLineSeparator = "line 1\
line 2";
var stringLiteralWithParagraphSeparator = "line 1\
line 2";
var stringLiteralWithNextLine = "line 1\…line 2"; @@ -27,7 +30,8 @@ var stringLiteralWithLineFeed = "line 1\ line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ line 2"; -var stringLiteralWithCarriageReturn = "line 1\ line 2"; +var stringLiteralWithCarriageReturn = "line 1\ +line 2"; var stringLiteralWithLineSeparator = "line 1\
line 2"; var stringLiteralWithParagraphSeparator = "line 1\
line 2"; var stringLiteralWithNextLine = "line 1\…line 2"; diff --git a/tests/baselines/reference/sourceMap-LineBreaks.js.map b/tests/baselines/reference/sourceMap-LineBreaks.js.map index b9f8a26fbb4c5..99b2836e033d3 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.js.map +++ b/tests/baselines/reference/sourceMap-LineBreaks.js.map @@ -1,3 +1,3 @@ //// [sourceMap-LineBreaks.js.map] {"version":3,"file":"sourceMap-LineBreaks.js","sourceRoot":"","sources":["sourceMap-LineBreaks.ts"],"names":[],"mappings":"AAAA,IAAI,qBAAqB,GAAG,EAAE,CAAC;AAC/B,IAAI,0BAA0B,GAAG,EAAE,CAAC;AACpC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AAAC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACnD,IAAI,8BAA8B,GAAG,CAAC,CAAC;AACvC,IAAI,sBAAsB,GAAG,CAAC,CAAC;AAC/B,IAAI,8BAA8B,GAAG,CAAC,CAAC;AAEvC,IAAI,sCAAsC,GAAG,CAAC,CAAC;AAE/C,IAAI,yBAAyB,GAAG;OACzB,CAAC;AACR,IAAI,uCAAuC,GAAG;OACvC,CAAC;AACR,IAAI,+BAA+B,GAAG;OAC/B,CAAC;AAER,IAAI,8BAA8B,GAAG;OAC9B,CAAC;AACR,IAAI,mCAAmC,GAAG;OACnC,CAAC;AACR,IAAI,yBAAyB,GAAG,gBAAgB,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOw0KdmFyIGVuZHNXaXRoUGFyYWdyYXBoU2VwYXJhdG9yID0gMTA7DQp2YXIgZW5kc1dpdGhOZXh0TGluZSA9IDE7DQp2YXIgZW5kc1dpdGhMaW5lRmVlZCA9IDE7DQp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBlbmRzV2l0aENhcnJpYWdlUmV0dXJuID0gMTsNCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm4gPSAxOw0KdmFyIGVuZHNXaXRoTGluZUZlZWRDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aExpbmVGZWVkID0gImxpbmUgMVwKbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoQ2FycmlhZ2VSZXR1cm4gPSAibGluZSAxXA1saW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoTGluZVNlcGFyYXRvciA9ICJsaW5lIDFc4oCobGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aE5leHRMaW5lID0gImxpbmUgMVzChWxpbmUgMiI7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtTGluZUJyZWFrcy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUxpbmVCcmVha3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtTGluZUJyZWFrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUMvQixJQUFJLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUNwQyxJQUFJLGdCQUFnQixHQUFHLENBQUMsQ0FBQztBQUFDLElBQUksZ0JBQWdCLEdBQUcsQ0FBQyxDQUFDO0FBQ25ELElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBQ3ZDLElBQUksc0JBQXNCLEdBQUcsQ0FBQyxDQUFDO0FBQy9CLElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBRXZDLElBQUksc0NBQXNDLEdBQUcsQ0FBQyxDQUFDO0FBRS9DLElBQUkseUJBQXlCLEdBQUc7T0FDekIsQ0FBQztBQUNSLElBQUksdUNBQXVDLEdBQUc7T0FDdkMsQ0FBQztBQUNSLElBQUksK0JBQStCLEdBQUc7T0FDL0IsQ0FBQztBQUVSLElBQUksOEJBQThCLEdBQUc7T0FDOUIsQ0FBQztBQUNSLElBQUksbUNBQW1DLEdBQUc7T0FDbkMsQ0FBQztBQUNSLElBQUkseUJBQXlCLEdBQUcsZ0JBQWdCLENBQUMifQ==,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOyDigKh2YXIgZW5kc1dpdGhQYXJhZ3JhcGhTZXBhcmF0b3IgPSAxMDsg4oCpdmFyIGVuZHNXaXRoTmV4dExpbmUgPSAxO8KFdmFyIGVuZHNXaXRoTGluZUZlZWQgPSAxOwp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsKdmFyIGVuZHNXaXRoQ2FycmlhZ2VSZXR1cm4gPSAxOw12YXIgZW5kc1dpdGhMaW5lRmVlZENhcnJpYWdlUmV0dXJuID0gMTsKDXZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm5MaW5lRmVlZCA9IDE7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lRmVlZCA9ICJsaW5lIDFcCmxpbmUgMiI7CnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOwp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhDYXJyaWFnZVJldHVybiA9ICJsaW5lIDFcDWxpbmUgMiI7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lU2VwYXJhdG9yID0gImxpbmUgMVzigKhsaW5lIDIiO+KAqXZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjvigKl2YXIgc3RyaW5nTGl0ZXJhbFdpdGhOZXh0TGluZSA9ICJsaW5lIDFcwoVsaW5lIDIiOw== +//// https://sokra.github.io/source-map-visualization#base64,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOw0KdmFyIGVuZHNXaXRoUGFyYWdyYXBoU2VwYXJhdG9yID0gMTA7DQp2YXIgZW5kc1dpdGhOZXh0TGluZSA9IDE7DQp2YXIgZW5kc1dpdGhMaW5lRmVlZCA9IDE7DQp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBlbmRzV2l0aENhcnJpYWdlUmV0dXJuID0gMTsNCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm4gPSAxOw0KdmFyIGVuZHNXaXRoTGluZUZlZWRDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aExpbmVGZWVkID0gImxpbmUgMVwKbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoQ2FycmlhZ2VSZXR1cm4gPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoTGluZVNlcGFyYXRvciA9ICJsaW5lIDFc4oCobGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aE5leHRMaW5lID0gImxpbmUgMVzChWxpbmUgMiI7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtTGluZUJyZWFrcy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUxpbmVCcmVha3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtTGluZUJyZWFrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUMvQixJQUFJLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUNwQyxJQUFJLGdCQUFnQixHQUFHLENBQUMsQ0FBQztBQUFDLElBQUksZ0JBQWdCLEdBQUcsQ0FBQyxDQUFDO0FBQ25ELElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBQ3ZDLElBQUksc0JBQXNCLEdBQUcsQ0FBQyxDQUFDO0FBQy9CLElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBRXZDLElBQUksc0NBQXNDLEdBQUcsQ0FBQyxDQUFDO0FBRS9DLElBQUkseUJBQXlCLEdBQUc7T0FDekIsQ0FBQztBQUNSLElBQUksdUNBQXVDLEdBQUc7T0FDdkMsQ0FBQztBQUNSLElBQUksK0JBQStCLEdBQUc7T0FDL0IsQ0FBQztBQUVSLElBQUksOEJBQThCLEdBQUc7T0FDOUIsQ0FBQztBQUNSLElBQUksbUNBQW1DLEdBQUc7T0FDbkMsQ0FBQztBQUNSLElBQUkseUJBQXlCLEdBQUcsZ0JBQWdCLENBQUMifQ==,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOyDigKh2YXIgZW5kc1dpdGhQYXJhZ3JhcGhTZXBhcmF0b3IgPSAxMDsg4oCpdmFyIGVuZHNXaXRoTmV4dExpbmUgPSAxO8KFdmFyIGVuZHNXaXRoTGluZUZlZWQgPSAxOwp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsKdmFyIGVuZHNXaXRoQ2FycmlhZ2VSZXR1cm4gPSAxOwp2YXIgZW5kc1dpdGhMaW5lRmVlZENhcnJpYWdlUmV0dXJuID0gMTsKCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm5MaW5lRmVlZCA9IDE7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lRmVlZCA9ICJsaW5lIDFcCmxpbmUgMiI7CnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOwp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhDYXJyaWFnZVJldHVybiA9ICJsaW5lIDFcCmxpbmUgMiI7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lU2VwYXJhdG9yID0gImxpbmUgMVzigKhsaW5lIDIiO+KAqXZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjvigKl2YXIgc3RyaW5nTGl0ZXJhbFdpdGhOZXh0TGluZSA9ICJsaW5lIDFcwoVsaW5lIDIiOw== diff --git a/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt b/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt index 8f364cbe660d0..24fcbd646303a 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt @@ -142,7 +142,8 @@ sourceFile:sourceMap-LineBreaks.ts 5 > ^ 6 > ^ 7 > ^^^^^^^^^-> -1-> > +1-> + > 2 >var 3 > endsWithLineFeedCarriageReturn 4 > = @@ -163,7 +164,8 @@ sourceFile:sourceMap-LineBreaks.ts 5 > ^ 6 > ^ 1-> - > > + > + > 2 >var 3 > endsWithLineFeedCarriageReturnLineFeed 4 > = @@ -227,7 +229,8 @@ sourceFile:sourceMap-LineBreaks.ts 1 >Emitted(12, 8) Source(13, 8) + SourceIndex(0) 2 >Emitted(12, 9) Source(13, 9) + SourceIndex(0) --- ->>>var stringLiteralWithCarriageReturn = "line 1\ 1-> +>>>var stringLiteralWithCarriageReturn = "line 1\ +1-> 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^ @@ -245,7 +248,8 @@ sourceFile:sourceMap-LineBreaks.ts 1 >^^^^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"line 1\ >line 2" +1 >"line 1\ + >line 2" 2 > ; 1 >Emitted(14, 8) Source(15, 8) + SourceIndex(0) 2 >Emitted(14, 9) Source(15, 9) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMap-LineBreaks.types b/tests/baselines/reference/sourceMap-LineBreaks.types index 0a52ace81a6ee..d78c8caddc6b5 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.types +++ b/tests/baselines/reference/sourceMap-LineBreaks.types @@ -64,8 +64,8 @@ line 2"; var stringLiteralWithCarriageReturn = "line 1\ >stringLiteralWithCarriageReturn : string > : ^^^^^^ ->"line 1\ line 2" : "line 1line 2" -> : ^^^^^^^^^^^^^^ +>"line 1\line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ line 2"; From 6da6e502933b628d316a9ad29d373f6da3f1db63 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 14 Jan 2026 14:22:09 -0800 Subject: [PATCH 16/21] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/harness/harnessUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/harnessUtils.ts b/src/harness/harnessUtils.ts index 51f4a0ab0ab01..d24ecb065d41a 100644 --- a/src/harness/harnessUtils.ts +++ b/src/harness/harnessUtils.ts @@ -17,7 +17,7 @@ export function evalFile(fileContents: string, fileName: string, nodeContext?: a const newlineRegex = /\r\n?|\n/; -/** Splits the given string on \r\n, or on only \n if that fails, or on only \r if *that* fails. */ +/** Splits the given string on any line terminator (\r\n, \r, or \n). */ export function splitContentByNewlines(content: string): string[] { // Split up the input file by line const lines = content.split(newlineRegex); From c3efba9a13e26faf8451c1710a99612706512b5f Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 15 Jan 2026 00:21:59 +0000 Subject: [PATCH 17/21] Go back to `\r?\n`. --- src/harness/harnessUtils.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/harness/harnessUtils.ts b/src/harness/harnessUtils.ts index d24ecb065d41a..f768325897167 100644 --- a/src/harness/harnessUtils.ts +++ b/src/harness/harnessUtils.ts @@ -15,9 +15,12 @@ export function evalFile(fileContents: string, fileName: string, nodeContext?: a } } -const newlineRegex = /\r\n?|\n/; +const newlineRegex = /\r?\n/; -/** Splits the given string on any line terminator (\r\n, \r, or \n). */ +/** + * Splits the given string on the two reasonable line terminators (\r\n or \n). + * Does NOT split on `\r` alone, \u2028, or \u2029. + */ export function splitContentByNewlines(content: string): string[] { // Split up the input file by line const lines = content.split(newlineRegex); From cb38573bd32c8a6aaf2bb1267e26e49a472ccd2c Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 15 Jan 2026 00:26:43 +0000 Subject: [PATCH 18/21] Accepted baselines. --- tests/baselines/reference/sourceMap-LineBreaks.js | 12 ++++-------- .../baselines/reference/sourceMap-LineBreaks.js.map | 2 +- .../reference/sourceMap-LineBreaks.sourcemap.txt | 12 ++++-------- tests/baselines/reference/sourceMap-LineBreaks.types | 4 ++-- .../baselines/reference/templateStringMultiline3.js | 5 +---- .../reference/templateStringMultiline3.symbols | 1 + .../reference/templateStringMultiline3.types | 6 ++++-- .../reference/templateStringMultiline3_ES6.js | 9 +-------- .../reference/templateStringMultiline3_ES6.symbols | 4 ---- .../reference/templateStringMultiline3_ES6.types | 6 ------ 10 files changed, 18 insertions(+), 43 deletions(-) diff --git a/tests/baselines/reference/sourceMap-LineBreaks.js b/tests/baselines/reference/sourceMap-LineBreaks.js index 7a0564f7bf450..715e01c05c5fb 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.js +++ b/tests/baselines/reference/sourceMap-LineBreaks.js @@ -3,17 +3,14 @@ //// [sourceMap-LineBreaks.ts] var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; var endsWithCarriageReturnLineFeed = 1; -var endsWithCarriageReturn = 1; -var endsWithLineFeedCarriageReturn = 1; - -var endsWithLineFeedCarriageReturnLineFeed = 1; +var endsWithCarriageReturn = 1; var endsWithLineFeedCarriageReturn = 1; + var endsWithLineFeedCarriageReturnLineFeed = 1; var stringLiteralWithLineFeed = "line 1\ line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ line 2"; -var stringLiteralWithCarriageReturn = "line 1\ -line 2"; +var stringLiteralWithCarriageReturn = "line 1\ line 2"; var stringLiteralWithLineSeparator = "line 1\
line 2";
var stringLiteralWithParagraphSeparator = "line 1\
line 2";
var stringLiteralWithNextLine = "line 1\…line 2"; @@ -30,8 +27,7 @@ var stringLiteralWithLineFeed = "line 1\ line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ line 2"; -var stringLiteralWithCarriageReturn = "line 1\ -line 2"; +var stringLiteralWithCarriageReturn = "line 1\ line 2"; var stringLiteralWithLineSeparator = "line 1\
line 2"; var stringLiteralWithParagraphSeparator = "line 1\
line 2"; var stringLiteralWithNextLine = "line 1\…line 2"; diff --git a/tests/baselines/reference/sourceMap-LineBreaks.js.map b/tests/baselines/reference/sourceMap-LineBreaks.js.map index 99b2836e033d3..b9f8a26fbb4c5 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.js.map +++ b/tests/baselines/reference/sourceMap-LineBreaks.js.map @@ -1,3 +1,3 @@ //// [sourceMap-LineBreaks.js.map] {"version":3,"file":"sourceMap-LineBreaks.js","sourceRoot":"","sources":["sourceMap-LineBreaks.ts"],"names":[],"mappings":"AAAA,IAAI,qBAAqB,GAAG,EAAE,CAAC;AAC/B,IAAI,0BAA0B,GAAG,EAAE,CAAC;AACpC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AAAC,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACnD,IAAI,8BAA8B,GAAG,CAAC,CAAC;AACvC,IAAI,sBAAsB,GAAG,CAAC,CAAC;AAC/B,IAAI,8BAA8B,GAAG,CAAC,CAAC;AAEvC,IAAI,sCAAsC,GAAG,CAAC,CAAC;AAE/C,IAAI,yBAAyB,GAAG;OACzB,CAAC;AACR,IAAI,uCAAuC,GAAG;OACvC,CAAC;AACR,IAAI,+BAA+B,GAAG;OAC/B,CAAC;AAER,IAAI,8BAA8B,GAAG;OAC9B,CAAC;AACR,IAAI,mCAAmC,GAAG;OACnC,CAAC;AACR,IAAI,yBAAyB,GAAG,gBAAgB,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOw0KdmFyIGVuZHNXaXRoUGFyYWdyYXBoU2VwYXJhdG9yID0gMTA7DQp2YXIgZW5kc1dpdGhOZXh0TGluZSA9IDE7DQp2YXIgZW5kc1dpdGhMaW5lRmVlZCA9IDE7DQp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBlbmRzV2l0aENhcnJpYWdlUmV0dXJuID0gMTsNCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm4gPSAxOw0KdmFyIGVuZHNXaXRoTGluZUZlZWRDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aExpbmVGZWVkID0gImxpbmUgMVwKbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoQ2FycmlhZ2VSZXR1cm4gPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoTGluZVNlcGFyYXRvciA9ICJsaW5lIDFc4oCobGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aE5leHRMaW5lID0gImxpbmUgMVzChWxpbmUgMiI7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtTGluZUJyZWFrcy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUxpbmVCcmVha3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtTGluZUJyZWFrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUMvQixJQUFJLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUNwQyxJQUFJLGdCQUFnQixHQUFHLENBQUMsQ0FBQztBQUFDLElBQUksZ0JBQWdCLEdBQUcsQ0FBQyxDQUFDO0FBQ25ELElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBQ3ZDLElBQUksc0JBQXNCLEdBQUcsQ0FBQyxDQUFDO0FBQy9CLElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBRXZDLElBQUksc0NBQXNDLEdBQUcsQ0FBQyxDQUFDO0FBRS9DLElBQUkseUJBQXlCLEdBQUc7T0FDekIsQ0FBQztBQUNSLElBQUksdUNBQXVDLEdBQUc7T0FDdkMsQ0FBQztBQUNSLElBQUksK0JBQStCLEdBQUc7T0FDL0IsQ0FBQztBQUVSLElBQUksOEJBQThCLEdBQUc7T0FDOUIsQ0FBQztBQUNSLElBQUksbUNBQW1DLEdBQUc7T0FDbkMsQ0FBQztBQUNSLElBQUkseUJBQXlCLEdBQUcsZ0JBQWdCLENBQUMifQ==,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOyDigKh2YXIgZW5kc1dpdGhQYXJhZ3JhcGhTZXBhcmF0b3IgPSAxMDsg4oCpdmFyIGVuZHNXaXRoTmV4dExpbmUgPSAxO8KFdmFyIGVuZHNXaXRoTGluZUZlZWQgPSAxOwp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsKdmFyIGVuZHNXaXRoQ2FycmlhZ2VSZXR1cm4gPSAxOwp2YXIgZW5kc1dpdGhMaW5lRmVlZENhcnJpYWdlUmV0dXJuID0gMTsKCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm5MaW5lRmVlZCA9IDE7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lRmVlZCA9ICJsaW5lIDFcCmxpbmUgMiI7CnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOwp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhDYXJyaWFnZVJldHVybiA9ICJsaW5lIDFcCmxpbmUgMiI7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lU2VwYXJhdG9yID0gImxpbmUgMVzigKhsaW5lIDIiO+KAqXZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjvigKl2YXIgc3RyaW5nTGl0ZXJhbFdpdGhOZXh0TGluZSA9ICJsaW5lIDFcwoVsaW5lIDIiOw== +//// https://sokra.github.io/source-map-visualization#base64,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOw0KdmFyIGVuZHNXaXRoUGFyYWdyYXBoU2VwYXJhdG9yID0gMTA7DQp2YXIgZW5kc1dpdGhOZXh0TGluZSA9IDE7DQp2YXIgZW5kc1dpdGhMaW5lRmVlZCA9IDE7DQp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBlbmRzV2l0aENhcnJpYWdlUmV0dXJuID0gMTsNCnZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm4gPSAxOw0KdmFyIGVuZHNXaXRoTGluZUZlZWRDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aExpbmVGZWVkID0gImxpbmUgMVwKbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoQ2FycmlhZ2VSZXR1cm4gPSAibGluZSAxXA1saW5lIDIiOw0KdmFyIHN0cmluZ0xpdGVyYWxXaXRoTGluZVNlcGFyYXRvciA9ICJsaW5lIDFc4oCobGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjsNCnZhciBzdHJpbmdMaXRlcmFsV2l0aE5leHRMaW5lID0gImxpbmUgMVzChWxpbmUgMiI7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXAtTGluZUJyZWFrcy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwLUxpbmVCcmVha3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXAtTGluZUJyZWFrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUMvQixJQUFJLDBCQUEwQixHQUFHLEVBQUUsQ0FBQztBQUNwQyxJQUFJLGdCQUFnQixHQUFHLENBQUMsQ0FBQztBQUFDLElBQUksZ0JBQWdCLEdBQUcsQ0FBQyxDQUFDO0FBQ25ELElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBQ3ZDLElBQUksc0JBQXNCLEdBQUcsQ0FBQyxDQUFDO0FBQy9CLElBQUksOEJBQThCLEdBQUcsQ0FBQyxDQUFDO0FBRXZDLElBQUksc0NBQXNDLEdBQUcsQ0FBQyxDQUFDO0FBRS9DLElBQUkseUJBQXlCLEdBQUc7T0FDekIsQ0FBQztBQUNSLElBQUksdUNBQXVDLEdBQUc7T0FDdkMsQ0FBQztBQUNSLElBQUksK0JBQStCLEdBQUc7T0FDL0IsQ0FBQztBQUVSLElBQUksOEJBQThCLEdBQUc7T0FDOUIsQ0FBQztBQUNSLElBQUksbUNBQW1DLEdBQUc7T0FDbkMsQ0FBQztBQUNSLElBQUkseUJBQXlCLEdBQUcsZ0JBQWdCLENBQUMifQ==,dmFyIGVuZHNXaXRobGluZVNlcGFyYXRvciA9IDEwOyDigKh2YXIgZW5kc1dpdGhQYXJhZ3JhcGhTZXBhcmF0b3IgPSAxMDsg4oCpdmFyIGVuZHNXaXRoTmV4dExpbmUgPSAxO8KFdmFyIGVuZHNXaXRoTGluZUZlZWQgPSAxOwp2YXIgZW5kc1dpdGhDYXJyaWFnZVJldHVybkxpbmVGZWVkID0gMTsKdmFyIGVuZHNXaXRoQ2FycmlhZ2VSZXR1cm4gPSAxOw12YXIgZW5kc1dpdGhMaW5lRmVlZENhcnJpYWdlUmV0dXJuID0gMTsKDXZhciBlbmRzV2l0aExpbmVGZWVkQ2FycmlhZ2VSZXR1cm5MaW5lRmVlZCA9IDE7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lRmVlZCA9ICJsaW5lIDFcCmxpbmUgMiI7CnZhciBzdHJpbmdMaXRlcmFsV2l0aENhcnJpYWdlUmV0dXJuTGluZUZlZWQgPSAibGluZSAxXApsaW5lIDIiOwp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhDYXJyaWFnZVJldHVybiA9ICJsaW5lIDFcDWxpbmUgMiI7Cgp2YXIgc3RyaW5nTGl0ZXJhbFdpdGhMaW5lU2VwYXJhdG9yID0gImxpbmUgMVzigKhsaW5lIDIiO+KAqXZhciBzdHJpbmdMaXRlcmFsV2l0aFBhcmFncmFwaFNlcGFyYXRvciA9ICJsaW5lIDFc4oCpbGluZSAyIjvigKl2YXIgc3RyaW5nTGl0ZXJhbFdpdGhOZXh0TGluZSA9ICJsaW5lIDFcwoVsaW5lIDIiOw== diff --git a/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt b/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt index 24fcbd646303a..8f364cbe660d0 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-LineBreaks.sourcemap.txt @@ -142,8 +142,7 @@ sourceFile:sourceMap-LineBreaks.ts 5 > ^ 6 > ^ 7 > ^^^^^^^^^-> -1-> - > +1-> > 2 >var 3 > endsWithLineFeedCarriageReturn 4 > = @@ -164,8 +163,7 @@ sourceFile:sourceMap-LineBreaks.ts 5 > ^ 6 > ^ 1-> - > - > + > > 2 >var 3 > endsWithLineFeedCarriageReturnLineFeed 4 > = @@ -229,8 +227,7 @@ sourceFile:sourceMap-LineBreaks.ts 1 >Emitted(12, 8) Source(13, 8) + SourceIndex(0) 2 >Emitted(12, 9) Source(13, 9) + SourceIndex(0) --- ->>>var stringLiteralWithCarriageReturn = "line 1\ -1-> +>>>var stringLiteralWithCarriageReturn = "line 1\ 1-> 2 >^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^ @@ -248,8 +245,7 @@ sourceFile:sourceMap-LineBreaks.ts 1 >^^^^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"line 1\ - >line 2" +1 >"line 1\ >line 2" 2 > ; 1 >Emitted(14, 8) Source(15, 8) + SourceIndex(0) 2 >Emitted(14, 9) Source(15, 9) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMap-LineBreaks.types b/tests/baselines/reference/sourceMap-LineBreaks.types index d78c8caddc6b5..0a52ace81a6ee 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.types +++ b/tests/baselines/reference/sourceMap-LineBreaks.types @@ -64,8 +64,8 @@ line 2"; var stringLiteralWithCarriageReturn = "line 1\ >stringLiteralWithCarriageReturn : string > : ^^^^^^ ->"line 1\line 2" : "line 1line 2" -> : ^^^^^^^^^^^^^^ +>"line 1\ line 2" : "line 1line 2" +> : ^^^^^^^^^^^^^^ line 2"; diff --git a/tests/baselines/reference/templateStringMultiline3.js b/tests/baselines/reference/templateStringMultiline3.js index dfc198fcdd736..b565f6006a337 100644 --- a/tests/baselines/reference/templateStringMultiline3.js +++ b/tests/baselines/reference/templateStringMultiline3.js @@ -1,10 +1,7 @@ //// [tests/cases/conformance/es6/templates/templateStringMultiline3.ts] //// //// [templateStringMultiline3.ts] -// newlines are -` -\ -` + // newlines are ` \ ` //// [templateStringMultiline3.js] // newlines are diff --git a/tests/baselines/reference/templateStringMultiline3.symbols b/tests/baselines/reference/templateStringMultiline3.symbols index 7c687d9c91d8f..7d5d6a0b20ec2 100644 --- a/tests/baselines/reference/templateStringMultiline3.symbols +++ b/tests/baselines/reference/templateStringMultiline3.symbols @@ -2,6 +2,7 @@ === templateStringMultiline3.ts === + // newlines are ` \ diff --git a/tests/baselines/reference/templateStringMultiline3.types b/tests/baselines/reference/templateStringMultiline3.types index 57d5ea088ef2b..c6ce0adfa27b9 100644 --- a/tests/baselines/reference/templateStringMultiline3.types +++ b/tests/baselines/reference/templateStringMultiline3.types @@ -1,10 +1,12 @@ //// [tests/cases/conformance/es6/templates/templateStringMultiline3.ts] //// === templateStringMultiline3.ts === + + // newlines are ` ->`\` : "\n" -> : ^^^^ +>` \ ` : "\n" +> : ^^^^ \ ` diff --git a/tests/baselines/reference/templateStringMultiline3_ES6.js b/tests/baselines/reference/templateStringMultiline3_ES6.js index 8d8f80c654f0a..ef2552a932fc3 100644 --- a/tests/baselines/reference/templateStringMultiline3_ES6.js +++ b/tests/baselines/reference/templateStringMultiline3_ES6.js @@ -1,13 +1,6 @@ //// [tests/cases/conformance/es6/templates/templateStringMultiline3_ES6.ts] //// //// [templateStringMultiline3_ES6.ts] -// newlines are -` -\ -` + //// [templateStringMultiline3_ES6.js] -// newlines are -` -\ -`; diff --git a/tests/baselines/reference/templateStringMultiline3_ES6.symbols b/tests/baselines/reference/templateStringMultiline3_ES6.symbols index 0ba6c719beba4..fddb618384aff 100644 --- a/tests/baselines/reference/templateStringMultiline3_ES6.symbols +++ b/tests/baselines/reference/templateStringMultiline3_ES6.symbols @@ -2,7 +2,3 @@ === templateStringMultiline3_ES6.ts === -// newlines are -` -\ -` diff --git a/tests/baselines/reference/templateStringMultiline3_ES6.types b/tests/baselines/reference/templateStringMultiline3_ES6.types index d24a6ace43c6f..fddb618384aff 100644 --- a/tests/baselines/reference/templateStringMultiline3_ES6.types +++ b/tests/baselines/reference/templateStringMultiline3_ES6.types @@ -1,10 +1,4 @@ //// [tests/cases/conformance/es6/templates/templateStringMultiline3_ES6.ts] //// === templateStringMultiline3_ES6.ts === -// newlines are -` ->`\` : "\n" -> : ^^^^ -\ -` From da0cbdf4d8fea37bf1b63fabf96b0265cb28f876 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 15 Jan 2026 00:29:57 +0000 Subject: [PATCH 19/21] Revert "Add `@strict: false` to most tests that have changes in `.errors.txt`" This reverts commit 614be3bcae8b52a4781f2763f9020a80e91b6f26. --- .../ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts | 1 - tests/cases/compiler/accessorDeclarationEmitJs.ts | 1 - tests/cases/compiler/accessorParameterAccessibilityModifier.ts | 1 - tests/cases/compiler/accessorWithInitializer.ts | 1 - tests/cases/compiler/accessorWithRestParam.ts | 1 - tests/cases/compiler/accessorWithoutBody1.ts | 1 - tests/cases/compiler/accessorWithoutBody2.ts | 1 - tests/cases/compiler/accessorsEmit.ts | 1 - tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts | 1 - tests/cases/compiler/allowSyntheticDefaultImports10.ts | 1 - tests/cases/compiler/allowSyntheticDefaultImports7.ts | 1 - tests/cases/compiler/allowSyntheticDefaultImports8.ts | 1 - tests/cases/compiler/allowSyntheticDefaultImports9.ts | 1 - tests/cases/compiler/ambientClassDeclarationWithExtends.ts | 1 - tests/cases/compiler/ambientClassOverloadForFunction.ts | 1 - tests/cases/compiler/ambientFundule.ts | 1 - tests/cases/compiler/ambientWithStatements.ts | 1 - tests/cases/compiler/ambiguousGenericAssertion1.ts | 1 - tests/cases/compiler/ambiguousOverload.ts | 1 - tests/cases/compiler/ambiguousOverloadResolution.ts | 1 - tests/cases/compiler/amdLikeInputDeclarationEmit.ts | 1 - tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts | 1 - tests/cases/compiler/anyIdenticalToItself.ts | 1 - tests/cases/compiler/argumentsAsPropertyName.ts | 1 - tests/cases/compiler/argumentsAsPropertyName2.ts | 1 - .../cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts | 1 - tests/cases/compiler/argumentsObjectCreatesRestForJs.ts | 1 - tests/cases/compiler/argumentsPropertyNameInJsMode1.ts | 1 - tests/cases/compiler/argumentsPropertyNameInJsMode2.ts | 1 - tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts | 1 - tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts | 1 - tests/cases/compiler/arrayAssignmentTest2.ts | 1 - tests/cases/compiler/arrayAssignmentTest4.ts | 1 - tests/cases/compiler/arrayFromAsync.ts | 1 - tests/cases/compiler/arrayIndexWithArrayFails.ts | 1 - .../cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts | 1 - tests/cases/compiler/arrowFunctionErrorSpan.ts | 1 - tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts | 1 - tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts | 1 - tests/cases/compiler/arrowFunctionsMissingTokens.ts | 1 - tests/cases/compiler/asiAbstract.ts | 1 - tests/cases/compiler/asiPublicPrivateProtected.ts | 1 - tests/cases/compiler/assertInWrapSomeTypeParameter.ts | 1 - tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts | 1 - tests/cases/compiler/assignmentCompatForEnums.ts | 1 - .../assignmentCompatInterfaceWithStringIndexSignature.ts | 1 - tests/cases/compiler/assignmentCompatability37.ts | 1 - tests/cases/compiler/assignmentCompatability38.ts | 1 - ...patability_checking-apply-member-off-of-function-interface.ts | 1 - ...mpatability_checking-call-member-off-of-function-interface.ts | 1 - tests/cases/compiler/assignmentNonObjectTypeConstraints.ts | 1 - tests/cases/compiler/assignmentToObjectAndFunction.ts | 1 - tests/cases/compiler/assignmentToReferenceTypes.ts | 1 - tests/cases/compiler/asyncFunctionTempVariableScoping.ts | 1 - tests/cases/compiler/augmentExportEquals1.ts | 1 - tests/cases/compiler/augmentExportEquals1_1.ts | 1 - tests/cases/compiler/augmentExportEquals2.ts | 1 - tests/cases/compiler/augmentExportEquals2_1.ts | 1 - tests/cases/compiler/augmentExportEquals3.ts | 1 - tests/cases/compiler/augmentExportEquals3_1.ts | 1 - tests/cases/compiler/augmentExportEquals4.ts | 1 - tests/cases/compiler/augmentExportEquals4_1.ts | 1 - tests/cases/compiler/augmentExportEquals6.ts | 1 - tests/cases/compiler/augmentExportEquals6_1.ts | 1 - .../compiler/augmentedClassWithPrototypePropertyOnModule.ts | 1 - tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts | 1 - tests/cases/compiler/avoid.ts | 1 - ...ListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts | 1 - tests/cases/compiler/awaitInNonAsyncFunction.ts | 1 - tests/cases/compiler/awaitedTypeCrash.ts | 1 - tests/cases/compiler/awaitedTypeJQuery.ts | 1 - tests/cases/compiler/badArraySyntax.ts | 1 - tests/cases/compiler/baseConstraintOfDecorator.ts | 1 - tests/cases/compiler/bases.ts | 1 - tests/cases/compiler/bestCommonTypeWithContextualTyping.ts | 1 - tests/cases/compiler/bigintIndex.ts | 1 - tests/cases/compiler/bigintWithLib.ts | 1 - tests/cases/compiler/binopAssignmentShouldHaveType.ts | 1 - tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts | 1 - tests/cases/compiler/blockScopedNamespaceDifferentFile.ts | 1 - tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts | 1 - tests/cases/compiler/callOverloads1.ts | 1 - tests/cases/compiler/callOverloads2.ts | 1 - tests/cases/compiler/callOverloads5.ts | 1 - tests/cases/compiler/callbackArgsDifferByOptionality.ts | 1 - tests/cases/compiler/capturedLetConstInLoop1.ts | 1 - tests/cases/compiler/capturedLetConstInLoop10.ts | 1 - tests/cases/compiler/capturedLetConstInLoop10_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop11.ts | 1 - tests/cases/compiler/capturedLetConstInLoop11_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop12.ts | 1 - tests/cases/compiler/capturedLetConstInLoop13.ts | 1 - tests/cases/compiler/capturedLetConstInLoop1_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop2.ts | 1 - tests/cases/compiler/capturedLetConstInLoop2_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop3.ts | 1 - tests/cases/compiler/capturedLetConstInLoop3_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop4.ts | 1 - tests/cases/compiler/capturedLetConstInLoop4_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop5.ts | 1 - tests/cases/compiler/capturedLetConstInLoop5_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop6_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop7.ts | 1 - tests/cases/compiler/capturedLetConstInLoop7_ES6.ts | 1 - tests/cases/compiler/capturedLetConstInLoop9.ts | 1 - tests/cases/compiler/capturedLetConstInLoop9_ES6.ts | 1 - tests/cases/compiler/capturedParametersInInitializers1.ts | 1 - tests/cases/compiler/capturedVarInLoop.ts | 1 - tests/cases/compiler/castExpressionParentheses.ts | 1 - tests/cases/compiler/chainedAssignment1.ts | 1 - tests/cases/compiler/chainedAssignmentChecking.ts | 1 - ...ainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts | 1 - ...inedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts | 1 - tests/cases/compiler/checkInfiniteExpansionTermination.ts | 1 - tests/cases/compiler/checkInfiniteExpansionTermination2.ts | 1 - tests/cases/compiler/checkJsxNotSetError.ts | 1 - ...gObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts | 1 - tests/cases/compiler/classExpressionWithStaticProperties2.ts | 1 - tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts | 1 - tests/cases/compiler/classImplementingInterfaceIndexer.ts | 1 - tests/cases/compiler/classImplementsImportedInterface.ts | 1 - tests/cases/compiler/classMemberInitializerScoping.ts | 1 - tests/cases/compiler/classMemberInitializerScoping2.ts | 1 - tests/cases/compiler/classMemberWithMissingIdentifier.ts | 1 - tests/cases/compiler/classMemberWithMissingIdentifier2.ts | 1 - tests/cases/compiler/classUpdateTests.ts | 1 - tests/cases/compiler/classWithMultipleBaseClasses.ts | 1 - .../cases/compiler/classWithOverloadImplementationOfWrongName.ts | 1 - .../compiler/classWithOverloadImplementationOfWrongName2.ts | 1 - tests/cases/compiler/classdecl.ts | 1 - tests/cases/compiler/cloduleTest2.ts | 1 - tests/cases/compiler/cloduleWithDuplicateMember2.ts | 1 - tests/cases/compiler/collisionArgumentsArrowFunctions.ts | 1 - tests/cases/compiler/collisionArgumentsClassConstructor.ts | 1 - tests/cases/compiler/collisionArgumentsClassMethod.ts | 1 - tests/cases/compiler/collisionArgumentsFunction.ts | 1 - tests/cases/compiler/collisionArgumentsFunctionExpressions.ts | 1 - tests/cases/compiler/collisionArgumentsInType.ts | 1 - tests/cases/compiler/collisionArgumentsInterfaceMembers.ts | 1 - .../cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts | 1 - .../compiler/collisionCodeGenModuleWithConstructorChildren.ts | 1 - .../cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts | 1 - tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts | 1 - tests/cases/compiler/collisionRestParameterArrowFunctions.ts | 1 - tests/cases/compiler/collisionRestParameterClassConstructor.ts | 1 - tests/cases/compiler/collisionRestParameterClassMethod.ts | 1 - tests/cases/compiler/collisionRestParameterFunction.ts | 1 - .../cases/compiler/collisionRestParameterFunctionExpressions.ts | 1 - tests/cases/compiler/collisionRestParameterInType.ts | 1 - tests/cases/compiler/collisionRestParameterInterfaceMembers.ts | 1 - tests/cases/compiler/collisionSuperAndNameResolution.ts | 1 - tests/cases/compiler/collisionSuperAndParameter.ts | 1 - tests/cases/compiler/collisionSuperAndParameter1.ts | 1 - .../compiler/collisionThisExpressionAndLocalVarInAccessors.ts | 1 - .../compiler/collisionThisExpressionAndLocalVarInConstructor.ts | 1 - .../compiler/collisionThisExpressionAndLocalVarInFunction.ts | 1 - .../cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts | 1 - .../cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts | 1 - .../compiler/collisionThisExpressionAndLocalVarInProperty.ts | 1 - tests/cases/compiler/collisionThisExpressionAndNameResolution.ts | 1 - tests/cases/compiler/collisionThisExpressionAndParameter.ts | 1 - ...ollisionThisExpressionAndPropertyNameAsConstuctorParameter.ts | 1 - tests/cases/compiler/commentOnAmbientModule.ts | 1 - tests/cases/compiler/commentOnAmbientfunction.ts | 1 - tests/cases/compiler/commentOnSignature1.ts | 1 - tests/cases/compiler/commentsAfterFunctionExpression1.ts | 1 - tests/cases/compiler/commentsAfterSpread.ts | 1 - tests/cases/compiler/commentsBeforeFunctionExpression1.ts | 1 - tests/cases/compiler/commentsCommentParsing.ts | 1 - tests/cases/compiler/commentsInterface.ts | 1 - tests/cases/compiler/commentsOnObjectLiteral2.ts | 1 - tests/cases/compiler/commentsOverloads.ts | 1 - tests/cases/compiler/commentsdoNotEmitComments.ts | 1 - tests/cases/compiler/commentsemitComments.ts | 1 - tests/cases/compiler/commonMissingSemicolons.ts | 1 - tests/cases/compiler/complexNarrowingWithAny.ts | 1 - tests/cases/compiler/complicatedPrivacy.ts | 1 - .../cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts | 1 - tests/cases/compiler/conditionalExpressions2.ts | 1 - tests/cases/compiler/constDeclarations-access.ts | 1 - tests/cases/compiler/constDeclarations-access2.ts | 1 - tests/cases/compiler/constDeclarations-access3.ts | 1 - tests/cases/compiler/constDeclarations-access4.ts | 1 - tests/cases/compiler/constDeclarations-access5.ts | 1 - tests/cases/compiler/constDeclarations-ambient-errors.ts | 1 - tests/cases/compiler/constDeclarations-ambient.ts | 1 - tests/cases/compiler/constDeclarations-errors.ts | 1 - tests/cases/compiler/constDeclarations-es5.ts | 1 - tests/cases/compiler/constDeclarations-invalidContexts.ts | 1 - tests/cases/compiler/constDeclarations-scopes.ts | 1 - tests/cases/compiler/constDeclarations-scopes2.ts | 1 - tests/cases/compiler/constDeclarations-useBeforeDefinition.ts | 1 - tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts | 1 - tests/cases/compiler/constDeclarations-validContexts.ts | 1 - tests/cases/compiler/constDeclarations.ts | 1 - tests/cases/compiler/constDeclarations2.ts | 1 - ...onstraintReferencingTypeParameterFromSameTypeParameterList.ts | 1 - tests/cases/compiler/constructorOverloads7.ts | 1 - tests/cases/compiler/constructorOverloads8.ts | 1 - tests/cases/compiler/constructorStaticParamName.ts | 1 - tests/cases/compiler/constructorStaticParamNameErrors.ts | 1 - tests/cases/compiler/constructorsWithSpecializedSignatures.ts | 1 - .../compiler/contextualSignatureInstatiationContravariance.ts | 1 - .../cases/compiler/contextualSignatureInstatiationCovariance.ts | 1 - tests/cases/compiler/contextualTyping.ts | 1 - .../compiler/contextualTypingArrayDestructuringWithDefaults.ts | 1 - tests/cases/compiler/contextualTypingArrayOfLambdas.ts | 1 - .../cases/compiler/contextualTypingFunctionReturningFunction.ts | 1 - .../cases/compiler/contextualTypingFunctionReturningFunction2.ts | 1 - tests/cases/compiler/contextualTypingOfAccessors.ts | 1 - tests/cases/compiler/contextualTypingOfArrayLiterals1.ts | 1 - tests/cases/compiler/contextualTypingOfConditionalExpression.ts | 1 - tests/cases/compiler/contextualTypingOfConditionalExpression2.ts | 1 - .../compiler/contextualTypingOfGenericFunctionTypedArguments1.ts | 1 - tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts | 1 - .../compiler/contextualTypingOfLambdaWithMultipleSignatures.ts | 1 - .../compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts | 1 - tests/cases/compiler/contextualTypingOfObjectLiterals.ts | 1 - tests/cases/compiler/contextualTypingOfObjectLiterals2.ts | 1 - tests/cases/compiler/contextualTypingOfTooShortOverloads.ts | 1 - .../compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts | 1 - tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts | 1 - tests/cases/compiler/contextuallyTypingOrOperator.ts | 1 - tests/cases/compiler/contextuallyTypingOrOperator2.ts | 1 - tests/cases/compiler/contextuallyTypingOrOperator3.ts | 1 - tests/cases/compiler/controlFlowPropertyDeclarations.ts | 1 - tests/cases/compiler/convertKeywordsYes.ts | 1 - tests/cases/compiler/crashInEmitTokenWithComment.ts | 1 - tests/cases/compiler/crashInresolveReturnStatement.ts | 1 - tests/cases/compiler/crashIntypeCheckInvocationExpression.ts | 1 - tests/cases/compiler/createArray.ts | 1 - tests/cases/compiler/declFileConstructSignatures.ts | 1 - .../compiler/declFileExportAssignmentImportInternalModule.ts | 1 - tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts | 1 - .../compiler/declFileForClassWithPrivateOverloadedFunction.ts | 1 - tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts | 1 - tests/cases/compiler/declFileForInterfaceWithRestParams.ts | 1 - tests/cases/compiler/declFileFunctions.ts | 1 - tests/cases/compiler/declFileImportModuleWithExportAssignment.ts | 1 - tests/cases/compiler/declFileOptionalInterfaceMethod.ts | 1 - tests/cases/compiler/declFilePrivateMethodOverloads.ts | 1 - tests/cases/compiler/declFilePrivateStatic.ts | 1 - tests/cases/compiler/declFileRegressionTests.ts | 1 - .../compiler/declFileRestParametersOfFunctionAndFunctionType.ts | 1 - tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts | 1 - tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts | 1 - .../compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts | 1 - tests/cases/compiler/declFileTypeofFunction.ts | 1 - tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts | 1 - .../compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts | 1 - tests/cases/compiler/declInput-2.ts | 1 - tests/cases/compiler/declInput.ts | 1 - tests/cases/compiler/declInput3.ts | 1 - tests/cases/compiler/declInput4.ts | 1 - tests/cases/compiler/declarationEmitAliasExportStar.ts | 1 - tests/cases/compiler/declarationEmitBindingPatterns.ts | 1 - .../cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts | 1 - tests/cases/compiler/declarationEmitBindingPatternsUnused.ts | 1 - tests/cases/compiler/declarationEmitClassMemberNameConflict.ts | 1 - tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts | 1 - .../compiler/declarationEmitDefaultExportWithStaticAssignment.ts | 1 - tests/cases/compiler/declarationEmitDestructuring2.ts | 1 - tests/cases/compiler/declarationEmitDestructuring3.ts | 1 - tests/cases/compiler/declarationEmitNameConflicts2.ts | 1 - tests/cases/compiler/declarationEmitProtectedMembers.ts | 1 - tests/cases/compiler/declarationMaps.ts | 1 - tests/cases/compiler/declarationMapsMultifile.ts | 1 - tests/cases/compiler/declarationMapsOutFile.ts | 1 - tests/cases/compiler/declarationMapsOutFile2.ts | 1 - tests/cases/compiler/declarationMapsWithSourceMap.ts | 1 - tests/cases/compiler/declarationMapsWithoutDeclaration.ts | 1 - tests/cases/compiler/declarationMerging1.ts | 1 - tests/cases/compiler/declarationMerging2.ts | 1 - tests/cases/compiler/declareAlreadySeen.ts | 1 - tests/cases/compiler/declareFileExportAssignment.ts | 1 - .../declareFileExportAssignmentWithVarFromVariableStatement.ts | 1 - tests/cases/compiler/declaredExternalModule.ts | 1 - .../cases/compiler/declaredExternalModuleWithExportAssignment.ts | 1 - tests/cases/compiler/decoratorMetadataNoStrictNull.ts | 1 - tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision2.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision3.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision4.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision5.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision6.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision7.ts | 1 - .../decoratorMetadataWithImportDeclarationNameCollision8.ts | 1 - tests/cases/compiler/decoratorReferenceOnOtherProperty.ts | 1 - tests/cases/compiler/decoratorReferences.ts | 1 - tests/cases/compiler/decrementAndIncrementOperators.ts | 1 - tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts | 1 - tests/cases/compiler/defaultArgsInFunctionExpressions.ts | 1 - tests/cases/compiler/defaultArgsInOverloads.ts | 1 - tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts | 1 - tests/cases/compiler/defaultIndexProps2.ts | 1 - tests/cases/compiler/defaultValueInFunctionOverload1.ts | 1 - tests/cases/compiler/defineVariables_useDefineForClassFields.ts | 1 - tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts | 1 - tests/cases/compiler/deleteReadonly.ts | 1 - .../compiler/derivedTypeCallingBaseImplWithOptionalParams.ts | 1 - tests/cases/compiler/destructuringControlFlowNoCrash.ts | 1 - tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts | 1 - .../compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts | 1 - tests/cases/compiler/dontShowCompilerGeneratedMembers.ts | 1 - tests/cases/compiler/dottedModuleName.ts | 1 - tests/cases/compiler/dottedModuleName2.ts | 1 - tests/cases/compiler/downlevelLetConst14.ts | 1 - tests/cases/compiler/downlevelLetConst15.ts | 1 - tests/cases/compiler/downlevelLetConst16.ts | 1 - tests/cases/compiler/downlevelLetConst17.ts | 1 - tests/cases/compiler/downlevelLetConst18.ts | 1 - tests/cases/compiler/downlevelLetConst19.ts | 1 - tests/cases/compiler/duplicateClassElements.ts | 1 - tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts | 1 - .../compiler/duplicateIdentifiersAcrossContainerBoundaries.ts | 1 - tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts | 1 - .../compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts | 1 - tests/cases/compiler/emitDecoratorMetadata_restArgs.ts | 1 - tests/cases/compiler/emitThisInObjectLiteralGetter.ts | 1 - tests/cases/compiler/emptyArgumentsListComment.ts | 1 - tests/cases/compiler/enumBasics1.ts | 1 - tests/cases/compiler/enumBasics2.ts | 1 - tests/cases/compiler/enumBasics3.ts | 1 - tests/cases/compiler/enumIndexer.ts | 1 - tests/cases/compiler/errorElaboration.ts | 1 - .../errorElaborationDivesIntoApparentlyPresentPropsOnly.ts | 1 - tests/cases/compiler/errorForConflictingExportEqualsValue.ts | 1 - tests/cases/compiler/errorMessagesIntersectionTypes03.ts | 1 - tests/cases/compiler/errorMessagesIntersectionTypes04.ts | 1 - tests/cases/compiler/errorsInGenericTypeReference.ts | 1 - tests/cases/compiler/es5-asyncFunction.ts | 1 - tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts | 1 - tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts | 1 - tests/cases/compiler/es5-asyncFunctionCallExpressions.ts | 1 - tests/cases/compiler/es5-asyncFunctionConditionals.ts | 1 - tests/cases/compiler/es5-asyncFunctionDoStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionElementAccess.ts | 1 - tests/cases/compiler/es5-asyncFunctionForInStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionForOfStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionForStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionHoisting.ts | 1 - tests/cases/compiler/es5-asyncFunctionIfStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts | 1 - tests/cases/compiler/es5-asyncFunctionNestedLoops.ts | 1 - tests/cases/compiler/es5-asyncFunctionNewExpressions.ts | 1 - tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts | 1 - tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts | 1 - tests/cases/compiler/es5-asyncFunctionReturnStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionTryStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionWhileStatements.ts | 1 - tests/cases/compiler/es5-asyncFunctionWithStatements.ts | 1 - tests/cases/compiler/es5-commonjs7.ts | 1 - tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts | 1 - tests/cases/compiler/es6ClassTest.ts | 1 - tests/cases/compiler/es6ClassTest2.ts | 1 - tests/cases/compiler/es6ClassTest3.ts | 1 - tests/cases/compiler/es6ClassTest4.ts | 1 - tests/cases/compiler/es6ClassTest5.ts | 1 - tests/cases/compiler/es6ClassTest7.ts | 1 - tests/cases/compiler/es6ClassTest8.ts | 1 - tests/cases/compiler/es6ClassTest9.ts | 1 - tests/cases/compiler/es6ExportEqualsInterop.ts | 1 - tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts | 1 - tests/cases/compiler/evalAfter0.ts | 1 - tests/cases/compiler/excessPropertyCheckWithSpread.ts | 1 - tests/cases/compiler/expandoFunctionContextualTypesJs.ts | 1 - tests/cases/compiler/expandoFunctionNestedAssigments.ts | 1 - tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts | 1 - tests/cases/compiler/exportAlreadySeen.ts | 1 - tests/cases/compiler/exportAsNamespace.d.ts | 1 - tests/cases/compiler/exportAssignmentError.ts | 1 - tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts | 1 - tests/cases/compiler/exportAssignmentInternalModule.ts | 1 - .../compiler/exportAssignmentWithImportStatementPrivacyError.ts | 1 - tests/cases/compiler/exportAssignmentWithPrivacyError.ts | 1 - tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts | 1 - tests/cases/compiler/exportDeclareClass1.ts | 1 - tests/cases/compiler/exportEqualErrorType.ts | 1 - tests/cases/compiler/exportEqualMemberMissing.ts | 1 - tests/cases/compiler/exportImportMultipleFiles.ts | 1 - .../compiler/exportSpecifierAndExportedMemberDeclaration.ts | 1 - tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts | 1 - tests/cases/compiler/exportStarForValues.ts | 1 - tests/cases/compiler/exportStarForValues10.ts | 1 - tests/cases/compiler/exportStarForValues2.ts | 1 - tests/cases/compiler/exportStarForValues3.ts | 1 - tests/cases/compiler/exportStarForValues4.ts | 1 - tests/cases/compiler/exportStarForValues5.ts | 1 - tests/cases/compiler/exportStarForValues6.ts | 1 - tests/cases/compiler/exportStarForValues7.ts | 1 - tests/cases/compiler/exportStarForValues8.ts | 1 - tests/cases/compiler/exportStarForValues9.ts | 1 - tests/cases/compiler/exportStarForValuesInSystem.ts | 1 - tests/cases/compiler/exportStarFromEmptyModule.ts | 1 - tests/cases/compiler/exportedBlockScopedDeclarations.ts | 1 - tests/cases/compiler/expressionTypeNodeShouldError.ts | 1 - .../compiler/expressionsForbiddenInParameterInitializers.ts | 1 - tests/cases/compiler/extendArray.ts | 1 - tests/cases/compiler/extendGlobalThis.ts | 1 - tests/cases/compiler/extendGlobalThis2.ts | 1 - tests/cases/compiler/extendNonClassSymbol2.ts | 1 - tests/cases/compiler/extendsUntypedModule.ts | 1 - tests/cases/compiler/extension.ts | 1 - tests/cases/compiler/externSemantics.ts | 1 - tests/cases/compiler/externSyntax.ts | 1 - tests/cases/compiler/externalModuleImmutableBindings.ts | 1 - .../externalModuleRefernceResolutionOrderInImportDeclaration.ts | 1 - tests/cases/compiler/fallFromLastCase1.ts | 1 - tests/cases/compiler/fallFromLastCase2.ts | 1 - tests/cases/compiler/fatarrowfunctions.ts | 1 - tests/cases/compiler/fatarrowfunctionsErrors.ts | 1 - .../compiler/fatarrowfunctionsInFunctionParameterDefaults.ts | 1 - tests/cases/compiler/fatarrowfunctionsInFunctions.ts | 1 - tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts | 1 - tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts | 1 - tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts | 1 - tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts | 1 - tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts | 1 - tests/cases/compiler/findLast.ts | 1 - tests/cases/compiler/fixingTypeParametersRepeatedly1.ts | 1 - tests/cases/compiler/fixingTypeParametersRepeatedly2.ts | 1 - tests/cases/compiler/fixingTypeParametersRepeatedly3.ts | 1 - tests/cases/compiler/forIn.ts | 1 - tests/cases/compiler/forIn2.ts | 1 - tests/cases/compiler/forInModule.ts | 1 - tests/cases/compiler/forInStatement1.ts | 1 - tests/cases/compiler/forInStatement2.ts | 1 - tests/cases/compiler/forInStatement3.ts | 1 - tests/cases/compiler/forInStatement4.ts | 1 - tests/cases/compiler/forInStatement5.ts | 1 - tests/cases/compiler/forInStatement6.ts | 1 - tests/cases/compiler/forInStatement7.ts | 1 - tests/cases/compiler/forStatementInnerComments.ts | 1 - tests/cases/compiler/funClodule.ts | 1 - tests/cases/compiler/funcdecl.ts | 1 - tests/cases/compiler/functionAssignment.ts | 1 - tests/cases/compiler/functionAssignmentError.ts | 1 - tests/cases/compiler/functionCall18.ts | 1 - tests/cases/compiler/functionCall5.ts | 1 - tests/cases/compiler/functionCall7.ts | 1 - .../functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts | 1 - .../cases/compiler/functionExpressionAndLambdaMatchesFunction.ts | 1 - tests/cases/compiler/functionExpressionNames.ts | 1 - tests/cases/compiler/functionInIfStatementInModule.ts | 1 - tests/cases/compiler/functionOverloadAmbiguity1.ts | 1 - .../cases/compiler/functionOverloadImplementationOfWrongName.ts | 1 - .../cases/compiler/functionOverloadImplementationOfWrongName2.ts | 1 - tests/cases/compiler/functionOverloads1.ts | 1 - tests/cases/compiler/functionOverloads10.ts | 1 - tests/cases/compiler/functionOverloads11.ts | 1 - tests/cases/compiler/functionOverloads12.ts | 1 - tests/cases/compiler/functionOverloads13.ts | 1 - tests/cases/compiler/functionOverloads14.ts | 1 - tests/cases/compiler/functionOverloads15.ts | 1 - tests/cases/compiler/functionOverloads16.ts | 1 - tests/cases/compiler/functionOverloads17.ts | 1 - tests/cases/compiler/functionOverloads18.ts | 1 - tests/cases/compiler/functionOverloads19.ts | 1 - tests/cases/compiler/functionOverloads21.ts | 1 - tests/cases/compiler/functionOverloads23.ts | 1 - tests/cases/compiler/functionOverloads24.ts | 1 - tests/cases/compiler/functionOverloads44.ts | 1 - tests/cases/compiler/functionOverloads45.ts | 1 - tests/cases/compiler/functionOverloads5.ts | 1 - tests/cases/compiler/functionOverloads6.ts | 1 - tests/cases/compiler/functionOverloads7.ts | 1 - tests/cases/compiler/functionOverloads8.ts | 1 - tests/cases/compiler/functionOverloads9.ts | 1 - tests/cases/compiler/functionParameterArityMismatch.ts | 1 - tests/cases/compiler/functionSubtypingOfVarArgs.ts | 1 - tests/cases/compiler/functionSubtypingOfVarArgs2.ts | 1 - tests/cases/compiler/functionTypeArgumentArityErrors.ts | 1 - tests/cases/compiler/functionTypesLackingReturnTypes.ts | 1 - .../compiler/functionWithDefaultParameterWithNoStatements8.ts | 1 - tests/cases/compiler/generatorES6InAMDModule.ts | 1 - tests/cases/compiler/generatorES6_1.ts | 1 - tests/cases/compiler/generatorES6_6.ts | 1 - tests/cases/compiler/genericCallWithFixedArguments.ts | 1 - .../compiler/genericClassPropertyInheritanceSpecialization.ts | 1 - .../cases/compiler/genericClassWithStaticsUsingTypeArguments.ts | 1 - tests/cases/compiler/genericClassesInModule2.ts | 1 - tests/cases/compiler/genericConstraint2.ts | 1 - tests/cases/compiler/genericConstructSignatureInInterface.ts | 1 - tests/cases/compiler/genericDefaultsJs.ts | 1 - tests/cases/compiler/genericFunctionSpecializations1.ts | 1 - tests/cases/compiler/genericImplements.ts | 1 - tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts | 1 - tests/cases/compiler/genericOverloadSignatures.ts | 1 - tests/cases/compiler/genericPrototypeProperty2.ts | 1 - tests/cases/compiler/genericTypeAssertions3.ts | 1 - tests/cases/compiler/genericTypeAssertions6.ts | 1 - tests/cases/compiler/genericTypeParameterEquivalence2.ts | 1 - tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts | 1 - tests/cases/compiler/getAndSetAsMemberNames.ts | 1 - tests/cases/compiler/getterSetterNonAccessor.ts | 1 - tests/cases/compiler/giant.ts | 1 - tests/cases/compiler/globalThisCapture.ts | 1 - tests/cases/compiler/grammarAmbiguities1.ts | 1 - tests/cases/compiler/heterogeneousArrayAndOverloads.ts | 1 - tests/cases/compiler/icomparable.ts | 1 - tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts | 1 - tests/cases/compiler/importHelpersES6.ts | 1 - tests/cases/compiler/inOperator.ts | 1 - tests/cases/compiler/inOperatorWithFunction.ts | 1 - tests/cases/compiler/inOperatorWithGeneric.ts | 1 - tests/cases/compiler/incompatibleTypes.ts | 1 - tests/cases/compiler/incorrectClassOverloadChain.ts | 1 - tests/cases/compiler/indexClassByNumber.ts | 1 - tests/cases/compiler/indexTypeCheck.ts | 1 - tests/cases/compiler/indexerSignatureWithRestParam.ts | 1 - tests/cases/compiler/indirectTypeParameterReferences.ts | 1 - tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts | 1 - tests/cases/compiler/inferSecondaryParameter.ts | 1 - .../compiler/inferTypeArgumentsInSignatureWithRestParameters.ts | 1 - tests/cases/compiler/inferenceLimit.ts | 1 - tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts | 1 - tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts | 1 - tests/cases/compiler/inheritance.ts | 1 - tests/cases/compiler/inheritance1.ts | 1 - .../compiler/inheritanceGrandParentPrivateMemberCollision.ts | 1 - ...heritanceGrandParentPrivateMemberCollisionWithPublicMember.ts | 1 - ...heritanceGrandParentPublicMemberCollisionWithPrivateMember.ts | 1 - .../compiler/inheritanceMemberAccessorOverridingAccessor.ts | 1 - .../cases/compiler/inheritanceMemberAccessorOverridingMethod.ts | 1 - .../compiler/inheritanceMemberAccessorOverridingProperty.ts | 1 - tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts | 1 - tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts | 1 - tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts | 1 - .../compiler/inheritanceMemberPropertyOverridingAccessor.ts | 1 - .../cases/compiler/inheritanceMemberPropertyOverridingMethod.ts | 1 - .../compiler/inheritanceMemberPropertyOverridingProperty.ts | 1 - tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts | 1 - tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts | 1 - .../compiler/inheritanceStaticAccessorOverridingAccessor.ts | 1 - .../cases/compiler/inheritanceStaticAccessorOverridingMethod.ts | 1 - .../compiler/inheritanceStaticAccessorOverridingProperty.ts | 1 - tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts | 1 - .../inheritanceStaticFuncOverridingAccessorOfFuncType.ts | 1 - tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts | 1 - tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts | 1 - .../inheritanceStaticFuncOverridingPropertyOfFuncType.ts | 1 - .../inheritanceStaticFunctionOverridingInstanceProperty.ts | 1 - tests/cases/compiler/inheritanceStaticMembersCompatible.ts | 1 - tests/cases/compiler/inheritanceStaticMembersIncompatible.ts | 1 - .../compiler/inheritanceStaticPropertyOverridingAccessor.ts | 1 - .../cases/compiler/inheritanceStaticPropertyOverridingMethod.ts | 1 - .../compiler/inheritanceStaticPropertyOverridingProperty.ts | 1 - tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts | 1 - .../inheritedMembersAndIndexSignaturesFromDifferentBases.ts | 1 - .../inheritedMembersAndIndexSignaturesFromDifferentBases2.ts | 1 - .../compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts | 1 - tests/cases/compiler/innerExtern.ts | 1 - tests/cases/compiler/innerOverloads.ts | 1 - tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts | 1 - tests/cases/compiler/instanceOfAssignability.ts | 1 - tests/cases/compiler/intTypeCheck.ts | 1 - tests/cases/compiler/interfaceImplementation1.ts | 1 - tests/cases/compiler/interfaceOnly.ts | 1 - tests/cases/compiler/interfaceWithCommaSeparators.ts | 1 - tests/cases/compiler/interfacedecl.ts | 1 - tests/cases/compiler/interfacedeclWithIndexerErrors.ts | 1 - tests/cases/compiler/internalAliasUninitializedModule.ts | 1 - ...nternalAliasUninitializedModuleInsideLocalModuleWithExport.ts | 1 - ...rnalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts | 1 - ...initializedModuleInsideLocalModuleWithoutExportAccessError.ts | 1 - ...rnalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts | 1 - ...lAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts | 1 - tests/cases/compiler/internalAliasWithDottedNameEmit.ts | 1 - tests/cases/compiler/intrinsics.ts | 1 - tests/cases/compiler/invalidConstraint1.ts | 1 - .../compiler/isolatedDeclarationErrorsFunctionDeclarations.ts | 1 - tests/cases/compiler/isolatedDeclarationLazySymbols.ts | 1 - tests/cases/compiler/isolatedDeclarationsAllowJs.ts | 1 - tests/cases/compiler/isolatedModulesDeclaration.ts | 1 - tests/cases/compiler/isolatedModulesES6.ts | 1 - tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts | 1 - tests/cases/compiler/isolatedModulesOut.ts | 1 - tests/cases/compiler/isolatedModulesSpecifiedModule.ts | 1 - tests/cases/compiler/isolatedModulesUnspecifiedModule.ts | 1 - tests/cases/compiler/isolatedModulesWithDeclarationFile.ts | 1 - tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts | 1 - tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts | 1 - tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts | 1 - tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts | 1 - tests/cases/compiler/jsFileESModuleWithEnumTag.ts | 1 - tests/cases/compiler/jsNegativeElementAccessNotBound.ts | 1 - tests/cases/compiler/jsdocInTypeScript.ts | 1 - tests/cases/compiler/jsdocParamTagInvalid.ts | 1 - tests/cases/compiler/jsdocParameterParsingInvalidName.ts | 1 - tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts | 1 - tests/cases/compiler/jsxEmitWithAttributes.ts | 1 - tests/cases/compiler/jsxFactoryAndReactNamespace.ts | 1 - tests/cases/compiler/jsxFactoryIdentifier.ts | 1 - tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts | 1 - tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts | 1 - tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts | 1 - tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts | 1 - tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts | 1 - tests/cases/compiler/jsxFactoryQualifiedName.ts | 1 - tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts | 1 - tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts | 1 - tests/cases/compiler/jsxPreserveWithJsInput.ts | 1 - tests/cases/compiler/jsxSpreadTag.ts | 1 - tests/cases/compiler/lambdaParamTypes.ts | 1 - tests/cases/compiler/letConstMatchingParameterNames.ts | 1 - tests/cases/compiler/libMembers.ts | 1 - tests/cases/compiler/localClassesInLoop.ts | 1 - tests/cases/compiler/localClassesInLoop_ES6.ts | 1 - tests/cases/compiler/mappedTypeNoTypeNoCrash.ts | 1 - tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts | 1 - tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts | 1 - tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts | 1 - tests/cases/compiler/methodContainingLocalFunction.ts | 1 - tests/cases/compiler/missingCloseParenStatements.ts | 1 - tests/cases/compiler/missingFunctionImplementation.ts | 1 - tests/cases/compiler/missingFunctionImplementation2.ts | 1 - tests/cases/compiler/missingTypeArguments3.ts | 1 - tests/cases/compiler/mixedExports.ts | 1 - tests/cases/compiler/mixingFunctionAndAmbientModule1.ts | 1 - tests/cases/compiler/mixingStaticAndInstanceOverloads.ts | 1 - tests/cases/compiler/modFunctionCrash.ts | 1 - tests/cases/compiler/modifierOnParameter1.ts | 1 - ...ularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts | 1 - .../compiler/moduleAugmentationCollidingNamesInAugmentation1.ts | 1 - tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal4.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal5.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal6.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal6_1.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal7.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal7_1.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal8.ts | 1 - tests/cases/compiler/moduleAugmentationGlobal8_1.ts | 1 - tests/cases/compiler/moduleAugmentationImportsAndExports2.ts | 1 - tests/cases/compiler/moduleAugmentationImportsAndExports3.ts | 1 - .../compiler/moduleAugmentationWithNonExistentNamedImport.ts | 1 - tests/cases/compiler/moduleAugmentationsBundledOutput1.ts | 1 - tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts | 1 - tests/cases/compiler/modulePreserve3.ts | 1 - tests/cases/compiler/modulePreserveTopLevelAwait1.ts | 1 - tests/cases/compiler/moduleProperty2.ts | 1 - .../compiler/moduleResolutionWithExtensions_notSupported.ts | 1 - .../compiler/moduleResolutionWithExtensions_notSupported2.ts | 1 - .../compiler/moduleResolutionWithExtensions_notSupported3.ts | 1 - .../moduleResolution_explicitNodeModulesImport_implicitAny.ts | 1 - .../compiler/moduleResolution_packageJson_yesAtPackageRoot.ts | 1 - ...eResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts | 1 - ...ution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts | 1 - tests/cases/compiler/moduleResolution_relativeImportJsFile.ts | 1 - tests/cases/compiler/moduleUnassignedVariable.ts | 1 - tests/cases/compiler/moduleVisibilityTest1.ts | 1 - tests/cases/compiler/moduleVisibilityTest2.ts | 1 - tests/cases/compiler/module_augmentUninstantiatedModule.ts | 1 - tests/cases/compiler/module_augmentUninstantiatedModule2.ts | 1 - tests/cases/compiler/moduledecl.ts | 1 - .../compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts | 1 - tests/cases/compiler/multiModuleFundule1.ts | 1 - tests/cases/compiler/multipleClassPropertyModifiers.ts | 1 - tests/cases/compiler/multipleClassPropertyModifiersErrors.ts | 1 - tests/cases/compiler/multipleExportAssignments.ts | 1 - .../compiler/multipleExportAssignmentsInAmbientDeclaration.ts | 1 - tests/cases/compiler/multipleExports.ts | 1 - tests/cases/compiler/multipleInheritance.ts | 1 - tests/cases/compiler/multivar.ts | 1 - tests/cases/compiler/namedFunctionExpressionInModule.ts | 1 - tests/cases/compiler/namedImportNonExistentName.ts | 1 - tests/cases/compiler/nestedBlockScopedBindings3.ts | 1 - tests/cases/compiler/nestedBlockScopedBindings4.ts | 1 - tests/cases/compiler/nestedBlockScopedBindings5.ts | 1 - tests/cases/compiler/nestedBlockScopedBindings6.ts | 1 - tests/cases/compiler/nestedIndexer.ts | 1 - tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts | 1 - tests/cases/compiler/nestedRecursiveLambda.ts | 1 - tests/cases/compiler/newNamesInGlobalAugmentations1.ts | 1 - .../compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts | 1 - .../noCollisionThisExpressionAndLocalVarInConstructor.ts | 1 - .../compiler/noCollisionThisExpressionAndLocalVarInFunction.ts | 1 - .../compiler/noCollisionThisExpressionAndLocalVarInLambda.ts | 1 - .../compiler/noCollisionThisExpressionAndLocalVarInMethod.ts | 1 - .../compiler/noCollisionThisExpressionAndLocalVarInProperty.ts | 1 - .../noCollisionThisExpressionInFunctionAndVarInGlobal.ts | 1 - tests/cases/compiler/noCrashOnParameterNamedRequire.ts | 1 - tests/cases/compiler/noImplicitReturnsInAsync2.ts | 1 - tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts | 1 - tests/cases/compiler/noImplicitThisFunctions.ts | 1 - tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts | 1 - .../compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts | 1 - tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts | 1 - tests/cases/compiler/nodeResolution4.ts | 1 - tests/cases/compiler/nodeResolution6.ts | 1 - tests/cases/compiler/nodeResolution8.ts | 1 - tests/cases/compiler/nonArrayRestArgs.ts | 1 - tests/cases/compiler/nonContextuallyTypedLogicalOr.ts | 1 - tests/cases/compiler/nonExportedElementsOfMergedModules.ts | 1 - tests/cases/compiler/nonMergedOverloads.ts | 1 - tests/cases/compiler/null.ts | 1 - .../cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts | 1 - .../cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts | 1 - tests/cases/compiler/objectLitArrayDeclNoNew.ts | 1 - tests/cases/compiler/objectLitIndexerContextualType.ts | 1 - tests/cases/compiler/objectLiteralArraySpecialization.ts | 1 - tests/cases/compiler/objectLiteralFreshnessWithSpread.ts | 1 - .../cases/compiler/objectLiteralFunctionArgContextualTyping2.ts | 1 - tests/cases/compiler/objectPropertyAsClass.ts | 1 - tests/cases/compiler/objectRestSpread.ts | 1 - tests/cases/compiler/optionalArgsWithDefaultValues.ts | 1 - tests/cases/compiler/optionalConstructorArgInSuper.ts | 1 - tests/cases/compiler/optionalParamReferencingOtherParams3.ts | 1 - tests/cases/compiler/optionalPropertiesSyntax.ts | 1 - tests/cases/compiler/overload2.ts | 1 - tests/cases/compiler/overloadCallTest.ts | 1 - tests/cases/compiler/overloadConsecutiveness.ts | 1 - tests/cases/compiler/overloadCrash.ts | 1 - tests/cases/compiler/overloadModifiersMustAgree.ts | 1 - tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts | 1 - .../overloadOnConstInBaseWithBadImplementationInDerived.ts | 1 - tests/cases/compiler/overloadOnConstInCallback1.ts | 1 - .../overloadOnConstInObjectLiteralImplementingAnInterface.ts | 1 - tests/cases/compiler/overloadOnConstInheritance4.ts | 1 - tests/cases/compiler/overloadOnConstNoAnyImplementation.ts | 1 - tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts | 1 - tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts | 1 - tests/cases/compiler/overloadOnConstNoStringImplementation.ts | 1 - tests/cases/compiler/overloadOnConstNoStringImplementation2.ts | 1 - tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts | 1 - tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts | 1 - tests/cases/compiler/overloadResolutionOverCTLambda.ts | 1 - tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts | 1 - tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts | 1 - tests/cases/compiler/overloadResolutionTest1.ts | 1 - tests/cases/compiler/overloadResolutionWithAny.ts | 1 - .../overloadWithCallbacksWithDifferingOptionalityOnArgs.ts | 1 - tests/cases/compiler/overloadingOnConstantsInImplementation.ts | 1 - .../compiler/overloadresolutionWithConstraintCheckingDeferred.ts | 1 - tests/cases/compiler/overloadsAndTypeArgumentArity.ts | 1 - tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts | 1 - .../compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts | 1 - tests/cases/compiler/overloadsWithinClasses.ts | 1 - tests/cases/compiler/parameterPropertyOutsideConstructor.ts | 1 - tests/cases/compiler/paramterDestrcuturingDeclaration.ts | 1 - tests/cases/compiler/parenthesizedAsyncArrowFunction.ts | 1 - tests/cases/compiler/parseBigInt.ts | 1 - tests/cases/compiler/parseErrorIncorrectReturnToken.ts | 1 - tests/cases/compiler/parseJsxExtends1.ts | 1 - tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts | 1 - .../cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts | 1 - .../cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts | 1 - .../parsingClassRecoversWhenHittingUnexpectedSemicolon.ts | 1 - .../cases/compiler/pathMappingBasedModuleResolution6_classic.ts | 1 - tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts | 1 - .../cases/compiler/pathMappingBasedModuleResolution7_classic.ts | 1 - tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts | 1 - ...pingBasedModuleResolution_withExtension_MapedToNodeModules.ts | 1 - tests/cases/compiler/potentiallyUncalledDecorators.ts | 1 - tests/cases/compiler/predicateSemantics.ts | 1 - tests/cases/compiler/primitiveMembers.ts | 1 - .../privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts | 1 - tests/cases/compiler/privacyGloImport.ts | 1 - tests/cases/compiler/privacyGloImportParseErrors.ts | 1 - tests/cases/compiler/privacyGloInterface.ts | 1 - tests/cases/compiler/privacyImportParseErrors.ts | 1 - tests/cases/compiler/privacyInterface.ts | 1 - tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts | 1 - tests/cases/compiler/privateNameWeakMapCollision.ts | 1 - tests/cases/compiler/promiseEmptyTupleNoException.ts | 1 - tests/cases/compiler/promisePermutations.ts | 1 - tests/cases/compiler/promisePermutations2.ts | 1 - tests/cases/compiler/promisePermutations3.ts | 1 - tests/cases/compiler/promiseType.ts | 1 - tests/cases/compiler/promiseTypeInference.ts | 1 - tests/cases/compiler/promiseTypeInferenceUnion.ts | 1 - tests/cases/compiler/propertyAccess1.ts | 1 - tests/cases/compiler/propertyAccess2.ts | 1 - tests/cases/compiler/propertyAccess3.ts | 1 - tests/cases/compiler/propertyAccess6.ts | 1 - tests/cases/compiler/propertyAccess7.ts | 1 - tests/cases/compiler/propertyAccessExpressionInnerComments.ts | 1 - tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts | 1 - tests/cases/compiler/propertyAccessOnObjectLiteral.ts | 1 - tests/cases/compiler/propertyAccessibility1.ts | 1 - tests/cases/compiler/propertyAccessibility2.ts | 1 - tests/cases/compiler/propertyAssignment.ts | 1 - tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts | 1 - tests/cases/compiler/propertyOrdering2.ts | 1 - tests/cases/compiler/propertyParameterWithQuestionMark.ts | 1 - tests/cases/compiler/propertySignatures.ts | 1 - tests/cases/compiler/propertyWrappedInTry.ts | 1 - tests/cases/compiler/protectedMembers.ts | 1 - tests/cases/compiler/protectedMembersThisParameter.ts | 1 - tests/cases/compiler/protoAsIndexInIndexExpression.ts | 1 - tests/cases/compiler/protoAssignment.ts | 1 - tests/cases/compiler/protoInIndexer.ts | 1 - tests/cases/compiler/prototypeOnConstructorFunctions.ts | 1 - tests/cases/compiler/qualify.ts | 1 - tests/cases/compiler/reExportUndefined2.ts | 1 - tests/cases/compiler/reachabilityChecks1.ts | 1 - tests/cases/compiler/reachabilityChecks11.ts | 1 - tests/cases/compiler/reachabilityChecks4.ts | 1 - tests/cases/compiler/reachabilityChecks5.ts | 1 - tests/cases/compiler/reachabilityChecks6.ts | 1 - tests/cases/compiler/reachabilityChecks7.ts | 1 - tests/cases/compiler/readonlyInNonPropertyParameters.ts | 1 - tests/cases/compiler/recur1.ts | 1 - tests/cases/compiler/recursiveClassReferenceTest.ts | 1 - .../compiler/recursiveExportAssignmentAndFindAliasedType7.ts | 1 - tests/cases/compiler/recursiveGetterAccess.ts | 1 - tests/cases/compiler/recursiveInference1.ts | 1 - tests/cases/compiler/recursiveLetConst.ts | 1 - tests/cases/compiler/recursiveNamedLambdaCall.ts | 1 - tests/cases/compiler/recursiveProperties.ts | 1 - tests/cases/compiler/recursiveSpecializationOfSignatures.ts | 1 - tests/cases/compiler/redeclareParameterInCatchBlock.ts | 1 - tests/cases/compiler/reexportMissingDefault.ts | 1 - tests/cases/compiler/reexportMissingDefault1.ts | 1 - tests/cases/compiler/reexportMissingDefault2.ts | 1 - tests/cases/compiler/reexportMissingDefault3.ts | 1 - tests/cases/compiler/reexportMissingDefault4.ts | 1 - tests/cases/compiler/reexportMissingDefault5.ts | 1 - tests/cases/compiler/reexportMissingDefault6.ts | 1 - tests/cases/compiler/reexportMissingDefault7.ts | 1 - tests/cases/compiler/reexportMissingDefault8.ts | 1 - tests/cases/compiler/reexportNameAliasedAndHoisted.ts | 1 - .../cases/compiler/renamingDestructuredPropertyInFunctionType.ts | 1 - .../compiler/renamingDestructuredPropertyInFunctionType2.ts | 1 - .../compiler/renamingDestructuredPropertyInFunctionType3.ts | 1 - tests/cases/compiler/requiredInitializedParameter1.ts | 1 - tests/cases/compiler/requiredInitializedParameter2.ts | 1 - tests/cases/compiler/requiredInitializedParameter3.ts | 1 - tests/cases/compiler/requiredInitializedParameter4.ts | 1 - tests/cases/compiler/restArgMissingName.ts | 1 - tests/cases/compiler/restParamAsOptional.ts | 1 - tests/cases/compiler/restParamModifier.ts | 1 - tests/cases/compiler/restParamModifier2.ts | 1 - tests/cases/compiler/restParameterNoTypeAnnotation.ts | 1 - tests/cases/compiler/restParameterWithBindingPattern1.ts | 1 - tests/cases/compiler/restParameterWithBindingPattern2.ts | 1 - tests/cases/compiler/returnInfiniteIntersection.ts | 1 - tests/cases/compiler/returnStatement1.ts | 1 - tests/cases/compiler/returnTypeParameterWithModules.ts | 1 - tests/cases/compiler/returnValueInSetter.ts | 1 - .../cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts | 1 - .../cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts | 1 - tests/cases/compiler/scopeCheckInsidePublicMethod1.ts | 1 - tests/cases/compiler/scopeCheckInsideStaticMethod1.ts | 1 - tests/cases/compiler/scopeTests.ts | 1 - tests/cases/compiler/selfReferencesInFunctionParameters.ts | 1 - tests/cases/compiler/setMethods.ts | 1 - tests/cases/compiler/setterWithReturn.ts | 1 - .../compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts | 1 - .../compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts | 1 - tests/cases/compiler/sourceMapValidationExportAssignment.ts | 1 - .../compiler/sourceMapValidationExportAssignmentCommonjs.ts | 1 - tests/cases/compiler/specializationsShouldNotAffectEachOther.ts | 1 - tests/cases/compiler/specializeVarArgs1.ts | 1 - tests/cases/compiler/specializedOverloadWithRestParameters.ts | 1 - tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts | 1 - tests/cases/compiler/staticAsIdentifier.ts | 1 - tests/cases/compiler/staticClassMemberError.ts | 1 - ...staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts | 1 - tests/cases/compiler/staticModifierAlreadySeen.ts | 1 - tests/cases/compiler/structuralTypeInDeclareFileForModule.ts | 1 - tests/cases/compiler/super1.ts | 1 - ...rivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts | 1 - ...FromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts | 1 - ...allFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts | 1 - tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts | 1 - tests/cases/compiler/superCallFromFunction1.ts | 1 - tests/cases/compiler/superNewCall1.ts | 1 - tests/cases/compiler/superWithTypeArgument2.ts | 1 - tests/cases/compiler/switchCaseCircularRefeference.ts | 1 - tests/cases/compiler/systemJsForInNoException.ts | 1 - tests/cases/compiler/systemModule11.ts | 1 - tests/cases/compiler/systemModule4.ts | 1 - tests/cases/compiler/systemModule8.ts | 1 - tests/cases/compiler/systemModuleAmbientDeclarations.ts | 1 - tests/cases/compiler/systemModuleConstEnums.ts | 1 - .../cases/compiler/systemModuleConstEnumsSeparateCompilation.ts | 1 - tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts | 1 - tests/cases/compiler/targetTypeCastTest.ts | 1 - tests/cases/compiler/targetTypeTest1.ts | 1 - tests/cases/compiler/testTypings.ts | 1 - tests/cases/compiler/thisBinding.ts | 1 - tests/cases/compiler/thisExpressionInIndexExpression.ts | 1 - tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts | 1 - tests/cases/compiler/thisInConstructorParameter1.ts | 1 - tests/cases/compiler/thisInSuperCall.ts | 1 - tests/cases/compiler/thisInSuperCall1.ts | 1 - tests/cases/compiler/thisInSuperCall2.ts | 1 - tests/cases/compiler/thisInSuperCall3.ts | 1 - .../compiler/thisReferencedInFunctionInsideArrowFunction1.ts | 1 - tests/cases/compiler/topLevel.ts | 1 - tests/cases/compiler/topLevelBlockExpando.ts | 1 - tests/cases/compiler/topLevelExports.ts | 1 - tests/cases/compiler/topLevelLambda.ts | 1 - tests/cases/compiler/topLevelLambda2.ts | 1 - tests/cases/compiler/topLevelLambda4.ts | 1 - tests/cases/compiler/trailingCommasES5.ts | 1 - .../compiler/transformArrowInBlockScopedLoopVarInitializer.ts | 1 - tests/cases/compiler/transformsElideNullUndefinedType.ts | 1 - tests/cases/compiler/typeAliasExport.ts | 1 - tests/cases/compiler/typeArgumentConstraintResolution1.ts | 1 - .../compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts | 1 - ...eckObjectCreationExpressionWithUndefinedCallResolutionData.ts | 1 - tests/cases/compiler/typeCheckTypeArgument.ts | 1 - tests/cases/compiler/typeMatch1.ts | 1 - tests/cases/compiler/typeMatch2.ts | 1 - tests/cases/compiler/typeName1.ts | 1 - .../compiler/typeParameterConstrainedToOuterTypeParameter.ts | 1 - .../compiler/typeParameterConstrainedToOuterTypeParameter2.ts | 1 - tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts | 1 - tests/cases/compiler/typeParameterExtendingUnion1.ts | 1 - tests/cases/compiler/typeParameterExtendingUnion2.ts | 1 - tests/cases/compiler/typeParameterFixingWithConstraints.ts | 1 - .../compiler/typeParameterFixingWithContextSensitiveArguments.ts | 1 - .../typeParameterFixingWithContextSensitiveArguments2.ts | 1 - .../typeParameterFixingWithContextSensitiveArguments3.ts | 1 - .../typeParameterFixingWithContextSensitiveArguments4.ts | 1 - .../typeParameterFixingWithContextSensitiveArguments5.ts | 1 - tests/cases/compiler/typeParameterWithInvalidConstraintType.ts | 1 - tests/cases/compiler/typeReferenceDirectives1.ts | 1 - tests/cases/compiler/typeReferenceDirectives10.ts | 1 - tests/cases/compiler/typeReferenceDirectives11.ts | 1 - tests/cases/compiler/typeReferenceDirectives12.ts | 1 - tests/cases/compiler/typeReferenceDirectives13.ts | 1 - tests/cases/compiler/typeReferenceDirectives2.ts | 1 - tests/cases/compiler/typeReferenceDirectives3.ts | 1 - tests/cases/compiler/typeReferenceDirectives4.ts | 1 - tests/cases/compiler/typeReferenceDirectives5.ts | 1 - tests/cases/compiler/typeReferenceDirectives6.ts | 1 - tests/cases/compiler/typeReferenceDirectives8.ts | 1 - tests/cases/compiler/typeReferenceDirectives9.ts | 1 - tests/cases/compiler/typeResolution.ts | 1 - tests/cases/compiler/typedArrays-es5.ts | 1 - tests/cases/compiler/typedArrays-es6.ts | 1 - tests/cases/compiler/typedArraysSubarray.ts | 1 - tests/cases/compiler/uncaughtCompilerError1.ts | 1 - tests/cases/compiler/undefinedTypeAssignment2.ts | 1 - tests/cases/compiler/underscoreTest1.ts | 1 - .../unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts | 1 - tests/cases/compiler/uniqueSymbolJs.ts | 1 - tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts | 1 - tests/cases/compiler/unknownSymbols1.ts | 1 - tests/cases/compiler/unknownSymbols2.ts | 1 - tests/cases/compiler/unknownTypeArgOnCall.ts | 1 - tests/cases/compiler/untypedArgumentInLambdaExpression.ts | 1 - tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts | 1 - tests/cases/compiler/untypedModuleImport_withAugmentation2.ts | 1 - tests/cases/compiler/unusedDestructuring.ts | 1 - tests/cases/compiler/unusedDestructuringParameters.ts | 1 - tests/cases/compiler/unusedImports13.ts | 1 - tests/cases/compiler/unusedImports14.ts | 1 - tests/cases/compiler/unusedImports15.ts | 1 - tests/cases/compiler/unusedImports16.ts | 1 - tests/cases/compiler/unusedLocalsAndParameters.ts | 1 - tests/cases/compiler/unusedLocalsAndParametersDeferred.ts | 1 - .../compiler/unusedLocalsAndParametersOverloadSignatures.ts | 1 - tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts | 1 - tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts | 1 - tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts | 1 - tests/cases/compiler/unusedMethodsInInterface.ts | 1 - tests/cases/compiler/unusedParameterProperty2.ts | 1 - tests/cases/compiler/unusedParametersInLambda1.ts | 1 - tests/cases/compiler/unusedParametersInLambda2.ts | 1 - tests/cases/compiler/unusedParametersWithUnderscore.ts | 1 - tests/cases/compiler/unusedPrivateMembers.ts | 1 - tests/cases/compiler/varArgsOnConstructorTypes.ts | 1 - tests/cases/compiler/varAsID.ts | 1 - tests/cases/compiler/varBlock.ts | 1 - tests/cases/compiler/vardecl.ts | 1 - .../compiler/variableDeclaratorResolvedDuringContextualTyping.ts | 1 - tests/cases/compiler/verbatimModuleSyntaxReactReference.ts | 1 - tests/cases/compiler/voidOperator1.ts | 1 - tests/cases/compiler/voidReturnLambdaValue.ts | 1 - tests/cases/compiler/wellKnownSymbolExpando.ts | 1 - tests/cases/compiler/widenedTypes1.ts | 1 - tests/cases/compiler/withExportDecl.ts | 1 - tests/cases/compiler/withImportDecl.ts | 1 - tests/cases/compiler/wrappedIncovations1.ts | 1 - tests/cases/compiler/wrappedIncovations2.ts | 1 - tests/cases/conformance/Symbols/ES5SymbolProperty2.ts | 1 - tests/cases/conformance/ambient/ambientDeclarations.ts | 1 - tests/cases/conformance/ambient/ambientDeclarationsExternal.ts | 1 - tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts | 1 - .../conformance/ambient/ambientDeclarationsPatterns_merging1.ts | 1 - .../conformance/ambient/ambientDeclarationsPatterns_merging2.ts | 1 - .../conformance/ambient/ambientDeclarationsPatterns_merging3.ts | 1 - .../ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts | 1 - tests/cases/conformance/ambient/ambientErrors.ts | 1 - tests/cases/conformance/ambient/ambientInsideNonAmbient.ts | 1 - .../conformance/ambient/ambientInsideNonAmbientExternalModule.ts | 1 - .../async/asyncFunctionDeclarationParameterEvaluation.ts | 1 - .../arrowFunctionWithParameterNameAsync_es2017.ts | 1 - .../es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts | 1 - .../es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts | 1 - .../es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts | 1 - .../es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts | 1 - .../asyncUnParenthesizedArrowFunction_es2017.ts | 1 - .../conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts | 1 - .../functionDeclarations/asyncFunctionDeclaration10_es2017.ts | 1 - .../functionDeclarations/asyncFunctionDeclaration2_es2017.ts | 1 - .../functionDeclarations/asyncFunctionDeclaration3_es2017.ts | 1 - .../functionDeclarations/asyncFunctionDeclaration5_es2017.ts | 1 - .../arrowFunctionWithParameterNameAsync_es5.ts | 1 - .../async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts | 1 - .../async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts | 1 - .../async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts | 1 - .../async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts | 1 - .../asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts | 1 - tests/cases/conformance/async/es5/asyncSetter_es5.ts | 1 - .../es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts | 1 - .../es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts | 1 - .../es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts | 1 - .../es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts | 1 - .../es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts | 1 - .../arrowFunctionWithParameterNameAsync_es6.ts | 1 - .../async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts | 1 - .../async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts | 1 - .../async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts | 1 - .../async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts | 1 - .../asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts | 1 - tests/cases/conformance/async/es6/asyncSetter_es6.ts | 1 - tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts | 1 - .../es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts | 1 - .../es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts | 1 - .../es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts | 1 - .../es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts | 1 - .../es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts | 1 - .../asyncGenerators/asyncGeneratorParameterEvaluation.ts | 1 - tests/cases/conformance/classes/awaitAndYieldInProperty.ts | 1 - .../classAbstractKeyword/classAbstractAccessor.ts | 1 - .../classAbstractKeyword/classAbstractCrashedOnce.ts | 1 - .../classAbstractKeyword/classAbstractDeclarations.d.ts | 1 - .../classAbstractKeyword/classAbstractExtends.ts | 1 - .../classAbstractKeyword/classAbstractGeneric.ts | 1 - .../classAbstractKeyword/classAbstractInheritance1.ts | 1 - .../classAbstractMethodInNonAbstractClass.ts | 1 - .../classAbstractKeyword/classAbstractMixedWithModifiers.ts | 1 - .../classAbstractKeyword/classAbstractOverloads.ts | 1 - .../classAbstractKeyword/classAbstractOverrideWithAbstract.ts | 1 - .../classAbstractKeyword/classAbstractSuperCalls.ts | 1 - .../classAbstractKeyword/classAbstractUsingAbstractMethods2.ts | 1 - .../classExtendsValidConstructorFunction.ts | 1 - .../classWithStaticFieldInParameterBindingPattern.2.ts | 1 - .../classWithStaticFieldInParameterBindingPattern.3.ts | 1 - .../classWithStaticFieldInParameterBindingPattern.ts | 1 - .../classWithStaticFieldInParameterInitializer.2.ts | 1 - .../conformance/classes/classStaticBlock/classStaticBlock26.ts | 1 - .../classWithTwoConstructorDefinitions.ts | 1 - .../constructorImplementationWithDefaultValues.ts | 1 - .../constructorImplementationWithDefaultValues2.ts | 1 - .../constructorOverloadsWithOptionalParameters.ts | 1 - .../constructorParameters/readonlyInAmbientClass.ts | 1 - .../superCalls/derivedClassSuperCallsWithThisArg.ts | 1 - .../superCalls/derivedClassSuperProperties.ts | 1 - .../classes/indexMemberDeclarations/privateIndexer2.ts | 1 - .../classes/members/accessibility/classPropertyAsPrivate.ts | 1 - .../classes/members/accessibility/classPropertyAsProtected.ts | 1 - .../members/accessibility/classPropertyIsPublicByDefault.ts | 1 - .../accessibility/privateClassPropertyAccessibleWithinClass.ts | 1 - .../members/accessibility/privateInstanceMemberAccessibility.ts | 1 - .../privateProtectedMembersAreNotAccessibleDestructuring.ts | 1 - .../accessibility/protectedClassPropertyAccessibleWithinClass.ts | 1 - .../derivedClassIncludesInheritedMembers.ts | 1 - .../members/instanceAndStaticMembers/superInStaticMembers1.ts | 1 - .../members/privateNames/privateNameAccessorsCallExpression.ts | 1 - .../classes/members/privateNames/privateNameBadSuper.ts | 1 - .../privateNames/privateNameBadSuperUseDefineForClassFields.ts | 1 - .../members/privateNames/privateNameComputedPropertyName3.ts | 1 - .../members/privateNames/privateNameConstructorSignature.ts | 1 - .../members/privateNames/privateNameDeclarationMerging.ts | 1 - .../members/privateNames/privateNameFieldCallExpression.ts | 1 - .../classes/members/privateNames/privateNameFieldInitializer.ts | 1 - .../classes/members/privateNames/privateNameFieldsESNext.ts | 1 - .../classes/members/privateNames/privateNameHashCharName.ts | 1 - .../classes/members/privateNames/privateNameLateSuper.ts | 1 - .../privateNames/privateNameLateSuperUseDefineForClassFields.ts | 1 - .../members/privateNames/privateNameMethodCallExpression.ts | 1 - .../members/privateNames/privateNameNestedClassFieldShadowing.ts | 1 - .../classes/members/privateNames/privateNameSetterNoGetter.ts | 1 - .../privateNames/privateNameStaticAccessorsCallExpression.ts | 1 - .../members/privateNames/privateNameStaticFieldCallExpression.ts | 1 - .../members/privateNames/privateNameStaticFieldInitializer.ts | 1 - .../members/privateNames/privateNameStaticFieldNoInitializer.ts | 1 - .../privateNames/privateNameStaticMethodCallExpression.ts | 1 - .../members/privateNames/privateNamesInterfaceExtendingClass.ts | 1 - .../classes/members/privateNames/privateNamesUnique-2.ts | 1 - .../classes/members/privateNames/privateNamesUseBeforeDef.ts | 1 - .../classes/propertyMemberDeclarations/accessibilityModifiers.ts | 1 - .../classes/propertyMemberDeclarations/autoAccessor11.ts | 1 - .../classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts | 1 - .../classes/propertyMemberDeclarations/defineProperty.ts | 1 - .../initializerReferencingConstructorLocals.ts | 1 - .../initializerReferencingConstructorParameters.ts | 1 - .../memberAccessorDeclarations/accessorWithES5.ts | 1 - .../memberFunctionOverloadMixingStaticAndInstance.ts | 1 - .../memberFunctionsWithPrivateOverloads.ts | 1 - .../memberFunctionsWithPublicOverloads.ts | 1 - .../memberFunctionsWithPublicPrivateOverloads.ts | 1 - .../classes/propertyMemberDeclarations/optionalProperty.ts | 1 - .../propertyAndAccessorWithSameName.ts | 1 - .../propertyAndFunctionWithSameName.ts | 1 - .../propertyMemberDeclarations/twoAccessorsWithSameName.ts | 1 - .../propertyMemberDeclarations/twoAccessorsWithSameName2.ts | 1 - tests/cases/conformance/declarationEmit/nullPropertyName.ts | 1 - .../decorators/class/accessor/decoratorOnClassAccessor3.ts | 1 - .../decorators/class/accessor/decoratorOnClassAccessor6.ts | 1 - .../parameter/decoratorOnClassConstructorParameter4.ts | 1 - .../decorators/class/method/decoratorOnClassMethod16.ts | 1 - .../decorators/class/method/decoratorOnClassMethod17.ts | 1 - .../decorators/class/method/decoratorOnClassMethod18.ts | 1 - .../decorators/class/method/decoratorOnClassMethod19.ts | 1 - .../decorators/class/method/decoratorOnClassMethod3.ts | 1 - .../decorators/class/method/decoratorOnClassMethodOverload1.ts | 1 - .../decorators/class/method/decoratorOnClassMethodOverload2.ts | 1 - .../decorators/class/property/decoratorOnClassProperty1.ts | 1 - .../decorators/class/property/decoratorOnClassProperty10.ts | 1 - .../decorators/class/property/decoratorOnClassProperty11.ts | 1 - .../decorators/class/property/decoratorOnClassProperty12.ts | 1 - .../decorators/class/property/decoratorOnClassProperty13.ts | 1 - .../decorators/class/property/decoratorOnClassProperty2.ts | 1 - .../decorators/class/property/decoratorOnClassProperty3.ts | 1 - .../decorators/class/property/decoratorOnClassProperty6.ts | 1 - .../decorators/class/property/decoratorOnClassProperty7.ts | 1 - .../conformance/decorators/invalid/decoratorOnImportEquals2.ts | 1 - tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts | 1 - tests/cases/conformance/decorators/missingDecoratorType.ts | 1 - .../emitter.asyncGenerators.classMethods.es2015.ts | 1 - .../emitter.asyncGenerators.functionDeclarations.es2015.ts | 1 - .../emitter.asyncGenerators.functionExpressions.es2015.ts | 1 - .../emitter.asyncGenerators.objectLiteralMethods.es2015.ts | 1 - .../emitter.asyncGenerators.classMethods.es2018.ts | 1 - .../emitter.asyncGenerators.functionDeclarations.es2018.ts | 1 - .../emitter.asyncGenerators.functionExpressions.es2018.ts | 1 - .../emitter.asyncGenerators.objectLiteralMethods.es2018.ts | 1 - .../asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts | 1 - .../emitter.asyncGenerators.functionDeclarations.es5.ts | 1 - .../emitter.asyncGenerators.functionExpressions.es5.ts | 1 - .../emitter.asyncGenerators.objectLiteralMethods.es5.ts | 1 - tests/cases/conformance/enums/awaitAndYield.ts | 1 - tests/cases/conformance/enums/enumBasics.ts | 1 - tests/cases/conformance/es2019/globalThisUnknown.ts | 1 - .../conformance/es2021/logicalAssignment/logicalAssignment10.ts | 1 - tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts | 1 - tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty10.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty11.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty12.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty13.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty14.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty15.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty16.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty19.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty39.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty40.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty41.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty42.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty48.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty49.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty56.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty57.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty8.ts | 1 - tests/cases/conformance/es6/Symbols/symbolProperty9.ts | 1 - tests/cases/conformance/es6/Symbols/symbolType14.ts | 1 - tests/cases/conformance/es6/Symbols/symbolType17.ts | 1 - tests/cases/conformance/es6/Symbols/symbolType18.ts | 1 - .../es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts | 1 - .../es6/computedProperties/computedPropertyNames11_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames11_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames16_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames16_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames17_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames17_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames20_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames20_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames2_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames2_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames36_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames36_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames37_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames37_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames38_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames38_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames39_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames39_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames3_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames3_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames40_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames40_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames41_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames41_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames42_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames42_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames43_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames43_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames44_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames44_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames45_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames45_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames49_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames49_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames50_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames50_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames5_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames5_ES6.ts | 1 - .../es6/computedProperties/computedPropertyNames9_ES5.ts | 1 - .../es6/computedProperties/computedPropertyNames9_ES6.ts | 1 - .../computedPropertyNamesDeclarationEmit1_ES5.ts | 1 - .../computedPropertyNamesDeclarationEmit1_ES6.ts | 1 - .../computedPropertyNamesDeclarationEmit2_ES5.ts | 1 - .../computedPropertyNamesDeclarationEmit2_ES6.ts | 1 - .../computedPropertyNamesDeclarationEmit5_ES5.ts | 1 - .../computedPropertyNamesDeclarationEmit5_ES6.ts | 1 - .../computedProperties/computedPropertyNamesOnOverloads_ES5.ts | 1 - .../computedProperties/computedPropertyNamesOnOverloads_ES6.ts | 1 - .../decorators/class/property/decoratorOnClassProperty1.es6.ts | 1 - .../conformance/es6/destructuring/declarationInAmbientContext.ts | 1 - .../es6/destructuring/declarationWithNoInitializer.ts | 1 - .../conformance/es6/destructuring/declarationsAndAssignments.ts | 1 - .../destructuringArrayBindingPatternAndAssignment3.ts | 1 - .../conformance/es6/destructuring/destructuringInFunctionType.ts | 1 - .../es6/destructuring/destructuringWithLiteralInitializers.ts | 1 - .../es6/destructuring/emptyArrayBindingPatternParameter02.ts | 1 - .../es6/destructuring/emptyArrayBindingPatternParameter03.ts | 1 - .../es6/destructuring/emptyObjectBindingPatternParameter02.ts | 1 - .../es6/destructuring/emptyObjectBindingPatternParameter03.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern10.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern11.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern12.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern13.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern14.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern15.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern16.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern17.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern18.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern19.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern20.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern25.ts | 1 - .../cases/conformance/es6/destructuring/iterableArrayPattern3.ts | 1 - .../conformance/es6/destructuring/iterableArrayPattern30.ts | 1 - .../cases/conformance/es6/destructuring/iterableArrayPattern4.ts | 1 - .../cases/conformance/es6/destructuring/iterableArrayPattern5.ts | 1 - .../cases/conformance/es6/destructuring/iterableArrayPattern6.ts | 1 - .../cases/conformance/es6/destructuring/iterableArrayPattern7.ts | 1 - .../cases/conformance/es6/destructuring/iterableArrayPattern8.ts | 1 - .../cases/conformance/es6/destructuring/iterableArrayPattern9.ts | 1 - .../es6/destructuring/restElementWithNullInitializer.ts | 1 - .../es6/functionDeclarations/FunctionDeclaration2_es6.ts | 1 - .../es6/functionDeclarations/FunctionDeclaration9_es6.ts | 1 - .../es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts | 1 - .../es6/moduleExportsSystem/topLevelVarHoistingSystem.ts | 1 - .../conformance/es6/modules/defaultExportWithOverloads01.ts | 1 - .../cases/conformance/es6/modules/defaultExportsCannotMerge04.ts | 1 - tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts | 1 - tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts | 1 - tests/cases/conformance/es6/modules/exportsAndImports1.ts | 1 - tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts | 1 - tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts | 1 - tests/cases/conformance/es6/modules/exportsAndImports3.ts | 1 - tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts | 1 - tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts | 1 - .../es6/propertyAccess/propertyAccessNumericLiterals.es6.ts | 1 - .../objectLiteralShorthandProperties.ts | 1 - .../objectLiteralShorthandPropertiesES6.ts | 1 - ...tLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts | 1 - ...bjectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts | 1 - .../objectLiteralShorthandPropertiesErrorWithModule.ts | 1 - .../objectLiteralShorthandPropertiesWithModule.ts | 1 - .../objectLiteralShorthandPropertiesWithModuleES6.ts | 1 - tests/cases/conformance/es6/spread/arrayLiteralSpread.ts | 1 - .../conformance/es6/spread/arrayLiteralSpreadES5iterable.ts | 1 - .../es6/variableDeclarations/VariableDeclaration2_es6.ts | 1 - .../conformance/es6/yieldExpressions/YieldExpression13_es6.ts | 1 - .../conformance/es6/yieldExpressions/YieldExpression3_es6.ts | 1 - .../conformance/es6/yieldExpressions/YieldExpression4_es6.ts | 1 - .../conformance/es6/yieldExpressions/YieldExpression6_es6.ts | 1 - .../conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck31.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck36.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck37.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck38.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck39.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck40.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck41.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck43.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck45.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck46.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck55.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck56.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck57.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck58.ts | 1 - .../conformance/es6/yieldExpressions/generatorTypeCheck60.ts | 1 - .../compoundExponentiationAssignmentLHSIsValue.ts | 1 - tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts | 1 - .../es7/trailingCommasInFunctionParametersAndArguments.ts | 1 - .../esDecorators-classDeclaration-exportModifier.2.ts | 1 - .../conformance/esDecorators/esDecorators-privateFieldAccess.ts | 1 - .../conformance/esDecorators/metadata/esDecoratorsMetadata1.ts | 1 - .../conformance/esDecorators/metadata/esDecoratorsMetadata2.ts | 1 - .../conformance/esDecorators/metadata/esDecoratorsMetadata3.ts | 1 - .../conformance/esDecorators/metadata/esDecoratorsMetadata4.ts | 1 - tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts | 1 - tests/cases/conformance/expressions/asOperator/asOperatorASI.ts | 1 - .../expressions/assignmentOperator/assignmentLHSIsValue.ts | 1 - .../assignmentOperator/compoundAssignmentLHSIsReference.ts | 1 - .../assignmentOperator/compoundAssignmentLHSIsValue.ts | 1 - .../additionOperator/additionOperatorWithAnyAndEveryType.ts | 1 - .../additionOperator/additionOperatorWithInvalidOperands.ts | 1 - .../comparisonOperatorWithSubtypeObjectOnProperty.ts | 1 - .../binaryOperators/inOperator/inOperatorWithInvalidOperands.ts | 1 - .../binaryOperators/inOperator/inOperatorWithValidOperands.ts | 1 - .../logicalAndOperator/logicalAndOperatorWithEveryType.ts | 1 - .../logicalOrOperator/logicalOrOperatorWithEveryType.ts | 1 - .../commaOperator/commaOperatorWithSecondOperandAnyType.ts | 1 - .../expressions/contextualTyping/generatedContextualTyping.ts | 1 - .../contextualTyping/parenthesizedContexualTyping1.ts | 1 - .../conformance/expressions/functionCalls/callWithSpreadES6.ts | 1 - .../conformance/expressions/functionCalls/grammarAmbiguities.ts | 1 - .../cases/conformance/expressions/functionCalls/newWithSpread.ts | 1 - .../conformance/expressions/functionCalls/newWithSpreadES5.ts | 1 - .../conformance/expressions/functionCalls/newWithSpreadES6.ts | 1 - .../conformance/expressions/functionCalls/overloadResolution.ts | 1 - .../functionCalls/overloadResolutionClassConstructors.ts | 1 - .../expressions/functionCalls/overloadResolutionConstructors.ts | 1 - .../functionCalls/typeArgumentInferenceConstructSignatures.ts | 1 - .../functionCalls/typeArgumentInferenceWithObjectLiteral.ts | 1 - .../conformance/expressions/functions/arrowFunctionContexts.ts | 1 - .../expressions/functions/arrowFunctionExpressions.ts | 1 - .../contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts | 1 - .../conformance/expressions/functions/contextuallyTypedIife.ts | 1 - .../expressions/newOperator/newOperatorConformance.ts | 1 - .../conformance/expressions/newOperator/newOperatorErrorCases.ts | 1 - .../nullishCoalescingOperatorInAsyncGenerator.ts | 1 - .../nullishCoalescingOperatorInParameterBindingPattern.2.ts | 1 - .../nullishCoalescingOperatorInParameterBindingPattern.ts | 1 - .../nullishCoalescingOperatorInParameterInitializer.2.ts | 1 - .../nullishCoalescingOperatorInParameterInitializer.ts | 1 - .../expressions/objectLiterals/objectLiteralGettersAndSetters.ts | 1 - .../optionalChainingInParameterBindingPattern.2.ts | 1 - .../optionalChainingInParameterBindingPattern.ts | 1 - .../optionalChaining/optionalChainingInParameterInitializer.2.ts | 1 - .../conformance/expressions/propertyAccess/propertyAccess.ts | 1 - .../expressions/propertyAccess/propertyAccessNumericLiterals.ts | 1 - .../cases/conformance/expressions/superCalls/errorSuperCalls.ts | 1 - .../expressions/superPropertyAccess/errorSuperPropertyAccess.ts | 1 - .../superPropertyAccess/superPropertyAccessNoError.ts | 1 - .../conformance/expressions/thisKeyword/thisInInvalidContexts.ts | 1 - .../thisKeyword/thisInInvalidContextsExternalModule.ts | 1 - .../conformance/expressions/thisKeyword/typeOfThisGeneral.ts | 1 - .../conformance/expressions/typeAssertions/typeAssertions.ts | 1 - .../conformance/expressions/typeGuards/typeGuardFunction.ts | 1 - .../expressions/typeGuards/typeGuardFunctionGenerics.ts | 1 - .../expressions/typeGuards/typeGuardFunctionOfFormThis.ts | 1 - .../expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts | 1 - .../expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts | 1 - .../expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts | 1 - .../bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts | 1 - .../decrementOperator/decrementOperatorWithAnyOtherType.ts | 1 - .../decrementOperatorWithAnyOtherTypeInvalidOperations.ts | 1 - .../decrementOperatorWithEnumTypeInvalidOperations.ts | 1 - .../deleteOperator/deleteOperatorWithAnyOtherType.ts | 1 - .../incrementOperator/incrementOperatorWithAnyOtherType.ts | 1 - .../incrementOperatorWithAnyOtherTypeInvalidOperations.ts | 1 - .../unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts | 1 - .../typeofOperator/typeofOperatorInvalidOperations.ts | 1 - .../unaryOperators/voidOperator/voidOperatorInvalidOperations.ts | 1 - .../unaryOperators/voidOperator/voidOperatorWithBooleanType.ts | 1 - .../unaryOperators/voidOperator/voidOperatorWithEnumType.ts | 1 - .../unaryOperators/voidOperator/voidOperatorWithNumberType.ts | 1 - .../unaryOperators/voidOperator/voidOperatorWithStringType.ts | 1 - .../conformance/expressions/valuesAndReferences/assignments.ts | 1 - .../externalModules/es6/es6modulekindWithES5Target6.ts | 1 - .../externalModules/esnext/esnextmodulekindWithES5Target6.ts | 1 - tests/cases/conformance/externalModules/exportAssignTypes.ts | 1 - .../externalModules/exportAssignmentCircularModules.ts | 1 - .../externalModules/exportNonInitializedVariablesAMD.ts | 1 - .../externalModules/exportNonInitializedVariablesCommonJS.ts | 1 - .../externalModules/exportNonInitializedVariablesES6.ts | 1 - .../externalModules/exportNonInitializedVariablesSystem.ts | 1 - .../externalModules/exportNonInitializedVariablesUMD.ts | 1 - .../conformance/externalModules/initializersInDeclarations.ts | 1 - tests/cases/conformance/externalModules/topLevelAmbientModule.ts | 1 - tests/cases/conformance/externalModules/topLevelAwait.1.ts | 1 - tests/cases/conformance/externalModules/topLevelAwait.2.ts | 1 - tests/cases/conformance/externalModules/topLevelAwait.3.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts | 1 - .../cases/conformance/externalModules/topLevelAwaitErrors.10.ts | 1 - .../cases/conformance/externalModules/topLevelAwaitErrors.11.ts | 1 - .../cases/conformance/externalModules/topLevelAwaitErrors.12.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts | 1 - tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts | 1 - .../cases/conformance/externalModules/topLevelAwaitNonModule.ts | 1 - tests/cases/conformance/externalModules/topLevelFileModule.ts | 1 - .../conformance/externalModules/topLevelFileModuleMissing.ts | 1 - .../externalModules/topLevelModuleDeclarationAndFile.ts | 1 - tests/cases/conformance/externalModules/umd-errors.ts | 1 - tests/cases/conformance/fixSignatureCaching.ts | 1 - .../cases/conformance/functions/functionImplementationErrors.ts | 1 - tests/cases/conformance/functions/functionImplementations.ts | 1 - tests/cases/conformance/functions/functionNameConflicts.ts | 1 - tests/cases/conformance/functions/functionOverloadErrors.ts | 1 - .../cases/conformance/functions/functionOverloadErrorsSyntax.ts | 1 - .../functions/functionParameterObjectRestAndInitializers.ts | 1 - .../functions/functionWithUseStrictAndSimpleParameterList.ts | 1 - .../functionWithUseStrictAndSimpleParameterList_es2016.ts | 1 - .../functions/parameterInitializersBackwardReferencing.ts | 1 - .../functions/parameterInitializersForwardReferencing.2.ts | 1 - .../functions/parameterInitializersForwardReferencing.ts | 1 - .../functions/parameterInitializersForwardReferencing1_es6.ts | 1 - ...MergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts | 1 - ...nalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts | 1 - ...ParameterConstraintsClassHeritageListMemberTypeAnnotations.ts | 1 - ...portInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts | 1 - .../exportDeclarations/NonInitializedExportInInternalModule.ts | 1 - .../conformance/jsdoc/callOfPropertylessConstructorFunction.ts | 1 - tests/cases/conformance/jsdoc/callbackTag2.ts | 1 - .../jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts | 1 - tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts | 1 - tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts | 1 - tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts | 1 - tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts | 1 - tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts | 1 - .../jsdoc/declarations/jsDeclarationsClassAccessor.ts | 1 - .../jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts | 1 - .../jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts | 1 - .../conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts | 1 - .../jsdoc/declarations/jsDeclarationsExportedClassAliases.ts | 1 - .../jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts | 1 - .../jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts | 1 - .../conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts | 1 - .../jsdoc/declarations/jsDeclarationsMissingGenerics.ts | 1 - .../jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts | 1 - .../declarations/jsDeclarationsNonIdentifierInferredNames.ts | 1 - tests/cases/conformance/jsdoc/enumTag.ts | 1 - tests/cases/conformance/jsdoc/enumTagCircularReference.ts | 1 - tests/cases/conformance/jsdoc/enumTagImported.ts | 1 - tests/cases/conformance/jsdoc/enumTagOnExports.ts | 1 - tests/cases/conformance/jsdoc/enumTagOnExports2.ts | 1 - tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts | 1 - tests/cases/conformance/jsdoc/errorIsolation.ts | 1 - tests/cases/conformance/jsdoc/importTag24.ts | 1 - .../conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts | 1 - tests/cases/conformance/jsdoc/jsdocLinkTag8.ts | 1 - tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts | 1 - tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts | 1 - tests/cases/conformance/jsdoc/jsdocParamTag2.ts | 1 - tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts | 1 - tests/cases/conformance/jsdoc/jsdocTemplateTag.ts | 1 - tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts | 1 - tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts | 1 - tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts | 1 - tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts | 1 - tests/cases/conformance/jsdoc/overloadTag1.ts | 1 - .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts | 1 - .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts | 1 - .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts | 1 - .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts | 1 - tests/cases/conformance/jsdoc/parseLinkTag.ts | 1 - tests/cases/conformance/jsdoc/syntaxErrors.ts | 1 - tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts | 1 - tests/cases/conformance/jsx/jsxAttributeInitializer.ts | 1 - tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts | 1 - tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts | 1 - .../conformance/moduleResolution/extensionLoadingPriority.ts | 1 - tests/cases/conformance/moduleResolution/packageJsonMain.ts | 1 - .../moduleResolution/packageJsonMain_isNonRecursive.ts | 1 - tests/cases/conformance/moduleResolution/untypedModuleImport.ts | 1 - .../conformance/moduleResolution/untypedModuleImport_allowJs.ts | 1 - .../moduleResolution/untypedModuleImport_vsAmbient.ts | 1 - .../moduleResolution/untypedModuleImport_withAugmentation.ts | 1 - .../node/allowJs/nodeModulesAllowJsImportAssignment.ts | 1 - .../conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts | 1 - tests/cases/conformance/node/nodeModulesImportAssignments.ts | 1 - .../nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts | 1 - .../node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts | 1 - tests/cases/conformance/node/nodeModulesTopLevelAwait.ts | 1 - tests/cases/conformance/override/override_js2.ts | 1 - tests/cases/conformance/override/override_js3.ts | 1 - .../parser.asyncGenerators.classMethods.es2018.ts | 1 - .../parser.asyncGenerators.functionDeclarations.es2018.ts | 1 - .../parser.asyncGenerators.functionExpressions.es2018.ts | 1 - .../parser.asyncGenerators.objectLiteralMethods.es2018.ts | 1 - .../parser/ecmascript3/Accessors/parserES3Accessors2.ts | 1 - .../conformance/parser/ecmascript5/Accessors/parserAccessors2.ts | 1 - .../conformance/parser/ecmascript5/Accessors/parserAccessors4.ts | 1 - .../conformance/parser/ecmascript5/Accessors/parserAccessors6.ts | 1 - .../conformance/parser/ecmascript5/Accessors/parserAccessors8.ts | 1 - .../conformance/parser/ecmascript5/Accessors/parserAccessors9.ts | 1 - .../Accessors/parserSetAccessorWithTypeAnnotation1.ts | 1 - .../Accessors/parserSetAccessorWithTypeParameters1.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression10.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression11.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression12.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression15.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression16.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression17.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression8.ts | 1 - .../ArrowFunctionExpressions/parserArrowFunctionExpression9.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration10.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration12.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration13.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration14.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration15.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration16.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration17.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration19.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration20.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration21.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration22.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration26.ts | 1 - .../ecmascript5/ClassDeclarations/parserClassDeclaration9.ts | 1 - .../ComputedPropertyNames/parserES5ComputedPropertyName11.ts | 1 - .../ComputedPropertyNames/parserES5ComputedPropertyName7.ts | 1 - .../AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts | 1 - .../AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts | 1 - .../AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts | 1 - .../ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts | 1 - .../ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts | 1 - .../parserErrorRecovery_IncompleteMemberVariable2.ts | 1 - .../ParameterLists/parserErrorRecovery_ParameterList1.ts | 1 - .../ParameterLists/parserErrorRecovery_ParameterList2.ts | 1 - .../ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts | 1 - .../ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts | 1 - .../ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts | 1 - .../ErrorRecovery/parserModifierOnPropertySignature1.ts | 1 - .../ErrorRecovery/parserModifierOnPropertySignature2.ts | 1 - .../parserStatementIsNotAMemberVariableDeclaration1.ts | 1 - .../FunctionDeclarations/parserFunctionDeclaration1.ts | 1 - .../FunctionDeclarations/parserFunctionDeclaration4.ts | 1 - .../FunctionDeclarations/parserFunctionDeclaration5.ts | 1 - .../FunctionDeclarations/parserFunctionDeclaration6.ts | 1 - .../FunctionDeclarations/parserFunctionDeclaration7.ts | 1 - .../FunctionDeclarations/parserFunctionDeclaration8.ts | 1 - .../cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts | 1 - .../ecmascript5/Generics/parserCastVersusArrowFunction1.ts | 1 - .../IndexMemberDeclarations/parserIndexMemberDeclaration10.ts | 1 - .../parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts | 1 - .../parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts | 1 - .../parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts | 1 - .../parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts | 1 - .../parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts | 1 - .../parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts | 1 - .../parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts | 1 - .../parserMemberAccessorDeclaration13.ts | 1 - .../parserMemberAccessorDeclaration16.ts | 1 - .../parserMemberAccessorDeclaration18.ts | 1 - .../parserMemberAccessorDeclaration4.ts | 1 - .../parserMemberAccessorDeclaration5.ts | 1 - .../parserMemberAccessorDeclaration6.ts | 1 - .../parserMemberAccessorDeclaration8.ts | 1 - .../parserMemberFunctionDeclaration2.ts | 1 - .../parserMemberVariableDeclaration1.ts | 1 - .../parserMemberVariableDeclaration2.ts | 1 - .../parserMemberVariableDeclaration3.ts | 1 - .../parserMemberVariableDeclaration4.ts | 1 - .../parserMemberVariableDeclaration5.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature1.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature10.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature11.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature12.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature2.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature3.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature4.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature5.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature6.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature7.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature8.ts | 1 - .../ecmascript5/MethodSignatures/parserMethodSignature9.ts | 1 - .../ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts | 1 - .../parser/ecmascript5/ObjectTypes/parserObjectType3.ts | 1 - .../parser/ecmascript5/ObjectTypes/parserObjectType4.ts | 1 - .../parser/ecmascript5/ObjectTypes/parserObjectType5.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList1.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList10.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList12.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList13.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList14.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList15.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList16.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList17.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList3.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList4.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList5.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList6.ts | 1 - .../parser/ecmascript5/ParameterLists/parserParameterList9.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature1.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature10.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature11.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature12.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature2.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature5.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature6.ts | 1 - .../ecmascript5/PropertySignatures/parserPropertySignature9.ts | 1 - .../cases/conformance/parser/ecmascript5/Protected/Protected8.ts | 1 - .../cases/conformance/parser/ecmascript5/Protected/Protected9.ts | 1 - .../parser/ecmascript5/RegressionTests/parser509534.ts | 1 - .../parser/ecmascript5/RegressionTests/parser509546.ts | 1 - .../parser/ecmascript5/RegressionTests/parser509546_1.ts | 1 - .../parser/ecmascript5/RegressionTests/parser509546_2.ts | 1 - .../parser/ecmascript5/RegressionTests/parser509630.ts | 1 - .../parser/ecmascript5/RegressionTests/parser642331.ts | 1 - .../parser/ecmascript5/RegressionTests/parser642331_1.ts | 1 - .../parser/ecmascript5/RegressionTests/parser643728.ts | 1 - .../ecmascript5/RegularExpressions/parserRegularExpression6.ts | 1 - .../parserRegularExpressionDivideAmbiguity6.ts | 1 - .../parser/ecmascript5/Statements/parserES5ForOfStatement18.ts | 1 - .../parser/ecmascript5/Statements/parserES5ForOfStatement19.ts | 1 - .../parser/ecmascript5/Statements/parserES5ForOfStatement20.ts | 1 - .../parser/ecmascript5/Statements/parserForStatement2.ts | 1 - .../parser/ecmascript5/StrictMode/parserStrictMode10.ts | 1 - .../parser/ecmascript5/StrictMode/parserStrictMode11.ts | 1 - .../parser/ecmascript5/StrictMode/parserStrictMode12.ts | 1 - .../VariableDeclarations/parserVariableDeclaration4.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts | 1 - tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts | 1 - .../parser/ecmascript5/parserUsingConstructorAsIdentifier.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName11.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName17.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName19.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName24.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName25.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName26.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName27.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName33.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName7.ts | 1 - .../ComputedPropertyNames/parserComputedPropertyName8.ts | 1 - .../parser/ecmascript6/Iterators/parserForOfStatement18.ts | 1 - .../parser/ecmascript6/Iterators/parserForOfStatement19.ts | 1 - .../parser/ecmascript6/Iterators/parserForOfStatement20.ts | 1 - .../salsa/binderUninitializedModuleExportsAssignment.ts | 1 - .../conformance/salsa/circularMultipleAssignmentDeclaration.ts | 1 - tests/cases/conformance/salsa/commonJSAliasedExport.ts | 1 - .../cases/conformance/salsa/conflictingCommonJSES2015Exports.ts | 1 - tests/cases/conformance/salsa/constructorFunctions.ts | 1 - tests/cases/conformance/salsa/constructorFunctions2.ts | 1 - tests/cases/conformance/salsa/expandoOnAlias.ts | 1 - tests/cases/conformance/salsa/exportNestedNamespaces2.ts | 1 - .../conformance/salsa/inferringClassMembersFromAssignments8.ts | 1 - tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts | 1 - .../salsa/mixedPropertyElementAccessAssignmentDeclaration.ts | 1 - tests/cases/conformance/salsa/moduleExportAlias2.ts | 1 - tests/cases/conformance/salsa/moduleExportAssignment2.ts | 1 - tests/cases/conformance/salsa/moduleExportAssignment4.ts | 1 - tests/cases/conformance/salsa/privateIdentifierExpando.ts | 1 - .../conformance/salsa/propertyAssignmentOnImportedSymbol.ts | 1 - .../conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts | 1 - .../salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts | 1 - .../cases/conformance/salsa/propertyAssignmentUseParentType1.ts | 1 - .../cases/conformance/salsa/propertyAssignmentUseParentType2.ts | 1 - .../cases/conformance/salsa/propertyAssignmentUseParentType3.ts | 1 - tests/cases/conformance/salsa/topLevelThisAssignment.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts | 1 - tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts | 1 - .../conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts | 1 - .../conformance/salsa/typeFromPropertyAssignmentWithExport.ts | 1 - tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts | 1 - .../cases/conformance/salsa/unannotatedParametersAreOptional.ts | 1 - .../statements/VariableStatements/everyTypeWithInitializer.ts | 1 - .../statements/VariableStatements/recursiveInitializer.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.1.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.10.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.11.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.12.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.13.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.14.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.15.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.16.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.17.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.3.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.5.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.7.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.8.ts | 1 - .../usingDeclarations/awaitUsingDeclarations.9.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInFor.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForIn.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForOf.1.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForOf.2.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForOf.3.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForOf.4.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsInForOf.5.ts | 1 - .../usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts | 1 - .../awaitUsingDeclarationsWithIteratorObject.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.1.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.10.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.11.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.12.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.13.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.14.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.15.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.16.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.17.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.3.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.5.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.7.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.8.ts | 1 - .../VariableStatements/usingDeclarations/usingDeclarations.9.ts | 1 - .../usingDeclarations/usingDeclarationsInFor.ts | 1 - .../usingDeclarations/usingDeclarationsInForAwaitOf.ts | 1 - .../usingDeclarations/usingDeclarationsInForIn.ts | 1 - .../usingDeclarations/usingDeclarationsInForOf.1.ts | 1 - .../usingDeclarations/usingDeclarationsInForOf.2.ts | 1 - .../usingDeclarations/usingDeclarationsInForOf.3.ts | 1 - .../usingDeclarations/usingDeclarationsInForOf.4.ts | 1 - .../usingDeclarationsWithESClassDecorators.1.ts | 1 - .../usingDeclarationsWithESClassDecorators.10.ts | 1 - .../usingDeclarationsWithESClassDecorators.11.ts | 1 - .../usingDeclarationsWithESClassDecorators.12.ts | 1 - .../usingDeclarationsWithESClassDecorators.2.ts | 1 - .../usingDeclarationsWithESClassDecorators.3.ts | 1 - .../usingDeclarationsWithESClassDecorators.4.ts | 1 - .../usingDeclarationsWithESClassDecorators.5.ts | 1 - .../usingDeclarationsWithESClassDecorators.6.ts | 1 - .../usingDeclarationsWithESClassDecorators.7.ts | 1 - .../usingDeclarationsWithESClassDecorators.8.ts | 1 - .../usingDeclarationsWithESClassDecorators.9.ts | 1 - .../usingDeclarations/usingDeclarationsWithImportHelpers.ts | 1 - .../usingDeclarations/usingDeclarationsWithIteratorObject.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.1.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.10.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.11.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.12.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.2.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.3.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.4.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.5.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.6.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.7.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.8.ts | 1 - .../usingDeclarationsWithLegacyClassDecorators.9.ts | 1 - .../statements/breakStatements/forInBreakStatements.ts | 1 - .../statements/continueStatements/forInContinueStatements.ts | 1 - .../conformance/statements/for-inStatements/for-inStatements.ts | 1 - .../statements/for-inStatements/for-inStatementsArray.ts | 1 - .../for-inStatements/for-inStatementsAsyncIdentifier.ts | 1 - .../for-inStatements/for-inStatementsDestructuring3.ts | 1 - .../for-inStatements/for-inStatementsDestructuring4.ts | 1 - .../statements/for-inStatements/for-inStatementsInvalid.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of14.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of15.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of16.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of18.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of19.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of2.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of20.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of21.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of22.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of23.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of24.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of25.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of26.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of27.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of28.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of29.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of4.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of5.ts | 1 - .../cases/conformance/statements/for-ofStatements/ES5For-of6.ts | 1 - .../statements/throwStatements/throwInEnclosingStatements.ts | 1 - .../conformance/statements/throwStatements/throwStatements.ts | 1 - .../types/any/narrowExceptionVariableInCatchClause.ts | 1 - .../conformance/types/any/narrowFromAnyWithTypePredicate.ts | 1 - .../types/asyncGenerators/types.asyncGenerators.es2018.1.ts | 1 - .../types/asyncGenerators/types.asyncGenerators.es2018.2.ts | 1 - .../partiallyAnnotatedFunctionInferenceError.ts | 1 - .../types/intersection/operatorsAndIntersectionTypes.ts | 1 - tests/cases/conformance/types/localTypes/localTypes4.ts | 1 - tests/cases/conformance/types/mapped/mappedTypeProperties.ts | 1 - .../types/members/augmentedTypeAssignmentCompatIndexSignature.ts | 1 - .../types/members/augmentedTypeBracketAccessIndexSignature.ts | 1 - .../cases/conformance/types/members/classWithPrivateProperty.ts | 1 - .../conformance/types/members/classWithProtectedProperty.ts | 1 - tests/cases/conformance/types/members/classWithPublicProperty.ts | 1 - tests/cases/conformance/types/members/duplicatePropertyNames.ts | 1 - .../types/members/objectTypeHidingMembersOfExtendedObject.ts | 1 - ...objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts | 1 - ...tTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts | 1 - .../types/members/objectTypeWithDuplicateNumericProperty.ts | 1 - .../members/objectTypeWithStringIndexerHidingObjectIndexer.ts | 1 - .../objectTypeWithStringNamedPropertyOfIllegalCharacters.ts | 1 - .../types/members/typesWithSpecializedCallSignatures.ts | 1 - .../types/members/typesWithSpecializedConstructSignatures.ts | 1 - .../namedTypes/genericInstantiationEquivalentToObjectLiteral.ts | 1 - .../types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts | 1 - .../nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts | 1 - .../callSignatureWithOptionalParameterAndInitializer.ts | 1 - .../callSignatures/callSignatureWithoutAnnotationsOrBody.ts | 1 - .../callSignatureWithoutReturnTypeAnnotationInference.ts | 1 - .../callSignatures/callSignaturesThatDifferOnlyByReturnType.ts | 1 - .../callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts | 1 - .../callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts | 1 - .../callSignaturesWithAccessibilityModifiersOnParameters.ts | 1 - .../callSignatures/callSignaturesWithDuplicateParameters.ts | 1 - .../callSignatures/callSignaturesWithOptionalParameters.ts | 1 - .../callSignatures/callSignaturesWithOptionalParameters2.ts | 1 - .../callSignatures/callSignaturesWithParameterInitializers.ts | 1 - .../callSignatures/callSignaturesWithParameterInitializers2.ts | 1 - .../constructSignatureWithAccessibilityModifiersOnParameters.ts | 1 - .../constructSignatureWithAccessibilityModifiersOnParameters2.ts | 1 - .../objectTypeLiteral/callSignatures/identicalCallSignatures.ts | 1 - .../objectTypeLiteral/callSignatures/identicalCallSignatures2.ts | 1 - .../objectTypeLiteral/callSignatures/identicalCallSignatures3.ts | 1 - .../callSignatures/parametersWithNoAnnotationAreAny.ts | 1 - .../callSignatures/restParameterWithoutAnnotationIsAnyArray.ts | 1 - .../callSignatures/restParametersOfNonArrayTypes.ts | 1 - .../callSignatures/restParametersOfNonArrayTypes2.ts | 1 - .../callSignatures/restParametersWithArrayTypeAnnotations.ts | 1 - .../specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts | 1 - .../specializedSignatureIsSubtypeOfNonSpecializedSignature.ts | 1 - .../stringLiteralTypesInImplementationSignatures.ts | 1 - .../stringLiteralTypesInImplementationSignatures2.ts | 1 - .../numericIndexerConstrainsPropertyDeclarations.ts | 1 - .../numericIndexerConstrainsPropertyDeclarations2.ts | 1 - .../stringIndexerConstrainsPropertyDeclarations.ts | 1 - .../stringIndexerConstrainsPropertyDeclarations2.ts | 1 - .../methodSignatures/objectTypesWithOptionalProperties2.ts | 1 - .../propertySignatures/propertyNameWithoutTypeAnnotation.ts | 1 - .../propertySignatures/propertyNamesOfReservedWords.ts | 1 - .../types/primitives/stringLiteral/stringLiteralType.ts | 1 - tests/cases/conformance/types/rest/objectRest.ts | 1 - tests/cases/conformance/types/rest/objectRest2.ts | 1 - tests/cases/conformance/types/rest/objectRestAssignment.ts | 1 - tests/cases/conformance/types/rest/objectRestCatchES5.ts | 1 - tests/cases/conformance/types/rest/objectRestForOf.ts | 1 - tests/cases/conformance/types/rest/objectRestParameter.ts | 1 - tests/cases/conformance/types/rest/objectRestParameterES5.ts | 1 - .../cases/conformance/types/rest/objectRestPropertyMustBeLast.ts | 1 - tests/cases/conformance/types/rest/objectRestReadonly.ts | 1 - .../specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts | 1 - .../specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts | 1 - .../specifyingTypes/typeLiterals/functionLiteralForOverloads.ts | 1 - .../specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts | 1 - .../types/specifyingTypes/typeLiterals/parenthesizedTypes.ts | 1 - .../specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts | 1 - .../types/specifyingTypes/typeQueries/typeQueryOnClass.ts | 1 - .../types/specifyingTypes/typeQueries/typeofClass2.ts | 1 - .../typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts | 1 - .../typeReferences/genericTypeReferenceWithoutTypeArgument3.ts | 1 - .../types/stringLiteral/stringLiteralTypesAndTuples01.ts | 1 - .../types/stringLiteral/stringLiteralTypesAsTags01.ts | 1 - .../types/stringLiteral/stringLiteralTypesAsTags02.ts | 1 - .../types/stringLiteral/stringLiteralTypesAsTags03.ts | 1 - .../types/stringLiteral/stringLiteralTypesInUnionTypes01.ts | 1 - .../types/stringLiteral/stringLiteralTypesInUnionTypes02.ts | 1 - .../types/stringLiteral/stringLiteralTypesInUnionTypes03.ts | 1 - .../types/stringLiteral/stringLiteralTypesInUnionTypes04.ts | 1 - .../stringLiteral/stringLiteralTypesInVariableDeclarations01.ts | 1 - .../types/stringLiteral/stringLiteralTypesOverloads01.ts | 1 - .../types/stringLiteral/stringLiteralTypesOverloads02.ts | 1 - .../types/stringLiteral/stringLiteralTypesTypePredicates01.ts | 1 - .../conformance/types/thisType/contextualThisTypeInJavascript.ts | 1 - tests/cases/conformance/types/thisType/thisTypeInFunctions.ts | 1 - tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts | 1 - tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts | 1 - .../conformance/types/thisType/thisTypeInFunctionsNegative.ts | 1 - tests/cases/conformance/types/tuple/named/namedTupleMembers.ts | 1 - .../conformance/types/tuple/named/namedTupleMembersErrors.ts | 1 - .../types/typeAliases/asiPreventsParsingAsTypeAlias02.ts | 1 - .../typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts | 1 - .../typeArgumentLists/functionConstraintSatisfaction.ts | 1 - .../typeArgumentLists/functionConstraintSatisfaction2.ts | 1 - .../typeArgumentLists/functionConstraintSatisfaction3.ts | 1 - .../instantiateNonGenericTypeWithTypeArguments.ts | 1 - .../typeParameterAsTypeParameterConstraintTransitively.ts | 1 - .../typeParameterAsTypeParameterConstraintTransitively2.ts | 1 - .../propertyAccessOnTypeParameterWithConstraints.ts | 1 - .../propertyAccessOnTypeParameterWithConstraints2.ts | 1 - .../propertyAccessOnTypeParameterWithConstraints3.ts | 1 - .../propertyAccessOnTypeParameterWithConstraints4.ts | 1 - .../propertyAccessOnTypeParameterWithConstraints5.ts | 1 - .../propertyAccessOnTypeParameterWithoutConstraints.ts | 1 - .../assignmentCompatibility/anyAssignabilityInInheritance.ts | 1 - .../assignmentCompatibility/anyAssignableToEveryType2.ts | 1 - ...nmentCompatWithGenericCallSignaturesWithOptionalParameters.ts | 1 - .../assignmentCompatibility/assignmentCompatWithObjectMembers.ts | 1 - .../assignmentCompatWithObjectMembers2.ts | 1 - .../assignmentCompatWithObjectMembers3.ts | 1 - .../assignmentCompatWithObjectMembers4.ts | 1 - .../assignmentCompatWithObjectMembers5.ts | 1 - .../assignmentCompatWithObjectMembersAccessibility.ts | 1 - .../assignmentCompatWithObjectMembersNumericNames.ts | 1 - .../assignmentCompatWithObjectMembersOptionality.ts | 1 - .../assignmentCompatWithObjectMembersOptionality2.ts | 1 - .../assignmentCompatWithObjectMembersStringNumericNames.ts | 1 - .../assignmentCompatibility/enumAssignabilityInInheritance.ts | 1 - .../assignmentCompatibility/nullAssignableToEveryType.ts | 1 - .../assignmentCompatibility/nullAssignedToUndefined.ts | 1 - .../bestCommonType/heterogeneousArrayLiterals.ts | 1 - .../comparable/typeAssertionsWithIntersectionTypes01.ts | 1 - .../comparable/typeAssertionsWithUnionTypes01.ts | 1 - .../recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts | 1 - .../recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts | 1 - .../enumIsNotASubtypeOfAnythingButNumber.ts | 1 - .../nullIsSubtypeOfEverythingButUndefined.ts | 1 - .../subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts | 1 - .../typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts | 1 - .../typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts | 1 - .../subtypesAndSuperTypes/subtypingWithCallSignatures4.ts | 1 - .../subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts | 1 - .../unionSubtypeIfEveryConstituentTypeIsSubtype.ts | 1 - .../typeAndMemberIdentity/objectTypesIdentity.ts | 1 - .../typeAndMemberIdentity/objectTypesIdentity2.ts | 1 - .../objectTypesIdentityWithCallSignatures.ts | 1 - .../objectTypesIdentityWithCallSignatures2.ts | 1 - .../objectTypesIdentityWithCallSignatures3.ts | 1 - .../objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts | 1 - ...objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts | 1 - .../objectTypesIdentityWithCallSignaturesWithOverloads.ts | 1 - .../objectTypesIdentityWithComplexConstraints.ts | 1 - .../objectTypesIdentityWithConstructSignatures.ts | 1 - .../objectTypesIdentityWithConstructSignatures2.ts | 1 - ...ctTypesIdentityWithConstructSignaturesDifferingParamCounts.ts | 1 - .../objectTypesIdentityWithGenericCallSignatures.ts | 1 - .../objectTypesIdentityWithGenericCallSignatures2.ts | 1 - ...pesIdentityWithGenericCallSignaturesDifferingByConstraints.ts | 1 - ...esIdentityWithGenericCallSignaturesDifferingByConstraints2.ts | 1 - ...esIdentityWithGenericCallSignaturesDifferingByConstraints3.ts | 1 - ...ypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts | 1 - ...pesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts | 1 - ...ntityWithGenericCallSignaturesDifferingTypeParameterCounts.ts | 1 - ...tityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts | 1 - ...entityWithGenericCallSignaturesDifferingTypeParameterNames.ts | 1 - ...objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts | 1 - ...bjectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts | 1 - ...bjectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts | 1 - ...entityWithGenericConstructSignaturesDifferingByConstraints.ts | 1 - ...ntityWithGenericConstructSignaturesDifferingByConstraints2.ts | 1 - ...ntityWithGenericConstructSignaturesDifferingByConstraints3.ts | 1 - ...dentityWithGenericConstructSignaturesDifferingByReturnType.ts | 1 - ...entityWithGenericConstructSignaturesDifferingByReturnType2.ts | 1 - ...WithGenericConstructSignaturesDifferingTypeParameterCounts.ts | 1 - ...yWithGenericConstructSignaturesDifferingTypeParameterNames.ts | 1 - ...tTypesIdentityWithGenericConstructSignaturesOptionalParams.ts | 1 - ...TypesIdentityWithGenericConstructSignaturesOptionalParams2.ts | 1 - ...TypesIdentityWithGenericConstructSignaturesOptionalParams3.ts | 1 - .../objectTypesIdentityWithNumericIndexers1.ts | 1 - .../objectTypesIdentityWithNumericIndexers2.ts | 1 - .../objectTypesIdentityWithNumericIndexers3.ts | 1 - .../typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts | 1 - .../typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts | 1 - .../typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts | 1 - .../typeAndMemberIdentity/objectTypesIdentityWithPublics.ts | 1 - .../objectTypesIdentityWithStringIndexers.ts | 1 - .../objectTypesIdentityWithStringIndexers2.ts | 1 - .../typeAndMemberIdentity/primtiveTypesAreIdentical.ts | 1 - .../typeParametersAreIdenticalToThemselves.ts | 1 - .../typeInference/genericCallTypeArgumentInference.ts | 1 - .../genericCallWithConstraintsTypeArgumentInference.ts | 1 - .../genericCallWithConstraintsTypeArgumentInference2.ts | 1 - .../typeInference/genericCallWithGenericSignatureArguments.ts | 1 - .../typeInference/genericCallWithGenericSignatureArguments2.ts | 1 - .../typeInference/genericCallWithGenericSignatureArguments3.ts | 1 - .../genericCallWithOverloadedFunctionTypedArguments.ts | 1 - .../genericCallWithOverloadedFunctionTypedArguments2.ts | 1 - .../types/typeRelationships/widenedTypes/arrayLiteralWidened.ts | 1 - .../types/typeRelationships/widenedTypes/objectLiteralWidened.ts | 1 - tests/cases/conformance/types/union/unionTypeReduction.ts | 1 - .../cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts | 1 - tests/cases/fourslash/commentsInterfaceFourslash.ts | 1 - tests/cases/fourslash/commentsOverloadsFourslash.ts | 1 - tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts | 1 - tests/cases/fourslash/contextualTypingGenericFunction1.ts | 1 - tests/cases/fourslash/contextualTypingOfArrayLiterals.ts | 1 - .../cases/fourslash/contextualTypingOfGenericCallSignatures1.ts | 1 - .../cases/fourslash/contextualTypingOfGenericCallSignatures2.ts | 1 - tests/cases/fourslash/contextualTypingReturnExpressions.ts | 1 - tests/cases/fourslash/extendArrayInterface.ts | 1 - tests/cases/fourslash/extendArrayInterfaceMember.ts | 1 - tests/cases/fourslash/jsdocTemplateTagCompletion.ts | 1 - tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts | 1 - tests/cases/fourslash/optionalPropertyFormatting.ts | 1 - tests/cases/fourslash/qualifyModuleTypeNames.ts | 1 - .../server/declarationMapsGoToDefinitionRelativeSourceRoot.ts | 1 - tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts | 1 - .../stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts | 1 - tests/cases/fourslash/thisBindingInLambda.ts | 1 - tests/cases/fourslash/typeAssertionsFormatting.ts | 1 - tests/cases/fourslash/unusedImports13FS.ts | 1 - tests/cases/fourslash/unusedImports14FS.ts | 1 - tests/cases/projects/PrologueEmit/globalThisCapture.ts | 1 - 2034 files changed, 2034 deletions(-) diff --git a/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts index ae07e82ff02a1..fe90dded9e3c8 100644 --- a/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts +++ b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts @@ -1,4 +1,3 @@ -// @strict: false class C { const x = 10; diff --git a/tests/cases/compiler/accessorDeclarationEmitJs.ts b/tests/cases/compiler/accessorDeclarationEmitJs.ts index 890f284e12d26..b729ec9209ebe 100644 --- a/tests/cases/compiler/accessorDeclarationEmitJs.ts +++ b/tests/cases/compiler/accessorDeclarationEmitJs.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/accessorParameterAccessibilityModifier.ts b/tests/cases/compiler/accessorParameterAccessibilityModifier.ts index baa5841fbfe3b..9d6ec6870f175 100644 --- a/tests/cases/compiler/accessorParameterAccessibilityModifier.ts +++ b/tests/cases/compiler/accessorParameterAccessibilityModifier.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 class C { diff --git a/tests/cases/compiler/accessorWithInitializer.ts b/tests/cases/compiler/accessorWithInitializer.ts index 867dc097c2043..cdb63475adf60 100644 --- a/tests/cases/compiler/accessorWithInitializer.ts +++ b/tests/cases/compiler/accessorWithInitializer.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 class C { diff --git a/tests/cases/compiler/accessorWithRestParam.ts b/tests/cases/compiler/accessorWithRestParam.ts index 677bc1fc3c25b..015846a4aaa96 100644 --- a/tests/cases/compiler/accessorWithRestParam.ts +++ b/tests/cases/compiler/accessorWithRestParam.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 class C { diff --git a/tests/cases/compiler/accessorWithoutBody1.ts b/tests/cases/compiler/accessorWithoutBody1.ts index 617afe2c8bf1d..2cf246affbae0 100644 --- a/tests/cases/compiler/accessorWithoutBody1.ts +++ b/tests/cases/compiler/accessorWithoutBody1.ts @@ -1,3 +1,2 @@ -// @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 be30eacaad66b..11ece4b4d96ae 100644 --- a/tests/cases/compiler/accessorWithoutBody2.ts +++ b/tests/cases/compiler/accessorWithoutBody2.ts @@ -1,3 +1,2 @@ -// @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 98f2287722be1..dd96c63b7a7a9 100644 --- a/tests/cases/compiler/accessorsEmit.ts +++ b/tests/cases/compiler/accessorsEmit.ts @@ -1,4 +1,3 @@ -// @strict: false class Result { } class Test { diff --git a/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts b/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts index 49f3bc814ec19..90f9869d94d63 100644 --- a/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts +++ b/tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts @@ -1,4 +1,3 @@ -// @strict: false // @checkJs: true // @allowJs: true // @outDir: ./dist diff --git a/tests/cases/compiler/allowSyntheticDefaultImports10.ts b/tests/cases/compiler/allowSyntheticDefaultImports10.ts index 020e3e0c60cc4..6b50bae96d8fe 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports10.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports10.ts @@ -1,4 +1,3 @@ -// @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 8d0540208e726..2da05e4678c7f 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports7.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports7.ts @@ -1,4 +1,3 @@ -// @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 6460befbc2dff..3a213ad80235f 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports8.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports8.ts @@ -1,4 +1,3 @@ -// @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 b5f877a0d35c7..8da66f33adf56 100644 --- a/tests/cases/compiler/allowSyntheticDefaultImports9.ts +++ b/tests/cases/compiler/allowSyntheticDefaultImports9.ts @@ -1,4 +1,3 @@ -// @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 8cbfa323448ea..ca26f1b2a4415 100644 --- a/tests/cases/compiler/ambientClassDeclarationWithExtends.ts +++ b/tests/cases/compiler/ambientClassDeclarationWithExtends.ts @@ -1,4 +1,3 @@ -// @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 583f9c9468239..83b089dffbb8d 100644 --- a/tests/cases/compiler/ambientClassOverloadForFunction.ts +++ b/tests/cases/compiler/ambientClassOverloadForFunction.ts @@ -1,3 +1,2 @@ -// @strict: false declare class foo{}; function foo() { return null; } diff --git a/tests/cases/compiler/ambientFundule.ts b/tests/cases/compiler/ambientFundule.ts index 1dcb40706b9ad..772ae088eb1c0 100644 --- a/tests/cases/compiler/ambientFundule.ts +++ b/tests/cases/compiler/ambientFundule.ts @@ -1,4 +1,3 @@ -// @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 467bb3da80c94..d4dcc3a5b7d67 100644 --- a/tests/cases/compiler/ambientWithStatements.ts +++ b/tests/cases/compiler/ambientWithStatements.ts @@ -1,4 +1,3 @@ -// @strict: false declare namespace M { break; continue; diff --git a/tests/cases/compiler/ambiguousGenericAssertion1.ts b/tests/cases/compiler/ambiguousGenericAssertion1.ts index 48a81890a9057..2d0df6debae71 100644 --- a/tests/cases/compiler/ambiguousGenericAssertion1.ts +++ b/tests/cases/compiler/ambiguousGenericAssertion1.ts @@ -1,4 +1,3 @@ -// @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 18fecf5e3f22d..2a69c48b0034b 100644 --- a/tests/cases/compiler/ambiguousOverload.ts +++ b/tests/cases/compiler/ambiguousOverload.ts @@ -1,4 +1,3 @@ -// @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 076ba2aa46cca..cb4ae158cc325 100644 --- a/tests/cases/compiler/ambiguousOverloadResolution.ts +++ b/tests/cases/compiler/ambiguousOverloadResolution.ts @@ -1,4 +1,3 @@ -// @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 c122b7a11e085..91cb244525027 100644 --- a/tests/cases/compiler/amdLikeInputDeclarationEmit.ts +++ b/tests/cases/compiler/amdLikeInputDeclarationEmit.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @declarationDir: definitions // @emitDeclarationOnly: true diff --git a/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts b/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts index 741b120b009f8..4f909241f9509 100644 --- a/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts +++ b/tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts @@ -1,4 +1,3 @@ -// @strict: false function Point(x, y) { this.x = x; diff --git a/tests/cases/compiler/anyIdenticalToItself.ts b/tests/cases/compiler/anyIdenticalToItself.ts index a47004a758b00..a94389e6e3377 100644 --- a/tests/cases/compiler/anyIdenticalToItself.ts +++ b/tests/cases/compiler/anyIdenticalToItself.ts @@ -1,4 +1,3 @@ -// @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 570d8b9e05f48..ffecdaa1301de 100644 --- a/tests/cases/compiler/argumentsAsPropertyName.ts +++ b/tests/cases/compiler/argumentsAsPropertyName.ts @@ -1,4 +1,3 @@ -// @strict: false // target: es5 type MyType = { arguments: Array diff --git a/tests/cases/compiler/argumentsAsPropertyName2.ts b/tests/cases/compiler/argumentsAsPropertyName2.ts index fb98f9bd2129c..4c17a8a96a690 100644 --- a/tests/cases/compiler/argumentsAsPropertyName2.ts +++ b/tests/cases/compiler/argumentsAsPropertyName2.ts @@ -1,4 +1,3 @@ -// @strict: false // target: es5 function foo() { diff --git a/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts b/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts index e5332a2d44561..9a8a8fe4d8fbe 100644 --- a/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts +++ b/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts @@ -1,4 +1,3 @@ -// @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 e941fc098fbbd..4c3ca335d1df1 100644 --- a/tests/cases/compiler/argumentsObjectCreatesRestForJs.ts +++ b/tests/cases/compiler/argumentsObjectCreatesRestForJs.ts @@ -1,4 +1,3 @@ -// @strict: false // @checkJs: true // @allowJs: true // @Filename: main.js diff --git a/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts b/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts index 43ce80ca04987..fdf74c8b9a230 100644 --- a/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts +++ b/tests/cases/compiler/argumentsPropertyNameInJsMode1.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts b/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts index aa76126db8eff..11515ea74a1b6 100644 --- a/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts +++ b/tests/cases/compiler/argumentsPropertyNameInJsMode2.ts @@ -1,4 +1,3 @@ -// @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 559edba66c28a..92fadcd6001b8 100644 --- a/tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts +++ b/tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts @@ -1,4 +1,3 @@ -// @strict: false // @checkJs: true // @allowJs: true // @target: es6 diff --git a/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts b/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts index 948d6276dd9c7..c82b8c493cc3e 100644 --- a/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts +++ b/tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts @@ -1,4 +1,3 @@ -// @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 b86fa90a7b48c..88ad2a1fb47d9 100644 --- a/tests/cases/compiler/arrayAssignmentTest2.ts +++ b/tests/cases/compiler/arrayAssignmentTest2.ts @@ -1,4 +1,3 @@ -// @strict: false interface I1 { IM1():void[]; } diff --git a/tests/cases/compiler/arrayAssignmentTest4.ts b/tests/cases/compiler/arrayAssignmentTest4.ts index d35d8d7ff7298..81db959e8f653 100644 --- a/tests/cases/compiler/arrayAssignmentTest4.ts +++ b/tests/cases/compiler/arrayAssignmentTest4.ts @@ -1,4 +1,3 @@ -// @strict: false class C3 { diff --git a/tests/cases/compiler/arrayFromAsync.ts b/tests/cases/compiler/arrayFromAsync.ts index 2b6dfa154684c..55c34d7b66468 100644 --- a/tests/cases/compiler/arrayFromAsync.ts +++ b/tests/cases/compiler/arrayFromAsync.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: esnext // @target: esnext diff --git a/tests/cases/compiler/arrayIndexWithArrayFails.ts b/tests/cases/compiler/arrayIndexWithArrayFails.ts index aca5407d5ba6c..242e1ff333443 100644 --- a/tests/cases/compiler/arrayIndexWithArrayFails.ts +++ b/tests/cases/compiler/arrayIndexWithArrayFails.ts @@ -1,4 +1,3 @@ -// @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 a6d034f4e66de..d621cf460bcb1 100644 --- a/tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts +++ b/tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts @@ -1,4 +1,3 @@ -// @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 93c400db54c82..4c7fff88a9394 100644 --- a/tests/cases/compiler/arrowFunctionErrorSpan.ts +++ b/tests/cases/compiler/arrowFunctionErrorSpan.ts @@ -1,4 +1,3 @@ -// @strict: false function f(a: () => number) { } // oneliner diff --git a/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts b/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts index 227e9f4044a75..f5c1a86f296e2 100644 --- a/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts +++ b/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts @@ -1,3 +1,2 @@ -// @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 43439bda39e32..33fe8439ebed9 100644 --- a/tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts +++ b/tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts @@ -1,3 +1,2 @@ -// @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 069f9dd6b22a2..13b17343c672c 100644 --- a/tests/cases/compiler/arrowFunctionsMissingTokens.ts +++ b/tests/cases/compiler/arrowFunctionsMissingTokens.ts @@ -1,4 +1,3 @@ -// @strict: false namespace missingArrowsWithCurly { var a = () { }; diff --git a/tests/cases/compiler/asiAbstract.ts b/tests/cases/compiler/asiAbstract.ts index 062d68e96e5d4..f9f36b12001ef 100644 --- a/tests/cases/compiler/asiAbstract.ts +++ b/tests/cases/compiler/asiAbstract.ts @@ -1,4 +1,3 @@ -// @strict: false abstract class NonAbstractClass { abstract s(); diff --git a/tests/cases/compiler/asiPublicPrivateProtected.ts b/tests/cases/compiler/asiPublicPrivateProtected.ts index 5ea44460799f7..4ccd4c1c01bdd 100644 --- a/tests/cases/compiler/asiPublicPrivateProtected.ts +++ b/tests/cases/compiler/asiPublicPrivateProtected.ts @@ -1,4 +1,3 @@ -// @strict: false public class NonPublicClass { public s() { diff --git a/tests/cases/compiler/assertInWrapSomeTypeParameter.ts b/tests/cases/compiler/assertInWrapSomeTypeParameter.ts index c646bbc781ab2..d2ffbb6d775ad 100644 --- a/tests/cases/compiler/assertInWrapSomeTypeParameter.ts +++ b/tests/cases/compiler/assertInWrapSomeTypeParameter.ts @@ -1,4 +1,3 @@ -// @strict: false class C> { foo>(x: U) { return null; diff --git a/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts b/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts index 69728a300d8d5..59d76564bc118 100644 --- a/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts +++ b/tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts @@ -1,4 +1,3 @@ -// @strict: false interface IResultCallback extends Function { x: number; } diff --git a/tests/cases/compiler/assignmentCompatForEnums.ts b/tests/cases/compiler/assignmentCompatForEnums.ts index dff22949701cc..3426d934be403 100644 --- a/tests/cases/compiler/assignmentCompatForEnums.ts +++ b/tests/cases/compiler/assignmentCompatForEnums.ts @@ -1,4 +1,3 @@ -// @strict: false enum TokenType { One, Two }; var list = {}; diff --git a/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts b/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts index 642101d2b8d70..bebba88fbf52b 100644 --- a/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts +++ b/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts @@ -1,4 +1,3 @@ -// @strict: false interface IHandler { (e): boolean; } diff --git a/tests/cases/compiler/assignmentCompatability37.ts b/tests/cases/compiler/assignmentCompatability37.ts index e55686b596c73..418f096ca897c 100644 --- a/tests/cases/compiler/assignmentCompatability37.ts +++ b/tests/cases/compiler/assignmentCompatability37.ts @@ -1,4 +1,3 @@ -// @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 6dc81cd4a8c1b..6d8f0d79a8707 100644 --- a/tests/cases/compiler/assignmentCompatability38.ts +++ b/tests/cases/compiler/assignmentCompatability38.ts @@ -1,4 +1,3 @@ -// @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 823d28e3a6188..35d07b2542c9c 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,4 +1,3 @@ -// @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 8f53d3eda834f..155659fcead10 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,4 +1,3 @@ -// @strict: false // 3.8.4 Assignment Compatibility interface Callable { diff --git a/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts b/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts index 2699c916017fe..b68fad48e8ec1 100644 --- a/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts +++ b/tests/cases/compiler/assignmentNonObjectTypeConstraints.ts @@ -1,4 +1,3 @@ -// @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 256b16b78ff57..4e53cfabc6cd1 100644 --- a/tests/cases/compiler/assignmentToObjectAndFunction.ts +++ b/tests/cases/compiler/assignmentToObjectAndFunction.ts @@ -1,4 +1,3 @@ -// @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 86e5fe024dd81..876039a28fb7b 100644 --- a/tests/cases/compiler/assignmentToReferenceTypes.ts +++ b/tests/cases/compiler/assignmentToReferenceTypes.ts @@ -1,4 +1,3 @@ -// @strict: false // Should all be allowed namespace M { diff --git a/tests/cases/compiler/asyncFunctionTempVariableScoping.ts b/tests/cases/compiler/asyncFunctionTempVariableScoping.ts index 99c51276d0a35..c1d52d6da17f6 100644 --- a/tests/cases/compiler/asyncFunctionTempVariableScoping.ts +++ b/tests/cases/compiler/asyncFunctionTempVariableScoping.ts @@ -1,4 +1,3 @@ -// @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 25d22f59f1e9f..d814bfdcc71b2 100644 --- a/tests/cases/compiler/augmentExportEquals1.ts +++ b/tests/cases/compiler/augmentExportEquals1.ts @@ -1,4 +1,3 @@ -// @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 8f3cecefe1ace..6afc6e70910ba 100644 --- a/tests/cases/compiler/augmentExportEquals1_1.ts +++ b/tests/cases/compiler/augmentExportEquals1_1.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentExportEquals2.ts b/tests/cases/compiler/augmentExportEquals2.ts index bc6c3c0a45ecd..b037249645ac9 100644 --- a/tests/cases/compiler/augmentExportEquals2.ts +++ b/tests/cases/compiler/augmentExportEquals2.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals2_1.ts b/tests/cases/compiler/augmentExportEquals2_1.ts index 0de8a0647e24a..b6aeb21efd051 100644 --- a/tests/cases/compiler/augmentExportEquals2_1.ts +++ b/tests/cases/compiler/augmentExportEquals2_1.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentExportEquals3.ts b/tests/cases/compiler/augmentExportEquals3.ts index 08bff0dc27ce2..e8585aba26d56 100644 --- a/tests/cases/compiler/augmentExportEquals3.ts +++ b/tests/cases/compiler/augmentExportEquals3.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals3_1.ts b/tests/cases/compiler/augmentExportEquals3_1.ts index a4f5fc3d6f3f0..ad329643fa57c 100644 --- a/tests/cases/compiler/augmentExportEquals3_1.ts +++ b/tests/cases/compiler/augmentExportEquals3_1.ts @@ -1,4 +1,3 @@ -// @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 4bf93068a6c1f..5e0f28ce963ed 100644 --- a/tests/cases/compiler/augmentExportEquals4.ts +++ b/tests/cases/compiler/augmentExportEquals4.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals4_1.ts b/tests/cases/compiler/augmentExportEquals4_1.ts index 46cd24844656f..467d0af38ef39 100644 --- a/tests/cases/compiler/augmentExportEquals4_1.ts +++ b/tests/cases/compiler/augmentExportEquals4_1.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentExportEquals6.ts b/tests/cases/compiler/augmentExportEquals6.ts index e0bdf98cf3745..4b10586779a64 100644 --- a/tests/cases/compiler/augmentExportEquals6.ts +++ b/tests/cases/compiler/augmentExportEquals6.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/augmentExportEquals6_1.ts b/tests/cases/compiler/augmentExportEquals6_1.ts index 3d172335e4fc4..aaee43bae746f 100644 --- a/tests/cases/compiler/augmentExportEquals6_1.ts +++ b/tests/cases/compiler/augmentExportEquals6_1.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.d.ts diff --git a/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts b/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts index a5061440fee43..f3881804c46d0 100644 --- a/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts +++ b/tests/cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts @@ -1,4 +1,3 @@ -// @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 0673bd1e3d011..4eeb56e6e757e 100644 --- a/tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts +++ b/tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts @@ -1,4 +1,3 @@ -// @strict: false interface Object { data: number; } diff --git a/tests/cases/compiler/avoid.ts b/tests/cases/compiler/avoid.ts index abd5e02c3f08d..5ffa4a214ed22 100644 --- a/tests/cases/compiler/avoid.ts +++ b/tests/cases/compiler/avoid.ts @@ -1,4 +1,3 @@ -// @strict: false function f() { var x=1; } diff --git a/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts b/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts index 2e3d1fe68a2ba..4bc72303fb0f5 100644 --- a/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts +++ b/tests/cases/compiler/avoidListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts @@ -1,4 +1,3 @@ -// @strict: false interface Dog { barkable: true } diff --git a/tests/cases/compiler/awaitInNonAsyncFunction.ts b/tests/cases/compiler/awaitInNonAsyncFunction.ts index 1e619d9fe54fb..5ebf37dc7ed04 100644 --- a/tests/cases/compiler/awaitInNonAsyncFunction.ts +++ b/tests/cases/compiler/awaitInNonAsyncFunction.ts @@ -1,4 +1,3 @@ -// @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 f048404a1dc3a..b90f32363210e 100644 --- a/tests/cases/compiler/awaitedTypeCrash.ts +++ b/tests/cases/compiler/awaitedTypeCrash.ts @@ -1,4 +1,3 @@ -// @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 4b8b66eda6a42..a477b7719e4da 100644 --- a/tests/cases/compiler/awaitedTypeJQuery.ts +++ b/tests/cases/compiler/awaitedTypeJQuery.ts @@ -1,4 +1,3 @@ -// @strict: false /// interface Thenable extends PromiseLike { } diff --git a/tests/cases/compiler/badArraySyntax.ts b/tests/cases/compiler/badArraySyntax.ts index d39bc5f34998f..6a19a1504ac38 100644 --- a/tests/cases/compiler/badArraySyntax.ts +++ b/tests/cases/compiler/badArraySyntax.ts @@ -1,4 +1,3 @@ -// @strict: false class Z { public x = ""; } diff --git a/tests/cases/compiler/baseConstraintOfDecorator.ts b/tests/cases/compiler/baseConstraintOfDecorator.ts index d85d0d51326aa..9419974a04ff4 100644 --- a/tests/cases/compiler/baseConstraintOfDecorator.ts +++ b/tests/cases/compiler/baseConstraintOfDecorator.ts @@ -1,4 +1,3 @@ -// @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 0565d7660c060..9bfc2e56caf5a 100644 --- a/tests/cases/compiler/bases.ts +++ b/tests/cases/compiler/bases.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { x; } diff --git a/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts b/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts index 135e73829e78a..d44fe15d9e45f 100644 --- a/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts +++ b/tests/cases/compiler/bestCommonTypeWithContextualTyping.ts @@ -1,4 +1,3 @@ -// @strict: false interface Contextual { dummy; p?: number; diff --git a/tests/cases/compiler/bigintIndex.ts b/tests/cases/compiler/bigintIndex.ts index e4c32e53281e6..cb70721f464a3 100644 --- a/tests/cases/compiler/bigintIndex.ts +++ b/tests/cases/compiler/bigintIndex.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es2020 // @filename: a.ts diff --git a/tests/cases/compiler/bigintWithLib.ts b/tests/cases/compiler/bigintWithLib.ts index 1cbbcc63e67e9..a4701496550e5 100644 --- a/tests/cases/compiler/bigintWithLib.ts +++ b/tests/cases/compiler/bigintWithLib.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es2020 // @declaration: true diff --git a/tests/cases/compiler/binopAssignmentShouldHaveType.ts b/tests/cases/compiler/binopAssignmentShouldHaveType.ts index ca9c44b17c9ea..9c4fc068f84e0 100644 --- a/tests/cases/compiler/binopAssignmentShouldHaveType.ts +++ b/tests/cases/compiler/binopAssignmentShouldHaveType.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 declare var console; "use strict"; diff --git a/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts b/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts index ad6bf0c4625a8..c0b803df6e890 100644 --- a/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts +++ b/tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts @@ -1,4 +1,3 @@ -// @strict: false // 1: for (let {[a]: a} of [{ }]) continue; diff --git a/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts b/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts index c6e303314b24d..4a9fe4a2a859a 100644 --- a/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts +++ b/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @outFile: out.js // @module: amd diff --git a/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts b/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts index 97bc54a28b1a0..7cf893e2a7436 100644 --- a/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts +++ b/tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @lib: esnext, dom function foo0() { diff --git a/tests/cases/compiler/callOverloads1.ts b/tests/cases/compiler/callOverloads1.ts index 516fd4cac4ae2..e2ce278eec004 100644 --- a/tests/cases/compiler/callOverloads1.ts +++ b/tests/cases/compiler/callOverloads1.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { // error bar1() { /*WScript.Echo("bar1");*/ } diff --git a/tests/cases/compiler/callOverloads2.ts b/tests/cases/compiler/callOverloads2.ts index 652dcddffc06c..e18815fd46b76 100644 --- a/tests/cases/compiler/callOverloads2.ts +++ b/tests/cases/compiler/callOverloads2.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { // error diff --git a/tests/cases/compiler/callOverloads5.ts b/tests/cases/compiler/callOverloads5.ts index 2e9319f379bcc..212b68b168a43 100644 --- a/tests/cases/compiler/callOverloads5.ts +++ b/tests/cases/compiler/callOverloads5.ts @@ -1,4 +1,3 @@ -// @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 e2899813b22d3..d0bab4d84a7b7 100644 --- a/tests/cases/compiler/callbackArgsDifferByOptionality.ts +++ b/tests/cases/compiler/callbackArgsDifferByOptionality.ts @@ -1,4 +1,3 @@ -// @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 d48ac08ac6f29..4919429eec706 100644 --- a/tests/cases/compiler/capturedLetConstInLoop1.ts +++ b/tests/cases/compiler/capturedLetConstInLoop1.ts @@ -1,4 +1,3 @@ -// @strict: false declare function use(x: any): any; //==== let diff --git a/tests/cases/compiler/capturedLetConstInLoop10.ts b/tests/cases/compiler/capturedLetConstInLoop10.ts index b389edac6b87f..47eee6d6a7d47 100644 --- a/tests/cases/compiler/capturedLetConstInLoop10.ts +++ b/tests/cases/compiler/capturedLetConstInLoop10.ts @@ -1,4 +1,3 @@ -// @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 4f32b828e82cc..21c58e3aa3d49 100644 --- a/tests/cases/compiler/capturedLetConstInLoop10_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop10_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 class A { foo() { diff --git a/tests/cases/compiler/capturedLetConstInLoop11.ts b/tests/cases/compiler/capturedLetConstInLoop11.ts index cc0568e677931..bda0cec9d6912 100644 --- a/tests/cases/compiler/capturedLetConstInLoop11.ts +++ b/tests/cases/compiler/capturedLetConstInLoop11.ts @@ -1,4 +1,3 @@ -// @strict: false for (;;) { let x = 1; () => x; diff --git a/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts index 2ffc9e0728ffa..24005ed4833a3 100644 --- a/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 for (;;) { let x = 1; diff --git a/tests/cases/compiler/capturedLetConstInLoop12.ts b/tests/cases/compiler/capturedLetConstInLoop12.ts index 73d90f74525f1..5540f75635e00 100644 --- a/tests/cases/compiler/capturedLetConstInLoop12.ts +++ b/tests/cases/compiler/capturedLetConstInLoop12.ts @@ -1,4 +1,3 @@ -// @strict: false (function() { "use strict"; diff --git a/tests/cases/compiler/capturedLetConstInLoop13.ts b/tests/cases/compiler/capturedLetConstInLoop13.ts index ff428b856d66a..0aa00b0e1a0f1 100644 --- a/tests/cases/compiler/capturedLetConstInLoop13.ts +++ b/tests/cases/compiler/capturedLetConstInLoop13.ts @@ -1,4 +1,3 @@ -// @strict: false class Main { constructor() { diff --git a/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts index a5fa1ca9d3073..314fc4a9919fd 100644 --- a/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop1_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 //==== let for (let x in {}) { diff --git a/tests/cases/compiler/capturedLetConstInLoop2.ts b/tests/cases/compiler/capturedLetConstInLoop2.ts index c3b57efcfd32a..7dbd5d01f9371 100644 --- a/tests/cases/compiler/capturedLetConstInLoop2.ts +++ b/tests/cases/compiler/capturedLetConstInLoop2.ts @@ -1,4 +1,3 @@ -// @strict: false // ========let diff --git a/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts index 27548cd8e05cd..00aed7121885d 100644 --- a/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop2_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // ========let diff --git a/tests/cases/compiler/capturedLetConstInLoop3.ts b/tests/cases/compiler/capturedLetConstInLoop3.ts index 9496d8d7bc257..dc5eef6dd3491 100644 --- a/tests/cases/compiler/capturedLetConstInLoop3.ts +++ b/tests/cases/compiler/capturedLetConstInLoop3.ts @@ -1,4 +1,3 @@ -// @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 54af999e71b29..657c519047370 100644 --- a/tests/cases/compiler/capturedLetConstInLoop3_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop3_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 ///=========let diff --git a/tests/cases/compiler/capturedLetConstInLoop4.ts b/tests/cases/compiler/capturedLetConstInLoop4.ts index 58d25ab141844..58f05876f89d1 100644 --- a/tests/cases/compiler/capturedLetConstInLoop4.ts +++ b/tests/cases/compiler/capturedLetConstInLoop4.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system //======let diff --git a/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts b/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts index 924b2708e67c8..e65c01e90e2d3 100644 --- a/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop4_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 //======let diff --git a/tests/cases/compiler/capturedLetConstInLoop5.ts b/tests/cases/compiler/capturedLetConstInLoop5.ts index 86b9617812f0f..5eedd5aac85b7 100644 --- a/tests/cases/compiler/capturedLetConstInLoop5.ts +++ b/tests/cases/compiler/capturedLetConstInLoop5.ts @@ -1,4 +1,3 @@ -// @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 b217af85f49f9..224ffa823bf32 100644 --- a/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 declare function use(a: any); diff --git a/tests/cases/compiler/capturedLetConstInLoop6.ts b/tests/cases/compiler/capturedLetConstInLoop6.ts index d7d1ce21acc83..a854be4619527 100644 --- a/tests/cases/compiler/capturedLetConstInLoop6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop6.ts @@ -1,4 +1,3 @@ -// @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 a6261e1aa8864..ad10f1fcb74f7 100644 --- a/tests/cases/compiler/capturedLetConstInLoop6_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop6_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // ====let for (let x of []) { diff --git a/tests/cases/compiler/capturedLetConstInLoop7.ts b/tests/cases/compiler/capturedLetConstInLoop7.ts index 9680b13d21980..12805411f969f 100644 --- a/tests/cases/compiler/capturedLetConstInLoop7.ts +++ b/tests/cases/compiler/capturedLetConstInLoop7.ts @@ -1,4 +1,3 @@ -// @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 d1191bff608b8..2e2784f9a16c0 100644 --- a/tests/cases/compiler/capturedLetConstInLoop7_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop7_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 //===let l0: diff --git a/tests/cases/compiler/capturedLetConstInLoop9.ts b/tests/cases/compiler/capturedLetConstInLoop9.ts index 137664203f268..4b67349690d6f 100644 --- a/tests/cases/compiler/capturedLetConstInLoop9.ts +++ b/tests/cases/compiler/capturedLetConstInLoop9.ts @@ -1,4 +1,3 @@ -// @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 03e38e4b83716..25c696ff7e641 100644 --- a/tests/cases/compiler/capturedLetConstInLoop9_ES6.ts +++ b/tests/cases/compiler/capturedLetConstInLoop9_ES6.ts @@ -1,4 +1,3 @@ -// @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 00a2a20606423..be989e92f8bcf 100644 --- a/tests/cases/compiler/capturedParametersInInitializers1.ts +++ b/tests/cases/compiler/capturedParametersInInitializers1.ts @@ -1,4 +1,3 @@ -// @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 59ba79dbe92e9..65cc5620f8374 100644 --- a/tests/cases/compiler/capturedVarInLoop.ts +++ b/tests/cases/compiler/capturedVarInLoop.ts @@ -1,4 +1,3 @@ -// @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 ba6b13a563da6..4d70b9a777723 100644 --- a/tests/cases/compiler/castExpressionParentheses.ts +++ b/tests/cases/compiler/castExpressionParentheses.ts @@ -1,4 +1,3 @@ -// @strict: false declare var a; // parentheses should be omitted diff --git a/tests/cases/compiler/chainedAssignment1.ts b/tests/cases/compiler/chainedAssignment1.ts index e1f65458502f6..963a1fbea7e5c 100644 --- a/tests/cases/compiler/chainedAssignment1.ts +++ b/tests/cases/compiler/chainedAssignment1.ts @@ -1,4 +1,3 @@ -// @strict: false class X { constructor(public z) { } a: number; diff --git a/tests/cases/compiler/chainedAssignmentChecking.ts b/tests/cases/compiler/chainedAssignmentChecking.ts index ccff32d35664f..efc16cc7c3c37 100644 --- a/tests/cases/compiler/chainedAssignmentChecking.ts +++ b/tests/cases/compiler/chainedAssignmentChecking.ts @@ -1,4 +1,3 @@ -// @strict: false class X { constructor(public z) { } a: number; diff --git a/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts b/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts index b065e6a3df6f2..66ed33cf11368 100644 --- a/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts +++ b/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts @@ -1,4 +1,3 @@ -// @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 21ccf862b06f2..a22bf10a38ccc 100644 --- a/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts +++ b/tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts @@ -1,4 +1,3 @@ -// @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 f21b95f275444..8514ebce96606 100644 --- a/tests/cases/compiler/checkInfiniteExpansionTermination.ts +++ b/tests/cases/compiler/checkInfiniteExpansionTermination.ts @@ -1,4 +1,3 @@ -// @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 d4d400c0ad9ab..f30499ba5403c 100644 --- a/tests/cases/compiler/checkInfiniteExpansionTermination2.ts +++ b/tests/cases/compiler/checkInfiniteExpansionTermination2.ts @@ -1,4 +1,3 @@ -// @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 a3d7795354581..824a68d4ff1d7 100644 --- a/tests/cases/compiler/checkJsxNotSetError.ts +++ b/tests/cases/compiler/checkJsxNotSetError.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true diff --git a/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts b/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts index af09f841fdf3b..525d7b1feb4fe 100644 --- a/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts +++ b/tests/cases/compiler/checkingObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/classExpressionWithStaticProperties2.ts b/tests/cases/compiler/classExpressionWithStaticProperties2.ts index 52cd5927b713a..353926e7abdbd 100644 --- a/tests/cases/compiler/classExpressionWithStaticProperties2.ts +++ b/tests/cases/compiler/classExpressionWithStaticProperties2.ts @@ -1,4 +1,3 @@ -// @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 49e1bc1d1336f..afb87b10de96a 100644 --- a/tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts +++ b/tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts @@ -1,4 +1,3 @@ -// @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 0de0e9be8f0eb..89b1f2094cf66 100644 --- a/tests/cases/compiler/classImplementingInterfaceIndexer.ts +++ b/tests/cases/compiler/classImplementingInterfaceIndexer.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { [index: string]: { prop } } diff --git a/tests/cases/compiler/classImplementsImportedInterface.ts b/tests/cases/compiler/classImplementsImportedInterface.ts index 7c07f9fd63bc2..88750e1dd3ccd 100644 --- a/tests/cases/compiler/classImplementsImportedInterface.ts +++ b/tests/cases/compiler/classImplementsImportedInterface.ts @@ -1,4 +1,3 @@ -// @strict: false namespace M1 { export interface I { foo(); diff --git a/tests/cases/compiler/classMemberInitializerScoping.ts b/tests/cases/compiler/classMemberInitializerScoping.ts index f5aef9a63eaff..bb8ca637da660 100644 --- a/tests/cases/compiler/classMemberInitializerScoping.ts +++ b/tests/cases/compiler/classMemberInitializerScoping.ts @@ -1,4 +1,3 @@ -// @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 8ebf2cb7a63ca..583d9f03aae21 100644 --- a/tests/cases/compiler/classMemberInitializerScoping2.ts +++ b/tests/cases/compiler/classMemberInitializerScoping2.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es2017,esnext // @useDefineForClassFields: true,false diff --git a/tests/cases/compiler/classMemberWithMissingIdentifier.ts b/tests/cases/compiler/classMemberWithMissingIdentifier.ts index ceb4f985d1d71..01ba223f4c49c 100644 --- a/tests/cases/compiler/classMemberWithMissingIdentifier.ts +++ b/tests/cases/compiler/classMemberWithMissingIdentifier.ts @@ -1,4 +1,3 @@ -// @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 0d08c0c06038f..e16186597970a 100644 --- a/tests/cases/compiler/classMemberWithMissingIdentifier2.ts +++ b/tests/cases/compiler/classMemberWithMissingIdentifier2.ts @@ -1,4 +1,3 @@ -// @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 2775cc2a679bd..f71aa994eda62 100644 --- a/tests/cases/compiler/classUpdateTests.ts +++ b/tests/cases/compiler/classUpdateTests.ts @@ -1,4 +1,3 @@ -// @strict: false // // test codegen for instance properties // diff --git a/tests/cases/compiler/classWithMultipleBaseClasses.ts b/tests/cases/compiler/classWithMultipleBaseClasses.ts index 8aa8c1cff1c1f..dd9a3a5fe7ee1 100644 --- a/tests/cases/compiler/classWithMultipleBaseClasses.ts +++ b/tests/cases/compiler/classWithMultipleBaseClasses.ts @@ -1,4 +1,3 @@ -// @strict: false class A { foo() { } } diff --git a/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts b/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts index 295191867a383..2fc58bae0bf8e 100644 --- a/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts +++ b/tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts @@ -1,4 +1,3 @@ -// @strict: false class C { foo(): string; foo(x): number; diff --git a/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts b/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts index 753145b46953b..2f67cd1a66e0e 100644 --- a/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts +++ b/tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts @@ -1,4 +1,3 @@ -// @strict: false class C { foo(): string; bar(x): any { } diff --git a/tests/cases/compiler/classdecl.ts b/tests/cases/compiler/classdecl.ts index e8ce495898f75..3005d77d496fa 100644 --- a/tests/cases/compiler/classdecl.ts +++ b/tests/cases/compiler/classdecl.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @target: es5 class a { diff --git a/tests/cases/compiler/cloduleTest2.ts b/tests/cases/compiler/cloduleTest2.ts index a1add252cfb64..0a4403ec30a6c 100644 --- a/tests/cases/compiler/cloduleTest2.ts +++ b/tests/cases/compiler/cloduleTest2.ts @@ -1,4 +1,3 @@ -// @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 5545ad85f245d..acb019f0d305f 100644 --- a/tests/cases/compiler/cloduleWithDuplicateMember2.ts +++ b/tests/cases/compiler/cloduleWithDuplicateMember2.ts @@ -1,4 +1,3 @@ -// @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 49fdb036ac573..e4d9215862d57 100644 --- a/tests/cases/compiler/collisionArgumentsArrowFunctions.ts +++ b/tests/cases/compiler/collisionArgumentsArrowFunctions.ts @@ -1,4 +1,3 @@ -// @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 3f966191f7a83..c06a108c77b28 100644 --- a/tests/cases/compiler/collisionArgumentsClassConstructor.ts +++ b/tests/cases/compiler/collisionArgumentsClassConstructor.ts @@ -1,4 +1,3 @@ -// @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 dc15cdba02c41..dba2c31293cb2 100644 --- a/tests/cases/compiler/collisionArgumentsClassMethod.ts +++ b/tests/cases/compiler/collisionArgumentsClassMethod.ts @@ -1,4 +1,3 @@ -// @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 d2d6938080ea0..b90dee9ec1142 100644 --- a/tests/cases/compiler/collisionArgumentsFunction.ts +++ b/tests/cases/compiler/collisionArgumentsFunction.ts @@ -1,4 +1,3 @@ -// @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 b6bda566dd798..a5a39b09c5495 100644 --- a/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts +++ b/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts @@ -1,4 +1,3 @@ -// @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 9c09f883de57e..c9354ba0baec9 100644 --- a/tests/cases/compiler/collisionArgumentsInType.ts +++ b/tests/cases/compiler/collisionArgumentsInType.ts @@ -1,4 +1,3 @@ -// @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 a0a5d28de5ccd..bfb280116e4b1 100644 --- a/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts +++ b/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts @@ -1,4 +1,3 @@ -// @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 97a3346c1c7e9..a16306a5a1b28 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts @@ -1,4 +1,3 @@ -// @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 a31ccfe6c5b03..1eb8d3c79a82b 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts @@ -1,4 +1,3 @@ -// @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 1ee5e4517a296..96f8d86be2449 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts @@ -1,4 +1,3 @@ -// @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 51a0328b65a58..c4919a158e8d8 100644 --- a/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts +++ b/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts @@ -1,4 +1,3 @@ -// @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 d32afdd186671..0fb46590d10b8 100644 --- a/tests/cases/compiler/collisionRestParameterArrowFunctions.ts +++ b/tests/cases/compiler/collisionRestParameterArrowFunctions.ts @@ -1,4 +1,3 @@ -// @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 02def8435e59a..2269f57e99218 100644 --- a/tests/cases/compiler/collisionRestParameterClassConstructor.ts +++ b/tests/cases/compiler/collisionRestParameterClassConstructor.ts @@ -1,4 +1,3 @@ -// @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 67117f042d024..507c8d3779259 100644 --- a/tests/cases/compiler/collisionRestParameterClassMethod.ts +++ b/tests/cases/compiler/collisionRestParameterClassMethod.ts @@ -1,4 +1,3 @@ -// @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 a3d85ac052723..c31e6ab8f9b70 100644 --- a/tests/cases/compiler/collisionRestParameterFunction.ts +++ b/tests/cases/compiler/collisionRestParameterFunction.ts @@ -1,4 +1,3 @@ -// @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 817c0a1c263e8..7e54c24ec660e 100644 --- a/tests/cases/compiler/collisionRestParameterFunctionExpressions.ts +++ b/tests/cases/compiler/collisionRestParameterFunctionExpressions.ts @@ -1,4 +1,3 @@ -// @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 f1671d4743209..62e3809a546e0 100644 --- a/tests/cases/compiler/collisionRestParameterInType.ts +++ b/tests/cases/compiler/collisionRestParameterInType.ts @@ -1,4 +1,3 @@ -// @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 192a963576b59..80041e667b637 100644 --- a/tests/cases/compiler/collisionRestParameterInterfaceMembers.ts +++ b/tests/cases/compiler/collisionRestParameterInterfaceMembers.ts @@ -1,4 +1,3 @@ -// @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 2354ea582fe6c..4e08fe96982f6 100644 --- a/tests/cases/compiler/collisionSuperAndNameResolution.ts +++ b/tests/cases/compiler/collisionSuperAndNameResolution.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 var console: { log(message: any); diff --git a/tests/cases/compiler/collisionSuperAndParameter.ts b/tests/cases/compiler/collisionSuperAndParameter.ts index ccbbde0482781..88c0235a5b599 100644 --- a/tests/cases/compiler/collisionSuperAndParameter.ts +++ b/tests/cases/compiler/collisionSuperAndParameter.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 class Foo { a() { diff --git a/tests/cases/compiler/collisionSuperAndParameter1.ts b/tests/cases/compiler/collisionSuperAndParameter1.ts index 0ac8272fb5222..9c42472fff8cc 100644 --- a/tests/cases/compiler/collisionSuperAndParameter1.ts +++ b/tests/cases/compiler/collisionSuperAndParameter1.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { } diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts index 1f5384d53fa8a..d3546733e101b 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 class class1 { get a(): number { diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts index 7a20477239ba4..380fb783a4f14 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts @@ -1,4 +1,3 @@ -// @strict: false class class1 { constructor() { var x2 = { diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts index ad932a00c26a9..feb3fe25379b3 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 var console: { log(val: any); diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts index 22d660bb91eac..99b13763d3136 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts @@ -1,4 +1,3 @@ -// @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 53f42be707173..b8c13a215ec0a 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts @@ -1,4 +1,3 @@ -// @strict: false class a { method1() { return { diff --git a/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts b/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts index 89b46198decaa..9146c9b2d930b 100644 --- a/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts +++ b/tests/cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class class1 { public prop1 = { doStuff: (callback) => () => { diff --git a/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts b/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts index 7fb17c7df3c7c..d479498e2256a 100644 --- a/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts +++ b/tests/cases/compiler/collisionThisExpressionAndNameResolution.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 var console : { log(message: any); diff --git a/tests/cases/compiler/collisionThisExpressionAndParameter.ts b/tests/cases/compiler/collisionThisExpressionAndParameter.ts index 3d6be204aec16..fc7410bcf7d99 100644 --- a/tests/cases/compiler/collisionThisExpressionAndParameter.ts +++ b/tests/cases/compiler/collisionThisExpressionAndParameter.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 class Foo { x() { diff --git a/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts b/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts index 9dcbf559150c2..0bd9be4e72098 100644 --- a/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts +++ b/tests/cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts @@ -1,4 +1,3 @@ -// @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 f025ea9e917ad..d878760fa2df5 100644 --- a/tests/cases/compiler/commentOnAmbientModule.ts +++ b/tests/cases/compiler/commentOnAmbientModule.ts @@ -1,4 +1,3 @@ -// @strict: false //@filename: a.ts /*!========= Keep this pinned comment diff --git a/tests/cases/compiler/commentOnAmbientfunction.ts b/tests/cases/compiler/commentOnAmbientfunction.ts index e38f80b42a73d..51f3b6194b59a 100644 --- a/tests/cases/compiler/commentOnAmbientfunction.ts +++ b/tests/cases/compiler/commentOnAmbientfunction.ts @@ -1,4 +1,3 @@ -// @strict: false //@filename: a.ts /*!========= Keep this pinned comment diff --git a/tests/cases/compiler/commentOnSignature1.ts b/tests/cases/compiler/commentOnSignature1.ts index f13d9622fd6b5..e8d2d831e8b1f 100644 --- a/tests/cases/compiler/commentOnSignature1.ts +++ b/tests/cases/compiler/commentOnSignature1.ts @@ -1,4 +1,3 @@ -// @strict: false // @filename: a.ts /*!================= Keep this pinned diff --git a/tests/cases/compiler/commentsAfterFunctionExpression1.ts b/tests/cases/compiler/commentsAfterFunctionExpression1.ts index 9a93fbf1596cb..04fb0aec3b1a8 100644 --- a/tests/cases/compiler/commentsAfterFunctionExpression1.ts +++ b/tests/cases/compiler/commentsAfterFunctionExpression1.ts @@ -1,4 +1,3 @@ -// @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 ec92a06824798..d517ddbab1d5e 100644 --- a/tests/cases/compiler/commentsAfterSpread.ts +++ b/tests/cases/compiler/commentsAfterSpread.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ESNEXT const identity = (a) => a; diff --git a/tests/cases/compiler/commentsBeforeFunctionExpression1.ts b/tests/cases/compiler/commentsBeforeFunctionExpression1.ts index 27fb182db04e4..d3b21c1847591 100644 --- a/tests/cases/compiler/commentsBeforeFunctionExpression1.ts +++ b/tests/cases/compiler/commentsBeforeFunctionExpression1.ts @@ -1,4 +1,3 @@ -// @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 cffdad17fa9ec..a1fbf50c61fdb 100644 --- a/tests/cases/compiler/commentsCommentParsing.ts +++ b/tests/cases/compiler/commentsCommentParsing.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsInterface.ts b/tests/cases/compiler/commentsInterface.ts index c2438e198a918..2e35a95f207a0 100644 --- a/tests/cases/compiler/commentsInterface.ts +++ b/tests/cases/compiler/commentsInterface.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsOnObjectLiteral2.ts b/tests/cases/compiler/commentsOnObjectLiteral2.ts index c38785a71059e..952df7ed96973 100644 --- a/tests/cases/compiler/commentsOnObjectLiteral2.ts +++ b/tests/cases/compiler/commentsOnObjectLiteral2.ts @@ -1,4 +1,3 @@ -// @strict: false // @removeComments: false var Person = makeClass( { diff --git a/tests/cases/compiler/commentsOverloads.ts b/tests/cases/compiler/commentsOverloads.ts index 502c54ce10345..efb5d73df8f2c 100644 --- a/tests/cases/compiler/commentsOverloads.ts +++ b/tests/cases/compiler/commentsOverloads.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commentsdoNotEmitComments.ts b/tests/cases/compiler/commentsdoNotEmitComments.ts index cc9dda1fa50c2..af831c74d4891 100644 --- a/tests/cases/compiler/commentsdoNotEmitComments.ts +++ b/tests/cases/compiler/commentsdoNotEmitComments.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true // @removeComments: true diff --git a/tests/cases/compiler/commentsemitComments.ts b/tests/cases/compiler/commentsemitComments.ts index 06c7d4db7c251..449bacec8af7a 100644 --- a/tests/cases/compiler/commentsemitComments.ts +++ b/tests/cases/compiler/commentsemitComments.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/commonMissingSemicolons.ts b/tests/cases/compiler/commonMissingSemicolons.ts index 0e27ea677007e..197177c9f4bb5 100644 --- a/tests/cases/compiler/commonMissingSemicolons.ts +++ b/tests/cases/compiler/commonMissingSemicolons.ts @@ -1,4 +1,3 @@ -// @strict: false // @noEmit: true // @noTypesAndSymbols: true diff --git a/tests/cases/compiler/complexNarrowingWithAny.ts b/tests/cases/compiler/complexNarrowingWithAny.ts index 4951ee7a6e45d..746e2ef031f19 100644 --- a/tests/cases/compiler/complexNarrowingWithAny.ts +++ b/tests/cases/compiler/complexNarrowingWithAny.ts @@ -1,4 +1,3 @@ -// @strict: false // Repro from #10869 /** diff --git a/tests/cases/compiler/complicatedPrivacy.ts b/tests/cases/compiler/complicatedPrivacy.ts index dc748c4832632..ec86b63660907 100644 --- a/tests/cases/compiler/complicatedPrivacy.ts +++ b/tests/cases/compiler/complicatedPrivacy.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 namespace m1 { export namespace m2 { diff --git a/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts b/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts index f4817ae707c1d..42eb602989dfe 100644 --- a/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts +++ b/tests/cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts @@ -1,3 +1,2 @@ -// @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 5307093240272..ece002d7778fc 100644 --- a/tests/cases/compiler/conditionalExpressions2.ts +++ b/tests/cases/compiler/conditionalExpressions2.ts @@ -1,4 +1,3 @@ -// @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 10804d8ab020c..665d6753a6df6 100644 --- a/tests/cases/compiler/constDeclarations-access.ts +++ b/tests/cases/compiler/constDeclarations-access.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // @Filename: file1.ts diff --git a/tests/cases/compiler/constDeclarations-access2.ts b/tests/cases/compiler/constDeclarations-access2.ts index 153a003df7bd7..e3f83940d1de0 100644 --- a/tests/cases/compiler/constDeclarations-access2.ts +++ b/tests/cases/compiler/constDeclarations-access2.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 const x = 0 diff --git a/tests/cases/compiler/constDeclarations-access3.ts b/tests/cases/compiler/constDeclarations-access3.ts index 1e94dd75c9a70..344af8229320f 100644 --- a/tests/cases/compiler/constDeclarations-access3.ts +++ b/tests/cases/compiler/constDeclarations-access3.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations-access4.ts b/tests/cases/compiler/constDeclarations-access4.ts index 17884add67679..3ea4f54e8dfd3 100644 --- a/tests/cases/compiler/constDeclarations-access4.ts +++ b/tests/cases/compiler/constDeclarations-access4.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations-access5.ts b/tests/cases/compiler/constDeclarations-access5.ts index a20fb76cd367a..769e72c266a76 100644 --- a/tests/cases/compiler/constDeclarations-access5.ts +++ b/tests/cases/compiler/constDeclarations-access5.ts @@ -1,4 +1,3 @@ -// @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 d37e90b2d576e..ecc6521c208b7 100644 --- a/tests/cases/compiler/constDeclarations-ambient-errors.ts +++ b/tests/cases/compiler/constDeclarations-ambient-errors.ts @@ -1,4 +1,3 @@ -// @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 83fd24529aa84..e9fdab5faabb6 100644 --- a/tests/cases/compiler/constDeclarations-ambient.ts +++ b/tests/cases/compiler/constDeclarations-ambient.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // No error diff --git a/tests/cases/compiler/constDeclarations-errors.ts b/tests/cases/compiler/constDeclarations-errors.ts index 71a8c33706e66..1c3ef8848b0b9 100644 --- a/tests/cases/compiler/constDeclarations-errors.ts +++ b/tests/cases/compiler/constDeclarations-errors.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // error, missing intialicer diff --git a/tests/cases/compiler/constDeclarations-es5.ts b/tests/cases/compiler/constDeclarations-es5.ts index 12da20e233fb9..0da824a7396d8 100644 --- a/tests/cases/compiler/constDeclarations-es5.ts +++ b/tests/cases/compiler/constDeclarations-es5.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 const z7 = false; diff --git a/tests/cases/compiler/constDeclarations-invalidContexts.ts b/tests/cases/compiler/constDeclarations-invalidContexts.ts index bf7d290befb4d..6d21ee31ec243 100644 --- a/tests/cases/compiler/constDeclarations-invalidContexts.ts +++ b/tests/cases/compiler/constDeclarations-invalidContexts.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: true // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations-scopes.ts b/tests/cases/compiler/constDeclarations-scopes.ts index b2cd4416e43d7..3fe6bf707fd2c 100644 --- a/tests/cases/compiler/constDeclarations-scopes.ts +++ b/tests/cases/compiler/constDeclarations-scopes.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // global diff --git a/tests/cases/compiler/constDeclarations-scopes2.ts b/tests/cases/compiler/constDeclarations-scopes2.ts index b8e5378129c40..fe0ab16409a98 100644 --- a/tests/cases/compiler/constDeclarations-scopes2.ts +++ b/tests/cases/compiler/constDeclarations-scopes2.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // global diff --git a/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts b/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts index f5e2c25077772..ec793fda4846f 100644 --- a/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts +++ b/tests/cases/compiler/constDeclarations-useBeforeDefinition.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 { diff --git a/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts b/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts index a4f53512e9307..2f9def647d060 100644 --- a/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts +++ b/tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // @outFile: out.js diff --git a/tests/cases/compiler/constDeclarations-validContexts.ts b/tests/cases/compiler/constDeclarations-validContexts.ts index 7806fd34534d4..323eba564505a 100644 --- a/tests/cases/compiler/constDeclarations-validContexts.ts +++ b/tests/cases/compiler/constDeclarations-validContexts.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: true // @target: ES6 diff --git a/tests/cases/compiler/constDeclarations.ts b/tests/cases/compiler/constDeclarations.ts index 0aba63c3cf758..2b8563b340a21 100644 --- a/tests/cases/compiler/constDeclarations.ts +++ b/tests/cases/compiler/constDeclarations.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // @declaration: true diff --git a/tests/cases/compiler/constDeclarations2.ts b/tests/cases/compiler/constDeclarations2.ts index f55a175efc656..75d39f8eb81bf 100644 --- a/tests/cases/compiler/constDeclarations2.ts +++ b/tests/cases/compiler/constDeclarations2.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // @declaration: true diff --git a/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts b/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts index 1d605c1e3f07a..f576e2a43025c 100644 --- a/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts +++ b/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts @@ -1,4 +1,3 @@ -// @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 db0feced24fde..59efbbd619cae 100644 --- a/tests/cases/compiler/constructorOverloads7.ts +++ b/tests/cases/compiler/constructorOverloads7.ts @@ -1,4 +1,3 @@ -// @strict: false declare class Point { x: number; diff --git a/tests/cases/compiler/constructorOverloads8.ts b/tests/cases/compiler/constructorOverloads8.ts index 2df340c3dc32b..448d6f476c503 100644 --- a/tests/cases/compiler/constructorOverloads8.ts +++ b/tests/cases/compiler/constructorOverloads8.ts @@ -1,4 +1,3 @@ -// @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 053bd8e978887..3edd36cdad141 100644 --- a/tests/cases/compiler/constructorStaticParamName.ts +++ b/tests/cases/compiler/constructorStaticParamName.ts @@ -1,4 +1,3 @@ -// @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 ca7d4ed260d12..1fbbf6b48f6ad 100644 --- a/tests/cases/compiler/constructorStaticParamNameErrors.ts +++ b/tests/cases/compiler/constructorStaticParamNameErrors.ts @@ -1,4 +1,3 @@ -// @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 c769e22379ef9..49af660fee19a 100644 --- a/tests/cases/compiler/constructorsWithSpecializedSignatures.ts +++ b/tests/cases/compiler/constructorsWithSpecializedSignatures.ts @@ -1,4 +1,3 @@ -// @strict: false // errors declare class C { constructor(x: "hi"); diff --git a/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts b/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts index 2a487b74a07d0..0e442028706c6 100644 --- a/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts +++ b/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts @@ -1,4 +1,3 @@ -// @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 b72bf9a81e4df..ec4a8bc236d1f 100644 --- a/tests/cases/compiler/contextualSignatureInstatiationCovariance.ts +++ b/tests/cases/compiler/contextualSignatureInstatiationCovariance.ts @@ -1,4 +1,3 @@ -// @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 46b663cc94098..5a962e16381a2 100644 --- a/tests/cases/compiler/contextualTyping.ts +++ b/tests/cases/compiler/contextualTyping.ts @@ -1,4 +1,3 @@ -// @strict: false // @sourcemap: true // DEFAULT INTERFACES interface IFoo { diff --git a/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts b/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts index 4d31238a176ed..f52b3e7fecaf8 100644 --- a/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts +++ b/tests/cases/compiler/contextualTypingArrayDestructuringWithDefaults.ts @@ -1,4 +1,3 @@ -// @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 8a8d4dcfda3ac..4d86031d1fa2d 100644 --- a/tests/cases/compiler/contextualTypingArrayOfLambdas.ts +++ b/tests/cases/compiler/contextualTypingArrayOfLambdas.ts @@ -1,4 +1,3 @@ -// @strict: false class A { foo: string; } diff --git a/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts b/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts index 57c3da6f2b722..556f42f7eb505 100644 --- a/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts +++ b/tests/cases/compiler/contextualTypingFunctionReturningFunction.ts @@ -1,4 +1,3 @@ -// @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 fdaf7f0571d10..9bcd34e4c0f0f 100644 --- a/tests/cases/compiler/contextualTypingFunctionReturningFunction2.ts +++ b/tests/cases/compiler/contextualTypingFunctionReturningFunction2.ts @@ -1,4 +1,3 @@ -// @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 09345eebb1949..f8e20d5c4eff3 100644 --- a/tests/cases/compiler/contextualTypingOfAccessors.ts +++ b/tests/cases/compiler/contextualTypingOfAccessors.ts @@ -1,4 +1,3 @@ -// @strict: false // not contextually typing accessors var x: { diff --git a/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts b/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts index 3a6f2dc324e36..475bdbacc44e4 100644 --- a/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts +++ b/tests/cases/compiler/contextualTypingOfArrayLiterals1.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { [x: number]: Date; } diff --git a/tests/cases/compiler/contextualTypingOfConditionalExpression.ts b/tests/cases/compiler/contextualTypingOfConditionalExpression.ts index 4fe6391e0b114..eaa48aca6b108 100644 --- a/tests/cases/compiler/contextualTypingOfConditionalExpression.ts +++ b/tests/cases/compiler/contextualTypingOfConditionalExpression.ts @@ -1,4 +1,3 @@ -// @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 9790b1e035731..eb3d534cbb338 100644 --- a/tests/cases/compiler/contextualTypingOfConditionalExpression2.ts +++ b/tests/cases/compiler/contextualTypingOfConditionalExpression2.ts @@ -1,4 +1,3 @@ -// @strict: false class A { foo: number; } diff --git a/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts b/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts index 32e307331ebd3..9c483595a7618 100644 --- a/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts +++ b/tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts @@ -1,4 +1,3 @@ -// @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 2b22f603654b2..d23a2e9e57bdd 100644 --- a/tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts +++ b/tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts @@ -1,4 +1,3 @@ -// @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 dfd8a8e1b0f9f..a06f715014778 100644 --- a/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts +++ b/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts @@ -1,4 +1,3 @@ -// @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 84c2bb6532b23..2fd03ef4d4cb1 100644 --- a/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts +++ b/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts @@ -1,4 +1,3 @@ -// @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 353e24cf53e38..b7f57ab3caa53 100644 --- a/tests/cases/compiler/contextualTypingOfObjectLiterals.ts +++ b/tests/cases/compiler/contextualTypingOfObjectLiterals.ts @@ -1,4 +1,3 @@ -// @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 d7169244c58b1..2cc7da7bc2b87 100644 --- a/tests/cases/compiler/contextualTypingOfObjectLiterals2.ts +++ b/tests/cases/compiler/contextualTypingOfObjectLiterals2.ts @@ -1,4 +1,3 @@ -// @strict: false interface Foo { foo: (t: string) => string; } diff --git a/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts b/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts index a39874bccb18d..cbc0769bd6661 100644 --- a/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts +++ b/tests/cases/compiler/contextualTypingOfTooShortOverloads.ts @@ -1,4 +1,3 @@ -// @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 235dd46e45824..86cbe8d5d5a49 100644 --- a/tests/cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts +++ b/tests/cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts @@ -1,4 +1,3 @@ -// @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 b8457bcf86a8f..3da3fa407c504 100644 --- a/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts +++ b/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts @@ -1,4 +1,3 @@ -// @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 e390c116e8025..c1d8f5e6bad19 100644 --- a/tests/cases/compiler/contextuallyTypingOrOperator.ts +++ b/tests/cases/compiler/contextuallyTypingOrOperator.ts @@ -1,4 +1,3 @@ -// @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 65e20539e3e95..a430fad56da6e 100644 --- a/tests/cases/compiler/contextuallyTypingOrOperator2.ts +++ b/tests/cases/compiler/contextuallyTypingOrOperator2.ts @@ -1,4 +1,3 @@ -// @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 acc3331d1deec..e1522d4607c29 100644 --- a/tests/cases/compiler/contextuallyTypingOrOperator3.ts +++ b/tests/cases/compiler/contextuallyTypingOrOperator3.ts @@ -1,4 +1,3 @@ -// @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 ef6830df7e7da..5a5e9fb96bfa0 100644 --- a/tests/cases/compiler/controlFlowPropertyDeclarations.ts +++ b/tests/cases/compiler/controlFlowPropertyDeclarations.ts @@ -1,4 +1,3 @@ -// @strict: false // Repro from ##8913 declare var require:any; diff --git a/tests/cases/compiler/convertKeywordsYes.ts b/tests/cases/compiler/convertKeywordsYes.ts index bd4dcda355217..feb273bb688fa 100644 --- a/tests/cases/compiler/convertKeywordsYes.ts +++ b/tests/cases/compiler/convertKeywordsYes.ts @@ -1,4 +1,3 @@ -// @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 407063f2fb63f..41d2ca1892933 100644 --- a/tests/cases/compiler/crashInEmitTokenWithComment.ts +++ b/tests/cases/compiler/crashInEmitTokenWithComment.ts @@ -1,4 +1,3 @@ -// @strict: false // @noTypesAndSymbols: true // GH#32358 diff --git a/tests/cases/compiler/crashInresolveReturnStatement.ts b/tests/cases/compiler/crashInresolveReturnStatement.ts index a181b70269b26..8e40c8489e783 100644 --- a/tests/cases/compiler/crashInresolveReturnStatement.ts +++ b/tests/cases/compiler/crashInresolveReturnStatement.ts @@ -1,4 +1,3 @@ -// @strict: false class WorkItemToolbar { public onToolbarItemClick() { WITDialogs.createCopyOfWorkItem(); diff --git a/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts b/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts index 8a48b5f9212e3..a2062ef6bda75 100644 --- a/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts +++ b/tests/cases/compiler/crashIntypeCheckInvocationExpression.ts @@ -1,4 +1,3 @@ -// @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 d332b7648a01b..dba269b07dc28 100644 --- a/tests/cases/compiler/createArray.ts +++ b/tests/cases/compiler/createArray.ts @@ -1,4 +1,3 @@ -// @strict: false var na=new number[]; class C { diff --git a/tests/cases/compiler/declFileConstructSignatures.ts b/tests/cases/compiler/declFileConstructSignatures.ts index dc2120cc1ce57..717619e8b2f4d 100644 --- a/tests/cases/compiler/declFileConstructSignatures.ts +++ b/tests/cases/compiler/declFileConstructSignatures.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts b/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts index afc100e66b8f9..08e2af20a2e52 100644 --- a/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts +++ b/tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @declaration: true namespace m3 { diff --git a/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts b/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts index 6799e89daa263..c3c7794902082 100644 --- a/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts +++ b/tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true class A { diff --git a/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts b/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts index a36d1afb0e56e..5ec6b42a711d4 100644 --- a/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts +++ b/tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true class C { diff --git a/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts b/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts index 3759cf554fe10..ef8a4d86c06df 100644 --- a/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts +++ b/tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface I { diff --git a/tests/cases/compiler/declFileForInterfaceWithRestParams.ts b/tests/cases/compiler/declFileForInterfaceWithRestParams.ts index 89368c5579b32..95956b77e05b9 100644 --- a/tests/cases/compiler/declFileForInterfaceWithRestParams.ts +++ b/tests/cases/compiler/declFileForInterfaceWithRestParams.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface I { diff --git a/tests/cases/compiler/declFileFunctions.ts b/tests/cases/compiler/declFileFunctions.ts index a5e804940ab1f..4217fdf6e953b 100644 --- a/tests/cases/compiler/declFileFunctions.ts +++ b/tests/cases/compiler/declFileFunctions.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true // @removeComments: false diff --git a/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts b/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts index f0a0290c440ef..fbc78ef134449 100644 --- a/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts +++ b/tests/cases/compiler/declFileImportModuleWithExportAssignment.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileOptionalInterfaceMethod.ts b/tests/cases/compiler/declFileOptionalInterfaceMethod.ts index 5b170da766b9e..73eb40238a93a 100644 --- a/tests/cases/compiler/declFileOptionalInterfaceMethod.ts +++ b/tests/cases/compiler/declFileOptionalInterfaceMethod.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface X { f? (); diff --git a/tests/cases/compiler/declFilePrivateMethodOverloads.ts b/tests/cases/compiler/declFilePrivateMethodOverloads.ts index fbc863e05f291..55bebeb9c8302 100644 --- a/tests/cases/compiler/declFilePrivateMethodOverloads.ts +++ b/tests/cases/compiler/declFilePrivateMethodOverloads.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface IContext { diff --git a/tests/cases/compiler/declFilePrivateStatic.ts b/tests/cases/compiler/declFilePrivateStatic.ts index 10878218cbb23..0d64844ff99d2 100644 --- a/tests/cases/compiler/declFilePrivateStatic.ts +++ b/tests/cases/compiler/declFilePrivateStatic.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @target: es5 diff --git a/tests/cases/compiler/declFileRegressionTests.ts b/tests/cases/compiler/declFileRegressionTests.ts index f91bc3f59e0d0..4d19696bacfa2 100644 --- a/tests/cases/compiler/declFileRegressionTests.ts +++ b/tests/cases/compiler/declFileRegressionTests.ts @@ -1,4 +1,3 @@ -// @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 fd131c7c03cd8..c398ffa1e3a11 100644 --- a/tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts +++ b/tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true function f1(...args) { } diff --git a/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts b/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts index 2ac0084e8ffe3..3b2344765794e 100644 --- a/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts +++ b/tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts b/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts index 255e69f080fd8..5af929c20166c 100644 --- a/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts +++ b/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts index 01ed209152800..f43d2b1073c9f 100644 --- a/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts +++ b/tests/cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declFileTypeofFunction.ts b/tests/cases/compiler/declFileTypeofFunction.ts index e1f8238b6da74..247de84e26ca9 100644 --- a/tests/cases/compiler/declFileTypeofFunction.ts +++ b/tests/cases/compiler/declFileTypeofFunction.ts @@ -1,4 +1,3 @@ -// @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 1bafa1da252ed..2c1e9f518719b 100644 --- a/tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts +++ b/tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @Filename: declFile.d.ts diff --git a/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts b/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts index 07dc00b5cf919..7a79a1db225f5 100644 --- a/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts +++ b/tests/cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @outFile: out.js diff --git a/tests/cases/compiler/declInput-2.ts b/tests/cases/compiler/declInput-2.ts index cd7a39ab35d41..7a90a2f1a60aa 100644 --- a/tests/cases/compiler/declInput-2.ts +++ b/tests/cases/compiler/declInput-2.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true namespace M { class C { } diff --git a/tests/cases/compiler/declInput.ts b/tests/cases/compiler/declInput.ts index f44d210460cbb..e0234b9bee74c 100644 --- a/tests/cases/compiler/declInput.ts +++ b/tests/cases/compiler/declInput.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface bar { diff --git a/tests/cases/compiler/declInput3.ts b/tests/cases/compiler/declInput3.ts index ac0aa1c9c343c..4abbb9ba37327 100644 --- a/tests/cases/compiler/declInput3.ts +++ b/tests/cases/compiler/declInput3.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface bar2 { diff --git a/tests/cases/compiler/declInput4.ts b/tests/cases/compiler/declInput4.ts index d8418cd9d48ca..57f4c10ccd507 100644 --- a/tests/cases/compiler/declInput4.ts +++ b/tests/cases/compiler/declInput4.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true namespace M { class C { } diff --git a/tests/cases/compiler/declarationEmitAliasExportStar.ts b/tests/cases/compiler/declarationEmitAliasExportStar.ts index 9b56ed15253e7..f556e35aa0b20 100644 --- a/tests/cases/compiler/declarationEmitAliasExportStar.ts +++ b/tests/cases/compiler/declarationEmitAliasExportStar.ts @@ -1,4 +1,3 @@ -// @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 1512096091f38..16d380307fd76 100644 --- a/tests/cases/compiler/declarationEmitBindingPatterns.ts +++ b/tests/cases/compiler/declarationEmitBindingPatterns.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true const k = ({x: z = 'y'}) => { } diff --git a/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts b/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts index e4246a2c0814a..42fda3d008873 100644 --- a/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts +++ b/tests/cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @target: esnext // @skipLibCheck: false diff --git a/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts b/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts index ea28769dbbdea..173b280cd5149 100644 --- a/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts +++ b/tests/cases/compiler/declarationEmitBindingPatternsUnused.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @target: esnext // @skipLibCheck: false diff --git a/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts b/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts index 5aa8bff365d0f..16f096d43ca19 100644 --- a/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts +++ b/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts b/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts index 0c519a56226bf..90b488ebec7d6 100644 --- a/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts +++ b/tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts b/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts index 088c7cbcbd160..d6638ab8e3641 100644 --- a/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts +++ b/tests/cases/compiler/declarationEmitDefaultExportWithStaticAssignment.ts @@ -1,4 +1,3 @@ -// @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 4ff66110425c3..34441cd6c7bd8 100644 --- a/tests/cases/compiler/declarationEmitDestructuring2.ts +++ b/tests/cases/compiler/declarationEmitDestructuring2.ts @@ -1,4 +1,3 @@ -// @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 2fcde3b8492f9..78aeddb0e11bf 100644 --- a/tests/cases/compiler/declarationEmitDestructuring3.ts +++ b/tests/cases/compiler/declarationEmitDestructuring3.ts @@ -1,4 +1,3 @@ -// @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 f13a273526031..9921b13c8957c 100644 --- a/tests/cases/compiler/declarationEmitNameConflicts2.ts +++ b/tests/cases/compiler/declarationEmitNameConflicts2.ts @@ -1,4 +1,3 @@ -// @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 c48f0afbd78ed..8d40ecbe218fe 100644 --- a/tests/cases/compiler/declarationEmitProtectedMembers.ts +++ b/tests/cases/compiler/declarationEmitProtectedMembers.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @target: es5 diff --git a/tests/cases/compiler/declarationMaps.ts b/tests/cases/compiler/declarationMaps.ts index bbff84ba1e027..d338b9993c714 100644 --- a/tests/cases/compiler/declarationMaps.ts +++ b/tests/cases/compiler/declarationMaps.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @declarationMap: true namespace m2 { diff --git a/tests/cases/compiler/declarationMapsMultifile.ts b/tests/cases/compiler/declarationMapsMultifile.ts index 18026bc41a1a8..43d77c4c49e1c 100644 --- a/tests/cases/compiler/declarationMapsMultifile.ts +++ b/tests/cases/compiler/declarationMapsMultifile.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @declarationMap: true // @filename: a.ts diff --git a/tests/cases/compiler/declarationMapsOutFile.ts b/tests/cases/compiler/declarationMapsOutFile.ts index b6edde8f80ff0..b388d567ef335 100644 --- a/tests/cases/compiler/declarationMapsOutFile.ts +++ b/tests/cases/compiler/declarationMapsOutFile.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @declarationMap: true // @module: amd diff --git a/tests/cases/compiler/declarationMapsOutFile2.ts b/tests/cases/compiler/declarationMapsOutFile2.ts index 8c939bef9edde..713f6f5391044 100644 --- a/tests/cases/compiler/declarationMapsOutFile2.ts +++ b/tests/cases/compiler/declarationMapsOutFile2.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @declarationMap: true // @outFile: bundle.js diff --git a/tests/cases/compiler/declarationMapsWithSourceMap.ts b/tests/cases/compiler/declarationMapsWithSourceMap.ts index b2360ad3bc5e4..332ccb04fce36 100644 --- a/tests/cases/compiler/declarationMapsWithSourceMap.ts +++ b/tests/cases/compiler/declarationMapsWithSourceMap.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @declarationMap: true // @outFile: bundle.js diff --git a/tests/cases/compiler/declarationMapsWithoutDeclaration.ts b/tests/cases/compiler/declarationMapsWithoutDeclaration.ts index 6105939b1d3b0..5bdc359a01a6f 100644 --- a/tests/cases/compiler/declarationMapsWithoutDeclaration.ts +++ b/tests/cases/compiler/declarationMapsWithoutDeclaration.ts @@ -1,4 +1,3 @@ -// @strict: false // @declarationMap: true namespace m2 { export interface connectModule { diff --git a/tests/cases/compiler/declarationMerging1.ts b/tests/cases/compiler/declarationMerging1.ts index f109d4ab1dd45..256cacf4a524b 100644 --- a/tests/cases/compiler/declarationMerging1.ts +++ b/tests/cases/compiler/declarationMerging1.ts @@ -1,4 +1,3 @@ -// @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 864b35e7a2b5a..6be5f4d0e4d91 100644 --- a/tests/cases/compiler/declarationMerging2.ts +++ b/tests/cases/compiler/declarationMerging2.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: a.ts diff --git a/tests/cases/compiler/declareAlreadySeen.ts b/tests/cases/compiler/declareAlreadySeen.ts index 3f197ad56f532..2687582263797 100644 --- a/tests/cases/compiler/declareAlreadySeen.ts +++ b/tests/cases/compiler/declareAlreadySeen.ts @@ -1,4 +1,3 @@ -// @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 e76d36d852069..19a4da31f08ec 100644 --- a/tests/cases/compiler/declareFileExportAssignment.ts +++ b/tests/cases/compiler/declareFileExportAssignment.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @declaration: true namespace m2 { diff --git a/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts b/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts index 64c698e971f1e..3c591015ebcf6 100644 --- a/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts +++ b/tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @declaration: true namespace m2 { diff --git a/tests/cases/compiler/declaredExternalModule.ts b/tests/cases/compiler/declaredExternalModule.ts index 5534adbfab9c3..c29439c25a9d5 100644 --- a/tests/cases/compiler/declaredExternalModule.ts +++ b/tests/cases/compiler/declaredExternalModule.ts @@ -1,4 +1,3 @@ -// @strict: false declare module 'connect' { interface connectModule { diff --git a/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts b/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts index 17735fb400e3d..622dc1d28c163 100644 --- a/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts +++ b/tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts @@ -1,4 +1,3 @@ -// @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 1a292036acc8d..4ac608ebd7445 100644 --- a/tests/cases/compiler/decoratorMetadataNoStrictNull.ts +++ b/tests/cases/compiler/decoratorMetadataNoStrictNull.ts @@ -1,4 +1,3 @@ -// @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 0dc111267f62a..6908423e426a1 100644 --- a/tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts +++ b/tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts @@ -1,4 +1,3 @@ -// @strict: false // @experimentalDecorators: true // @emitDecoratorMetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts index b9fccbd42ca2f..8d198e44752f5 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts index fe41f67353d14..ac097dd3ba452 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts index 0f1bf86aa352b..e15570cb5baae 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts index b1adf25a05593..d04d1300531da 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts index bec73c38baa6f..24934963b3e12 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts index 9b4e54f63dd7d..2043279c4aaf2 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts index dac2ca67b0cea..bbedf61c6dfc5 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts index f2b14890acd9d..e3318d813a87b 100644 --- a/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts +++ b/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts @@ -1,4 +1,3 @@ -// @strict: false // @noemithelpers: true // @experimentaldecorators: true // @emitdecoratormetadata: true diff --git a/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts b/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts index 4284b575bb0a9..c7465471ed855 100644 --- a/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts +++ b/tests/cases/compiler/decoratorReferenceOnOtherProperty.ts @@ -1,4 +1,3 @@ -// @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 569b1ea23f9f8..faa257983d20f 100644 --- a/tests/cases/compiler/decoratorReferences.ts +++ b/tests/cases/compiler/decoratorReferences.ts @@ -1,4 +1,3 @@ -// @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 e29b2ee784b02..a31e5243d1931 100644 --- a/tests/cases/compiler/decrementAndIncrementOperators.ts +++ b/tests/cases/compiler/decrementAndIncrementOperators.ts @@ -1,4 +1,3 @@ -// @strict: false var x = 0; // errors diff --git a/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts b/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts index 23248514e124d..d82fae46744b6 100644 --- a/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts +++ b/tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/defaultArgsInFunctionExpressions.ts b/tests/cases/compiler/defaultArgsInFunctionExpressions.ts index ab73fea6f46f4..cfbdb9a55b3f0 100644 --- a/tests/cases/compiler/defaultArgsInFunctionExpressions.ts +++ b/tests/cases/compiler/defaultArgsInFunctionExpressions.ts @@ -1,4 +1,3 @@ -// @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 62b8de87589f2..63c03a3d12ec1 100644 --- a/tests/cases/compiler/defaultArgsInOverloads.ts +++ b/tests/cases/compiler/defaultArgsInOverloads.ts @@ -1,4 +1,3 @@ -// @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 6de7e80141e45..254197bf30986 100644 --- a/tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts +++ b/tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts @@ -1,4 +1,3 @@ -// @strict: false var obj1: {}; obj1.length; diff --git a/tests/cases/compiler/defaultIndexProps2.ts b/tests/cases/compiler/defaultIndexProps2.ts index 61973f5c3b8cb..35abeca3f876f 100644 --- a/tests/cases/compiler/defaultIndexProps2.ts +++ b/tests/cases/compiler/defaultIndexProps2.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { public v = "Yo"; } diff --git a/tests/cases/compiler/defaultValueInFunctionOverload1.ts b/tests/cases/compiler/defaultValueInFunctionOverload1.ts index 47b973f1067cb..e38f8b9848c8b 100644 --- a/tests/cases/compiler/defaultValueInFunctionOverload1.ts +++ b/tests/cases/compiler/defaultValueInFunctionOverload1.ts @@ -1,3 +1,2 @@ -// @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 4e40c4228875e..4d161a5c9a0e6 100644 --- a/tests/cases/compiler/defineVariables_useDefineForClassFields.ts +++ b/tests/cases/compiler/defineVariables_useDefineForClassFields.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ESNext // @useDefineForClassFields: true diff --git a/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts b/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts index c63982da33940..4f7f594363a25 100644 --- a/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts +++ b/tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: esnext // @useDefineForClassFields: true class C { diff --git a/tests/cases/compiler/deleteReadonly.ts b/tests/cases/compiler/deleteReadonly.ts index 887dbb340d505..cdab3f2eb234d 100644 --- a/tests/cases/compiler/deleteReadonly.ts +++ b/tests/cases/compiler/deleteReadonly.ts @@ -1,4 +1,3 @@ -// @strict: false interface A { readonly b } diff --git a/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts b/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts index 424090a0ae6f4..ff875f23c1d7f 100644 --- a/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts +++ b/tests/cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts @@ -1,4 +1,3 @@ -// @strict: false interface MyInterface { myMethod(...myList: any[]); } diff --git a/tests/cases/compiler/destructuringControlFlowNoCrash.ts b/tests/cases/compiler/destructuringControlFlowNoCrash.ts index 6ede0f6cda490..a8a2d05b73edb 100644 --- a/tests/cases/compiler/destructuringControlFlowNoCrash.ts +++ b/tests/cases/compiler/destructuringControlFlowNoCrash.ts @@ -1,4 +1,3 @@ -// @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 cf793cd39ca92..84a72d3595bb9 100644 --- a/tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts +++ b/tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts @@ -1,4 +1,3 @@ -// @strict: false class TestFile { public message: string; public name; diff --git a/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts b/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts index 8f11dc71c00cd..0c754c740c4a5 100644 --- a/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts +++ b/tests/cases/compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es2015 // es2016 diff --git a/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts b/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts index 68ad884e23385..e7dddbf24f10c 100644 --- a/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts +++ b/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts @@ -1,4 +1,3 @@ -// @strict: false var f: { x: number; <- diff --git a/tests/cases/compiler/dottedModuleName.ts b/tests/cases/compiler/dottedModuleName.ts index c7f0a1e8d5810..5caff45d58dee 100644 --- a/tests/cases/compiler/dottedModuleName.ts +++ b/tests/cases/compiler/dottedModuleName.ts @@ -1,4 +1,3 @@ -// @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 8c2e269892953..a68e65c6c1640 100644 --- a/tests/cases/compiler/dottedModuleName2.ts +++ b/tests/cases/compiler/dottedModuleName2.ts @@ -1,4 +1,3 @@ -// @strict: false namespace A.B { export var x = 1; diff --git a/tests/cases/compiler/downlevelLetConst14.ts b/tests/cases/compiler/downlevelLetConst14.ts index 9f003bc3ff954..0a77883809618 100644 --- a/tests/cases/compiler/downlevelLetConst14.ts +++ b/tests/cases/compiler/downlevelLetConst14.ts @@ -1,4 +1,3 @@ -// @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 3468b1cba8d5b..abe06e1709bd9 100644 --- a/tests/cases/compiler/downlevelLetConst15.ts +++ b/tests/cases/compiler/downlevelLetConst15.ts @@ -1,4 +1,3 @@ -// @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 77d5147bacd7b..4a2bc0a055cdb 100644 --- a/tests/cases/compiler/downlevelLetConst16.ts +++ b/tests/cases/compiler/downlevelLetConst16.ts @@ -1,4 +1,3 @@ -// @strict: false // @target:es5 // @allowUnreachableCode: true diff --git a/tests/cases/compiler/downlevelLetConst17.ts b/tests/cases/compiler/downlevelLetConst17.ts index 82f594c9a2b3e..7cea2031ac5b6 100644 --- a/tests/cases/compiler/downlevelLetConst17.ts +++ b/tests/cases/compiler/downlevelLetConst17.ts @@ -1,4 +1,3 @@ -// @strict: false // @target:es5 // @allowUnreachableCode: true 'use strict' diff --git a/tests/cases/compiler/downlevelLetConst18.ts b/tests/cases/compiler/downlevelLetConst18.ts index 585f15acf8ca6..61cb2f46cc987 100644 --- a/tests/cases/compiler/downlevelLetConst18.ts +++ b/tests/cases/compiler/downlevelLetConst18.ts @@ -1,4 +1,3 @@ -// @strict: false // @target:es5 // @allowUnreachableCode: true diff --git a/tests/cases/compiler/downlevelLetConst19.ts b/tests/cases/compiler/downlevelLetConst19.ts index c0ba694098085..e7aa48421f740 100644 --- a/tests/cases/compiler/downlevelLetConst19.ts +++ b/tests/cases/compiler/downlevelLetConst19.ts @@ -1,4 +1,3 @@ -// @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 0cbc122685a33..6e46c106fa3a4 100644 --- a/tests/cases/compiler/duplicateClassElements.ts +++ b/tests/cases/compiler/duplicateClassElements.ts @@ -1,4 +1,3 @@ -// @strict: false class a { public a; public a; diff --git a/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts b/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts index 8200ce39f4784..67ec8e1a19fb9 100644 --- a/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts +++ b/tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts @@ -1,4 +1,3 @@ -// @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 270afcc68f536..81f45ff82e3a7 100644 --- a/tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts +++ b/tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts @@ -1,4 +1,3 @@ -// @strict: false namespace M { export interface I { } } diff --git a/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts b/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts index c7523ce31950d..005bfd306d177 100644 --- a/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts +++ b/tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @Filename: file1.ts diff --git a/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts b/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts index 51b3f0c2499fd..dd9f6cc09f32b 100644 --- a/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts +++ b/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts @@ -1,4 +1,3 @@ -// @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 1835876780fe3..f58e9b704d48e 100644 --- a/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts +++ b/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts @@ -1,4 +1,3 @@ -// @strict: false // @experimentaldecorators: true // @emitdecoratormetadata: true // @target: ES5 diff --git a/tests/cases/compiler/emitThisInObjectLiteralGetter.ts b/tests/cases/compiler/emitThisInObjectLiteralGetter.ts index 4d6001f95e09d..8927891bd989c 100644 --- a/tests/cases/compiler/emitThisInObjectLiteralGetter.ts +++ b/tests/cases/compiler/emitThisInObjectLiteralGetter.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 const example = { get foo() { diff --git a/tests/cases/compiler/emptyArgumentsListComment.ts b/tests/cases/compiler/emptyArgumentsListComment.ts index 95a72a33fbff3..4a435018f6900 100644 --- a/tests/cases/compiler/emptyArgumentsListComment.ts +++ b/tests/cases/compiler/emptyArgumentsListComment.ts @@ -1,4 +1,3 @@ -// @strict: false declare var a; a(/*1*/); diff --git a/tests/cases/compiler/enumBasics1.ts b/tests/cases/compiler/enumBasics1.ts index 70091093bf940..b3614d5bcc2b9 100644 --- a/tests/cases/compiler/enumBasics1.ts +++ b/tests/cases/compiler/enumBasics1.ts @@ -1,4 +1,3 @@ -// @strict: false enum E { A = 1, B, diff --git a/tests/cases/compiler/enumBasics2.ts b/tests/cases/compiler/enumBasics2.ts index 7abe73bdd65b1..5a957b9170df0 100644 --- a/tests/cases/compiler/enumBasics2.ts +++ b/tests/cases/compiler/enumBasics2.ts @@ -1,4 +1,3 @@ -// @strict: false enum Foo { a = 2, b = 3, diff --git a/tests/cases/compiler/enumBasics3.ts b/tests/cases/compiler/enumBasics3.ts index e111fe4e6a02d..d39c1c6f0283f 100644 --- a/tests/cases/compiler/enumBasics3.ts +++ b/tests/cases/compiler/enumBasics3.ts @@ -1,4 +1,3 @@ -// @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 03db00ba75f3b..2a156782c4e57 100644 --- a/tests/cases/compiler/enumIndexer.ts +++ b/tests/cases/compiler/enumIndexer.ts @@ -1,4 +1,3 @@ -// @strict: false enum MyEnumType { foo, bar } diff --git a/tests/cases/compiler/errorElaboration.ts b/tests/cases/compiler/errorElaboration.ts index c5b4d95c9b7f5..2acbbce84ce4a 100644 --- a/tests/cases/compiler/errorElaboration.ts +++ b/tests/cases/compiler/errorElaboration.ts @@ -1,4 +1,3 @@ -// @strict: false // Repro for #5712 interface Ref { diff --git a/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts b/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts index a3b038cb30c90..1045fd95cad73 100644 --- a/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts +++ b/tests/cases/compiler/errorElaborationDivesIntoApparentlyPresentPropsOnly.ts @@ -1,4 +1,3 @@ -// @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 c4620fddd2bc2..a91ecc390b5a9 100644 --- a/tests/cases/compiler/errorForConflictingExportEqualsValue.ts +++ b/tests/cases/compiler/errorForConflictingExportEqualsValue.ts @@ -1,4 +1,3 @@ -// @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 8fd96da184f50..73969bc17b300 100644 --- a/tests/cases/compiler/errorMessagesIntersectionTypes03.ts +++ b/tests/cases/compiler/errorMessagesIntersectionTypes03.ts @@ -1,4 +1,3 @@ -// @strict: false interface A { a; } diff --git a/tests/cases/compiler/errorMessagesIntersectionTypes04.ts b/tests/cases/compiler/errorMessagesIntersectionTypes04.ts index 273b7db071649..74dcfa658e7b5 100644 --- a/tests/cases/compiler/errorMessagesIntersectionTypes04.ts +++ b/tests/cases/compiler/errorMessagesIntersectionTypes04.ts @@ -1,4 +1,3 @@ -// @strict: false interface A { a; } diff --git a/tests/cases/compiler/errorsInGenericTypeReference.ts b/tests/cases/compiler/errorsInGenericTypeReference.ts index 49d7202fec4e8..7b385feb2dc09 100644 --- a/tests/cases/compiler/errorsInGenericTypeReference.ts +++ b/tests/cases/compiler/errorsInGenericTypeReference.ts @@ -1,4 +1,3 @@ -// @strict: false interface IFoo { } diff --git a/tests/cases/compiler/es5-asyncFunction.ts b/tests/cases/compiler/es5-asyncFunction.ts index 9496f393c0164..2ee2ccb3f91d9 100644 --- a/tests/cases/compiler/es5-asyncFunction.ts +++ b/tests/cases/compiler/es5-asyncFunction.ts @@ -1,4 +1,3 @@ -// @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 462e516b426fd..69240010c2759 100644 --- a/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts +++ b/tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts @@ -1,4 +1,3 @@ -// @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 d1678c5fcacd0..6d8afb166c076 100644 --- a/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts @@ -1,4 +1,3 @@ -// @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 8cdb107df8ae2..7b748b95bdf9f 100644 --- a/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionCallExpressions.ts @@ -1,4 +1,3 @@ -// @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 c8a5708be7f23..fbc577b983347 100644 --- a/tests/cases/compiler/es5-asyncFunctionConditionals.ts +++ b/tests/cases/compiler/es5-asyncFunctionConditionals.ts @@ -1,4 +1,3 @@ -// @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 32a680c55158a..6501e27769fb1 100644 --- a/tests/cases/compiler/es5-asyncFunctionDoStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionDoStatements.ts @@ -1,4 +1,3 @@ -// @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 86f831122d4f7..01372b43f5eb3 100644 --- a/tests/cases/compiler/es5-asyncFunctionElementAccess.ts +++ b/tests/cases/compiler/es5-asyncFunctionElementAccess.ts @@ -1,4 +1,3 @@ -// @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 6d38b35d41d68..b1593041080d1 100644 --- a/tests/cases/compiler/es5-asyncFunctionForInStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForInStatements.ts @@ -1,4 +1,3 @@ -// @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 c3a949a237aad..d741c55e31e98 100644 --- a/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForOfStatements.ts @@ -1,4 +1,3 @@ -// @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 e011b49af9f67..4fddf395588f2 100644 --- a/tests/cases/compiler/es5-asyncFunctionForStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionForStatements.ts @@ -1,4 +1,3 @@ -// @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 6f217181558a0..7c05372ada9d3 100644 --- a/tests/cases/compiler/es5-asyncFunctionHoisting.ts +++ b/tests/cases/compiler/es5-asyncFunctionHoisting.ts @@ -1,4 +1,3 @@ -// @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 fa9f9911b5df1..65bda05ee7954 100644 --- a/tests/cases/compiler/es5-asyncFunctionIfStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionIfStatements.ts @@ -1,4 +1,3 @@ -// @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 e062de41ded35..563f81a0b55a0 100644 --- a/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts +++ b/tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts @@ -1,4 +1,3 @@ -// @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 1c8652b4a58f8..dd6f3126bcf10 100644 --- a/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts +++ b/tests/cases/compiler/es5-asyncFunctionNestedLoops.ts @@ -1,4 +1,3 @@ -// @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 367968124cf66..d7f0da9f433e8 100644 --- a/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts +++ b/tests/cases/compiler/es5-asyncFunctionNewExpressions.ts @@ -1,4 +1,3 @@ -// @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 4c8f48ea2d897..42d03f90494c7 100644 --- a/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts +++ b/tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts @@ -1,4 +1,3 @@ -// @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 80ecf24c528a9..3541c1b354b36 100644 --- a/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts +++ b/tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts @@ -1,4 +1,3 @@ -// @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 75d05deee6b30..944c61b568c6e 100644 --- a/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionReturnStatements.ts @@ -1,4 +1,3 @@ -// @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 18cbcec9b6d9c..b321c7115ce28 100644 --- a/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts @@ -1,4 +1,3 @@ -// @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 24648d03a3910..0d14b5f4242c2 100644 --- a/tests/cases/compiler/es5-asyncFunctionTryStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionTryStatements.ts @@ -1,4 +1,3 @@ -// @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 c2fb2dd6e69ba..d31ab21ab7bf7 100644 --- a/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionWhileStatements.ts @@ -1,4 +1,3 @@ -// @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 4f02528a4dc2d..c82901ac9fd1e 100644 --- a/tests/cases/compiler/es5-asyncFunctionWithStatements.ts +++ b/tests/cases/compiler/es5-asyncFunctionWithStatements.ts @@ -1,4 +1,3 @@ -// @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 e7d56da3d6ceb..0ad10c1822dac 100644 --- a/tests/cases/compiler/es5-commonjs7.ts +++ b/tests/cases/compiler/es5-commonjs7.ts @@ -1,4 +1,3 @@ -// @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 ab7854f33a0b6..f6a00a3f956ae 100644 --- a/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts +++ b/tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts @@ -1,4 +1,3 @@ -// @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 3ce0a3084ea53..73d1c2bc6f0e9 100644 --- a/tests/cases/compiler/es6ClassTest.ts +++ b/tests/cases/compiler/es6ClassTest.ts @@ -1,4 +1,3 @@ -// @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 09c1faad3bde0..ff235670b69ca 100644 --- a/tests/cases/compiler/es6ClassTest2.ts +++ b/tests/cases/compiler/es6ClassTest2.ts @@ -1,4 +1,3 @@ -// @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 4cc0ca3f1f7dd..392acbe952911 100644 --- a/tests/cases/compiler/es6ClassTest3.ts +++ b/tests/cases/compiler/es6ClassTest3.ts @@ -1,4 +1,3 @@ -// @strict: false namespace M { class Visibility { public foo() { }; diff --git a/tests/cases/compiler/es6ClassTest4.ts b/tests/cases/compiler/es6ClassTest4.ts index 3f7a2e22bd8d8..6b16c82d19ad0 100644 --- a/tests/cases/compiler/es6ClassTest4.ts +++ b/tests/cases/compiler/es6ClassTest4.ts @@ -1,4 +1,3 @@ -// @strict: false declare class Point { x: number; diff --git a/tests/cases/compiler/es6ClassTest5.ts b/tests/cases/compiler/es6ClassTest5.ts index 7fb022bbc795c..51b37575b0d43 100644 --- a/tests/cases/compiler/es6ClassTest5.ts +++ b/tests/cases/compiler/es6ClassTest5.ts @@ -1,4 +1,3 @@ -// @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 a464fd863d903..1cfdb3dcf5e3d 100644 --- a/tests/cases/compiler/es6ClassTest7.ts +++ b/tests/cases/compiler/es6ClassTest7.ts @@ -1,4 +1,3 @@ -// @strict: false declare namespace M { export class Foo { } diff --git a/tests/cases/compiler/es6ClassTest8.ts b/tests/cases/compiler/es6ClassTest8.ts index 3492a6414f1c2..da50c8adfeca5 100644 --- a/tests/cases/compiler/es6ClassTest8.ts +++ b/tests/cases/compiler/es6ClassTest8.ts @@ -1,4 +1,3 @@ -// @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 69e58aed783e3..d8f826c93965c 100644 --- a/tests/cases/compiler/es6ClassTest9.ts +++ b/tests/cases/compiler/es6ClassTest9.ts @@ -1,3 +1,2 @@ -// @strict: false declare class foo(); function foo() {} diff --git a/tests/cases/compiler/es6ExportEqualsInterop.ts b/tests/cases/compiler/es6ExportEqualsInterop.ts index a41a7e6d24412..26fec1a30de31 100644 --- a/tests/cases/compiler/es6ExportEqualsInterop.ts +++ b/tests/cases/compiler/es6ExportEqualsInterop.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: modules.d.ts diff --git a/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts b/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts index 1614e56d2a204..b7f6ce748c3c2 100644 --- a/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts +++ b/tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts @@ -1,4 +1,3 @@ -// @strict: false // @esModuleInterop: true // @importHelpers: true // @noEmitHelpers: true diff --git a/tests/cases/compiler/evalAfter0.ts b/tests/cases/compiler/evalAfter0.ts index 2b3fafeba0ae0..8b9ac51d5d473 100644 --- a/tests/cases/compiler/evalAfter0.ts +++ b/tests/cases/compiler/evalAfter0.ts @@ -1,4 +1,3 @@ -// @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 0b4a9c0271b59..11c573b4ce4da 100644 --- a/tests/cases/compiler/excessPropertyCheckWithSpread.ts +++ b/tests/cases/compiler/excessPropertyCheckWithSpread.ts @@ -1,4 +1,3 @@ -// @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 8f199937fb9b5..e69f3dc79c470 100644 --- a/tests/cases/compiler/expandoFunctionContextualTypesJs.ts +++ b/tests/cases/compiler/expandoFunctionContextualTypesJs.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/expandoFunctionNestedAssigments.ts b/tests/cases/compiler/expandoFunctionNestedAssigments.ts index 0adab6f84a153..7448ba939dcba 100644 --- a/tests/cases/compiler/expandoFunctionNestedAssigments.ts +++ b/tests/cases/compiler/expandoFunctionNestedAssigments.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: esnext // @declaration: true diff --git a/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts b/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts index ad4ef67f32679..a0375921bf6b5 100644 --- a/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts +++ b/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: esnext // @declaration: true diff --git a/tests/cases/compiler/exportAlreadySeen.ts b/tests/cases/compiler/exportAlreadySeen.ts index 3eb4819c288ed..188ef2be4ddfc 100644 --- a/tests/cases/compiler/exportAlreadySeen.ts +++ b/tests/cases/compiler/exportAlreadySeen.ts @@ -1,4 +1,3 @@ -// @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 c5e1d80936a39..755d4fdb2a957 100644 --- a/tests/cases/compiler/exportAsNamespace.d.ts +++ b/tests/cases/compiler/exportAsNamespace.d.ts @@ -1,4 +1,3 @@ -// @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 a4b2de211614d..69d4777cda25f 100644 --- a/tests/cases/compiler/exportAssignmentError.ts +++ b/tests/cases/compiler/exportAssignmentError.ts @@ -1,4 +1,3 @@ -// @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 a43cffee095e2..0ce4792ca9d15 100644 --- a/tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts +++ b/tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts @@ -1,4 +1,3 @@ -// @strict: false // @filename: assignment.ts export default { foo: 12 diff --git a/tests/cases/compiler/exportAssignmentInternalModule.ts b/tests/cases/compiler/exportAssignmentInternalModule.ts index e376d97c4641c..e1ef4fcc6d4cb 100644 --- a/tests/cases/compiler/exportAssignmentInternalModule.ts +++ b/tests/cases/compiler/exportAssignmentInternalModule.ts @@ -1,4 +1,3 @@ -// @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 11d227dc91422..1d7a9f3bbc25a 100644 --- a/tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts +++ b/tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd namespace m2 { export interface connectModule { diff --git a/tests/cases/compiler/exportAssignmentWithPrivacyError.ts b/tests/cases/compiler/exportAssignmentWithPrivacyError.ts index 2b755dee3caa3..2b14ba10f12fd 100644 --- a/tests/cases/compiler/exportAssignmentWithPrivacyError.ts +++ b/tests/cases/compiler/exportAssignmentWithPrivacyError.ts @@ -1,4 +1,3 @@ -// @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 c96c7f654a8a0..b978cb09bb1bc 100644 --- a/tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts +++ b/tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs function Greeter() { //... diff --git a/tests/cases/compiler/exportDeclareClass1.ts b/tests/cases/compiler/exportDeclareClass1.ts index e4925cb659f30..9230eda30aaed 100644 --- a/tests/cases/compiler/exportDeclareClass1.ts +++ b/tests/cases/compiler/exportDeclareClass1.ts @@ -1,4 +1,3 @@ -// @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 90677555e52c5..0c741b2b058af 100644 --- a/tests/cases/compiler/exportEqualErrorType.ts +++ b/tests/cases/compiler/exportEqualErrorType.ts @@ -1,4 +1,3 @@ -// @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 86530f98bd617..348bb7dd2f117 100644 --- a/tests/cases/compiler/exportEqualMemberMissing.ts +++ b/tests/cases/compiler/exportEqualMemberMissing.ts @@ -1,4 +1,3 @@ -// @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 d199c72392843..fb93ebfc3b497 100644 --- a/tests/cases/compiler/exportImportMultipleFiles.ts +++ b/tests/cases/compiler/exportImportMultipleFiles.ts @@ -1,4 +1,3 @@ -// @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 c2d7572c08fab..54c161af447f9 100644 --- a/tests/cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts +++ b/tests/cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts @@ -1,4 +1,3 @@ -// @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 1734dd07288c5..cb781c36ba57c 100644 --- a/tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts +++ b/tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts @@ -1,4 +1,3 @@ -// @strict: false declare module "m2" { namespace X { interface I { } diff --git a/tests/cases/compiler/exportStarForValues.ts b/tests/cases/compiler/exportStarForValues.ts index f72c3b425ea34..3432548c5286e 100644 --- a/tests/cases/compiler/exportStarForValues.ts +++ b/tests/cases/compiler/exportStarForValues.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues10.ts b/tests/cases/compiler/exportStarForValues10.ts index 61e0e088c1237..82cee772b18d0 100644 --- a/tests/cases/compiler/exportStarForValues10.ts +++ b/tests/cases/compiler/exportStarForValues10.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system // @filename: file0.ts diff --git a/tests/cases/compiler/exportStarForValues2.ts b/tests/cases/compiler/exportStarForValues2.ts index 13f817f786f20..63a880cce0a8f 100644 --- a/tests/cases/compiler/exportStarForValues2.ts +++ b/tests/cases/compiler/exportStarForValues2.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues3.ts b/tests/cases/compiler/exportStarForValues3.ts index cf0834e70db7b..f0c36db0bda04 100644 --- a/tests/cases/compiler/exportStarForValues3.ts +++ b/tests/cases/compiler/exportStarForValues3.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues4.ts b/tests/cases/compiler/exportStarForValues4.ts index 81e52c0db1946..d685ba1c8a37b 100644 --- a/tests/cases/compiler/exportStarForValues4.ts +++ b/tests/cases/compiler/exportStarForValues4.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues5.ts b/tests/cases/compiler/exportStarForValues5.ts index 712d3cf6d8716..cb716c720021a 100644 --- a/tests/cases/compiler/exportStarForValues5.ts +++ b/tests/cases/compiler/exportStarForValues5.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues6.ts b/tests/cases/compiler/exportStarForValues6.ts index 59696b240b2a0..a623e31f1782f 100644 --- a/tests/cases/compiler/exportStarForValues6.ts +++ b/tests/cases/compiler/exportStarForValues6.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues7.ts b/tests/cases/compiler/exportStarForValues7.ts index 744e4962a1f90..c1343a44119ca 100644 --- a/tests/cases/compiler/exportStarForValues7.ts +++ b/tests/cases/compiler/exportStarForValues7.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues8.ts b/tests/cases/compiler/exportStarForValues8.ts index 26a67ece3245a..0594f8b0877f9 100644 --- a/tests/cases/compiler/exportStarForValues8.ts +++ b/tests/cases/compiler/exportStarForValues8.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValues9.ts b/tests/cases/compiler/exportStarForValues9.ts index 139109cc3cd47..53ffb1b79544e 100644 --- a/tests/cases/compiler/exportStarForValues9.ts +++ b/tests/cases/compiler/exportStarForValues9.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarForValuesInSystem.ts b/tests/cases/compiler/exportStarForValuesInSystem.ts index 5f953b38e31a5..1f60e8dec6fab 100644 --- a/tests/cases/compiler/exportStarForValuesInSystem.ts +++ b/tests/cases/compiler/exportStarForValuesInSystem.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system // @filename: file1.ts diff --git a/tests/cases/compiler/exportStarFromEmptyModule.ts b/tests/cases/compiler/exportStarFromEmptyModule.ts index 5eac2fabe810c..8e4ea8a7b214e 100644 --- a/tests/cases/compiler/exportStarFromEmptyModule.ts +++ b/tests/cases/compiler/exportStarFromEmptyModule.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/exportedBlockScopedDeclarations.ts b/tests/cases/compiler/exportedBlockScopedDeclarations.ts index 52d1e70eaf032..54f43adfe75bf 100644 --- a/tests/cases/compiler/exportedBlockScopedDeclarations.ts +++ b/tests/cases/compiler/exportedBlockScopedDeclarations.ts @@ -1,4 +1,3 @@ -// @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 fdc8b2b4501e3..0f6463f454b66 100644 --- a/tests/cases/compiler/expressionTypeNodeShouldError.ts +++ b/tests/cases/compiler/expressionTypeNodeShouldError.ts @@ -1,4 +1,3 @@ -// @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 89d5a73f6af40..ea4dce154086d 100644 --- a/tests/cases/compiler/expressionsForbiddenInParameterInitializers.ts +++ b/tests/cases/compiler/expressionsForbiddenInParameterInitializers.ts @@ -1,4 +1,3 @@ -// @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 5837bf712ece5..781765257b5e1 100644 --- a/tests/cases/compiler/extendArray.ts +++ b/tests/cases/compiler/extendArray.ts @@ -1,4 +1,3 @@ -// @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 7e0814fcbb90e..1ad9f0552b4d6 100644 --- a/tests/cases/compiler/extendGlobalThis.ts +++ b/tests/cases/compiler/extendGlobalThis.ts @@ -1,4 +1,3 @@ -// @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 1952c193951e4..4949c91cf22eb 100644 --- a/tests/cases/compiler/extendGlobalThis2.ts +++ b/tests/cases/compiler/extendGlobalThis2.ts @@ -1,4 +1,3 @@ -// @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 8d76d2e00e088..7c8ded214a580 100644 --- a/tests/cases/compiler/extendNonClassSymbol2.ts +++ b/tests/cases/compiler/extendNonClassSymbol2.ts @@ -1,4 +1,3 @@ -// @strict: false function Foo() { this.x = 1; } diff --git a/tests/cases/compiler/extendsUntypedModule.ts b/tests/cases/compiler/extendsUntypedModule.ts index 2cc741a2c2345..0ebd9d0f72cf1 100644 --- a/tests/cases/compiler/extendsUntypedModule.ts +++ b/tests/cases/compiler/extendsUntypedModule.ts @@ -1,4 +1,3 @@ -// @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 8fb0782206269..8e512c8a441e1 100644 --- a/tests/cases/compiler/extension.ts +++ b/tests/cases/compiler/extension.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { x; } diff --git a/tests/cases/compiler/externSemantics.ts b/tests/cases/compiler/externSemantics.ts index 47225a4d1b35e..975af849997a2 100644 --- a/tests/cases/compiler/externSemantics.ts +++ b/tests/cases/compiler/externSemantics.ts @@ -1,4 +1,3 @@ -// @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 87c5491f121e8..429f94201572f 100644 --- a/tests/cases/compiler/externSyntax.ts +++ b/tests/cases/compiler/externSyntax.ts @@ -1,4 +1,3 @@ -// @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 691ba545399df..33e1b9894e176 100644 --- a/tests/cases/compiler/externalModuleImmutableBindings.ts +++ b/tests/cases/compiler/externalModuleImmutableBindings.ts @@ -1,4 +1,3 @@ -// @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 569140ca0051d..55922da6ca8e6 100644 --- a/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts +++ b/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts @@ -1,4 +1,3 @@ -// @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 a2b6446c5847e..d8037c61a96c8 100644 --- a/tests/cases/compiler/fallFromLastCase1.ts +++ b/tests/cases/compiler/fallFromLastCase1.ts @@ -1,4 +1,3 @@ -// @strict: false // @noFallthroughCasesInSwitch: true declare function use(a: string); diff --git a/tests/cases/compiler/fallFromLastCase2.ts b/tests/cases/compiler/fallFromLastCase2.ts index cd9f22f1191e4..231d3512dbe92 100644 --- a/tests/cases/compiler/fallFromLastCase2.ts +++ b/tests/cases/compiler/fallFromLastCase2.ts @@ -1,4 +1,3 @@ -// @strict: false // @noFallthroughCasesInSwitch: true declare function use(a: string); diff --git a/tests/cases/compiler/fatarrowfunctions.ts b/tests/cases/compiler/fatarrowfunctions.ts index b08c694a970a4..2afa4c54b4a6a 100644 --- a/tests/cases/compiler/fatarrowfunctions.ts +++ b/tests/cases/compiler/fatarrowfunctions.ts @@ -1,4 +1,3 @@ -// @strict: false function foo(x:any) { return x(); diff --git a/tests/cases/compiler/fatarrowfunctionsErrors.ts b/tests/cases/compiler/fatarrowfunctionsErrors.ts index cc40d69983b51..dde681c7036a0 100644 --- a/tests/cases/compiler/fatarrowfunctionsErrors.ts +++ b/tests/cases/compiler/fatarrowfunctionsErrors.ts @@ -1,4 +1,3 @@ -// @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 30fbd5d8133a2..703854d4ab70a 100644 --- a/tests/cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts +++ b/tests/cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts @@ -1,4 +1,3 @@ -// @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 38030e63d78bd..67bbfeb163943 100644 --- a/tests/cases/compiler/fatarrowfunctionsInFunctions.ts +++ b/tests/cases/compiler/fatarrowfunctionsInFunctions.ts @@ -1,4 +1,3 @@ -// @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 ea0888ac4ba1e..814f1b41619e6 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts @@ -1,4 +1,3 @@ -// @strict: false (arg1?, arg2) => 101; (...arg?) => 102; (...arg) => 103; diff --git a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts index 4699773ba61f3..7e4b30a431cc1 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts @@ -1,4 +1,3 @@ -// @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 80c32b32a55e8..779494197111e 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts @@ -1,2 +1 @@ -// @strict: false (...) => 105; diff --git a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts index b8ff5a1c46e97..b4daf2cc3abfc 100644 --- a/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts +++ b/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts @@ -1,4 +1,3 @@ -// @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 8628be04ac100..8ef0f90318937 100644 --- a/tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts +++ b/tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/findLast.ts b/tests/cases/compiler/findLast.ts index 8e029bb4ce0e3..ad0bddfb092c0 100644 --- a/tests/cases/compiler/findLast.ts +++ b/tests/cases/compiler/findLast.ts @@ -1,4 +1,3 @@ -// @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 17c5d4851675e..d02e434c61c9c 100644 --- a/tests/cases/compiler/fixingTypeParametersRepeatedly1.ts +++ b/tests/cases/compiler/fixingTypeParametersRepeatedly1.ts @@ -1,4 +1,3 @@ -// @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 98a066a073c12..bb51a6a784f88 100644 --- a/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts +++ b/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts @@ -1,4 +1,3 @@ -// @strict: false interface Base { baseProp; } diff --git a/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts b/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts index 719cc262776b9..1ffba2e50c6c2 100644 --- a/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts +++ b/tests/cases/compiler/fixingTypeParametersRepeatedly3.ts @@ -1,4 +1,3 @@ -// @strict: false interface Base { baseProp; } diff --git a/tests/cases/compiler/forIn.ts b/tests/cases/compiler/forIn.ts index 91d1a0a5d6675..8ea9aee493dbc 100644 --- a/tests/cases/compiler/forIn.ts +++ b/tests/cases/compiler/forIn.ts @@ -1,4 +1,3 @@ -// @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 e8ace8b02c568..a0bf14e7b5d10 100644 --- a/tests/cases/compiler/forIn2.ts +++ b/tests/cases/compiler/forIn2.ts @@ -1,3 +1,2 @@ -// @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 561a56061da3c..92ef2b0eb1b1d 100644 --- a/tests/cases/compiler/forInModule.ts +++ b/tests/cases/compiler/forInModule.ts @@ -1,4 +1,3 @@ -// @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 5c42070334f5d..2d127b45bb343 100644 --- a/tests/cases/compiler/forInStatement1.ts +++ b/tests/cases/compiler/forInStatement1.ts @@ -1,4 +1,3 @@ -// @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 a2221bd13468d..adb95b9ae5fb7 100644 --- a/tests/cases/compiler/forInStatement2.ts +++ b/tests/cases/compiler/forInStatement2.ts @@ -1,4 +1,3 @@ -// @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 74c28e4ff2455..9d0441ba3eca5 100644 --- a/tests/cases/compiler/forInStatement3.ts +++ b/tests/cases/compiler/forInStatement3.ts @@ -1,4 +1,3 @@ -// @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 bc1c4b0929fda..4213e8b77feb8 100644 --- a/tests/cases/compiler/forInStatement4.ts +++ b/tests/cases/compiler/forInStatement4.ts @@ -1,4 +1,3 @@ -// @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 a190903ed8dc5..3ac2a94c17c10 100644 --- a/tests/cases/compiler/forInStatement5.ts +++ b/tests/cases/compiler/forInStatement5.ts @@ -1,4 +1,3 @@ -// @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 30789e2a6afeb..c4e2988897ef9 100644 --- a/tests/cases/compiler/forInStatement6.ts +++ b/tests/cases/compiler/forInStatement6.ts @@ -1,4 +1,3 @@ -// @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 55a735b0fe058..381fcc475791c 100644 --- a/tests/cases/compiler/forInStatement7.ts +++ b/tests/cases/compiler/forInStatement7.ts @@ -1,4 +1,3 @@ -// @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 12258d37487d0..14ef4554b06a8 100644 --- a/tests/cases/compiler/forStatementInnerComments.ts +++ b/tests/cases/compiler/forStatementInnerComments.ts @@ -1,4 +1,3 @@ -// @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 48e83e9afec0c..24836852384ff 100644 --- a/tests/cases/compiler/funClodule.ts +++ b/tests/cases/compiler/funClodule.ts @@ -1,4 +1,3 @@ -// @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 cec1b146ce3a1..b4ef1a3cbafc8 100644 --- a/tests/cases/compiler/funcdecl.ts +++ b/tests/cases/compiler/funcdecl.ts @@ -1,4 +1,3 @@ -// @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 d15c88a0d4188..597a0285f8a1f 100644 --- a/tests/cases/compiler/functionAssignment.ts +++ b/tests/cases/compiler/functionAssignment.ts @@ -1,4 +1,3 @@ -// @strict: false function f(n: Function) { } f(function () { }); diff --git a/tests/cases/compiler/functionAssignmentError.ts b/tests/cases/compiler/functionAssignmentError.ts index 4b2ca005403f6..fd91cc2741914 100644 --- a/tests/cases/compiler/functionAssignmentError.ts +++ b/tests/cases/compiler/functionAssignmentError.ts @@ -1,3 +1,2 @@ -// @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 1366ce47f8403..848580db729c8 100644 --- a/tests/cases/compiler/functionCall18.ts +++ b/tests/cases/compiler/functionCall18.ts @@ -1,4 +1,3 @@ -// @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 bb344baa0f8c3..7b253d0c78ffa 100644 --- a/tests/cases/compiler/functionCall5.ts +++ b/tests/cases/compiler/functionCall5.ts @@ -1,4 +1,3 @@ -// @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 14b21237ac099..e36c4ec36ae35 100644 --- a/tests/cases/compiler/functionCall7.ts +++ b/tests/cases/compiler/functionCall7.ts @@ -1,4 +1,3 @@ -// @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 a07dca3a963fb..105fb1acff3fb 100644 --- a/tests/cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts +++ b/tests/cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts @@ -1,4 +1,3 @@ -// @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 ee08de1ca390f..f11519501d047 100644 --- a/tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts +++ b/tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts @@ -1,4 +1,3 @@ -// @strict: false class CDoc { constructor() { function doSomething(a: Function) { diff --git a/tests/cases/compiler/functionExpressionNames.ts b/tests/cases/compiler/functionExpressionNames.ts index 052fc04a29072..93c5f228da5c6 100644 --- a/tests/cases/compiler/functionExpressionNames.ts +++ b/tests/cases/compiler/functionExpressionNames.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/compiler/functionInIfStatementInModule.ts b/tests/cases/compiler/functionInIfStatementInModule.ts index 1851d511e4296..485928b0b9892 100644 --- a/tests/cases/compiler/functionInIfStatementInModule.ts +++ b/tests/cases/compiler/functionInIfStatementInModule.ts @@ -1,4 +1,3 @@ -// @strict: false namespace Midori { diff --git a/tests/cases/compiler/functionOverloadAmbiguity1.ts b/tests/cases/compiler/functionOverloadAmbiguity1.ts index 54aceeb2e9920..019ea748f2c80 100644 --- a/tests/cases/compiler/functionOverloadAmbiguity1.ts +++ b/tests/cases/compiler/functionOverloadAmbiguity1.ts @@ -1,4 +1,3 @@ -// @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 8171f94163b30..50458f6ea9903 100644 --- a/tests/cases/compiler/functionOverloadImplementationOfWrongName.ts +++ b/tests/cases/compiler/functionOverloadImplementationOfWrongName.ts @@ -1,4 +1,3 @@ -// @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 43957b9967015..b62b8d01deb47 100644 --- a/tests/cases/compiler/functionOverloadImplementationOfWrongName2.ts +++ b/tests/cases/compiler/functionOverloadImplementationOfWrongName2.ts @@ -1,4 +1,3 @@ -// @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 77f91d152b517..8bbb452d9be0a 100644 --- a/tests/cases/compiler/functionOverloads1.ts +++ b/tests/cases/compiler/functionOverloads1.ts @@ -1,4 +1,3 @@ -// @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 13871c12a766a..1c0bbbfc7d45d 100644 --- a/tests/cases/compiler/functionOverloads10.ts +++ b/tests/cases/compiler/functionOverloads10.ts @@ -1,4 +1,3 @@ -// @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 e6aee444f8331..e70b2140e758b 100644 --- a/tests/cases/compiler/functionOverloads11.ts +++ b/tests/cases/compiler/functionOverloads11.ts @@ -1,3 +1,2 @@ -// @strict: false function foo():number; function foo():string { return "" } diff --git a/tests/cases/compiler/functionOverloads12.ts b/tests/cases/compiler/functionOverloads12.ts index 44284ddc6fecd..48a8af06cc5de 100644 --- a/tests/cases/compiler/functionOverloads12.ts +++ b/tests/cases/compiler/functionOverloads12.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: true function foo():string; diff --git a/tests/cases/compiler/functionOverloads13.ts b/tests/cases/compiler/functionOverloads13.ts index db3b386844ed0..b5bd8cd2ec266 100644 --- a/tests/cases/compiler/functionOverloads13.ts +++ b/tests/cases/compiler/functionOverloads13.ts @@ -1,4 +1,3 @@ -// @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 ee96f58580bd6..7159f1d106cd0 100644 --- a/tests/cases/compiler/functionOverloads14.ts +++ b/tests/cases/compiler/functionOverloads14.ts @@ -1,4 +1,3 @@ -// @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 70bf3d5973864..841fc2442fd6b 100644 --- a/tests/cases/compiler/functionOverloads15.ts +++ b/tests/cases/compiler/functionOverloads15.ts @@ -1,4 +1,3 @@ -// @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 b98234dc94971..c2331fe90db4e 100644 --- a/tests/cases/compiler/functionOverloads16.ts +++ b/tests/cases/compiler/functionOverloads16.ts @@ -1,4 +1,3 @@ -// @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 067e1cceca61e..73e329ad50198 100644 --- a/tests/cases/compiler/functionOverloads17.ts +++ b/tests/cases/compiler/functionOverloads17.ts @@ -1,3 +1,2 @@ -// @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 ff7d289970e75..a426746338540 100644 --- a/tests/cases/compiler/functionOverloads18.ts +++ b/tests/cases/compiler/functionOverloads18.ts @@ -1,3 +1,2 @@ -// @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 c7eee85a638de..a593090f63f93 100644 --- a/tests/cases/compiler/functionOverloads19.ts +++ b/tests/cases/compiler/functionOverloads19.ts @@ -1,4 +1,3 @@ -// @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 965df6688011c..ec306db40e486 100644 --- a/tests/cases/compiler/functionOverloads21.ts +++ b/tests/cases/compiler/functionOverloads21.ts @@ -1,4 +1,3 @@ -// @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 9c25252adb7b0..5432b76137f81 100644 --- a/tests/cases/compiler/functionOverloads23.ts +++ b/tests/cases/compiler/functionOverloads23.ts @@ -1,4 +1,3 @@ -// @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 df1b340b03941..44aac5ced2133 100644 --- a/tests/cases/compiler/functionOverloads24.ts +++ b/tests/cases/compiler/functionOverloads24.ts @@ -1,4 +1,3 @@ -// @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 7407c61cd2ee6..20a7ed540f0fd 100644 --- a/tests/cases/compiler/functionOverloads44.ts +++ b/tests/cases/compiler/functionOverloads44.ts @@ -1,4 +1,3 @@ -// @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 f03cfd5919423..6210bd13427e5 100644 --- a/tests/cases/compiler/functionOverloads45.ts +++ b/tests/cases/compiler/functionOverloads45.ts @@ -1,4 +1,3 @@ -// @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 56d586800203d..77dcfe5b6d8c0 100644 --- a/tests/cases/compiler/functionOverloads5.ts +++ b/tests/cases/compiler/functionOverloads5.ts @@ -1,4 +1,3 @@ -// @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 2d7b5737fecc3..dc64d397906c4 100644 --- a/tests/cases/compiler/functionOverloads6.ts +++ b/tests/cases/compiler/functionOverloads6.ts @@ -1,4 +1,3 @@ -// @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 d22b3286f9445..bb76547f9cb48 100644 --- a/tests/cases/compiler/functionOverloads7.ts +++ b/tests/cases/compiler/functionOverloads7.ts @@ -1,4 +1,3 @@ -// @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 4d08f2ad8648b..2cf4a810bcb45 100644 --- a/tests/cases/compiler/functionOverloads8.ts +++ b/tests/cases/compiler/functionOverloads8.ts @@ -1,4 +1,3 @@ -// @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 2ab5f719610ae..a770eba46e692 100644 --- a/tests/cases/compiler/functionOverloads9.ts +++ b/tests/cases/compiler/functionOverloads9.ts @@ -1,4 +1,3 @@ -// @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 f5d99ddafedc0..1bb627b64f861 100644 --- a/tests/cases/compiler/functionParameterArityMismatch.ts +++ b/tests/cases/compiler/functionParameterArityMismatch.ts @@ -1,4 +1,3 @@ -// @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 10cf42faceb45..d70e385aabc68 100644 --- a/tests/cases/compiler/functionSubtypingOfVarArgs.ts +++ b/tests/cases/compiler/functionSubtypingOfVarArgs.ts @@ -1,4 +1,3 @@ -// @strict: false class EventBase { private _listeners = []; diff --git a/tests/cases/compiler/functionSubtypingOfVarArgs2.ts b/tests/cases/compiler/functionSubtypingOfVarArgs2.ts index 91e5c65891c47..994dfb9c5e231 100644 --- a/tests/cases/compiler/functionSubtypingOfVarArgs2.ts +++ b/tests/cases/compiler/functionSubtypingOfVarArgs2.ts @@ -1,4 +1,3 @@ -// @strict: false class EventBase { private _listeners: { (...args: any[]): void; }[] = []; diff --git a/tests/cases/compiler/functionTypeArgumentArityErrors.ts b/tests/cases/compiler/functionTypeArgumentArityErrors.ts index 39caf72fe0f45..5cf681effa61d 100644 --- a/tests/cases/compiler/functionTypeArgumentArityErrors.ts +++ b/tests/cases/compiler/functionTypeArgumentArityErrors.ts @@ -1,4 +1,3 @@ -// @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 5aebd338719fe..f1dac4712876f 100644 --- a/tests/cases/compiler/functionTypesLackingReturnTypes.ts +++ b/tests/cases/compiler/functionTypesLackingReturnTypes.ts @@ -1,4 +1,3 @@ -// @strict: false // Error (no '=>') function f(x: ()) { diff --git a/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts b/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts index 700589f94929e..ae0689a7e29a4 100644 --- a/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts +++ b/tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts @@ -1,4 +1,3 @@ -// @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 d928ac3377cc1..a79170c685481 100644 --- a/tests/cases/compiler/generatorES6InAMDModule.ts +++ b/tests/cases/compiler/generatorES6InAMDModule.ts @@ -1,4 +1,3 @@ -// @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 f5072999f4acb..1f2137b8403d6 100644 --- a/tests/cases/compiler/generatorES6_1.ts +++ b/tests/cases/compiler/generatorES6_1.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es6 function* foo() { yield diff --git a/tests/cases/compiler/generatorES6_6.ts b/tests/cases/compiler/generatorES6_6.ts index 1a91195128871..708e0e9d52560 100644 --- a/tests/cases/compiler/generatorES6_6.ts +++ b/tests/cases/compiler/generatorES6_6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es6 class C { *[Symbol.iterator]() { diff --git a/tests/cases/compiler/genericCallWithFixedArguments.ts b/tests/cases/compiler/genericCallWithFixedArguments.ts index f5cfd48bb3bd5..35f19f44886e1 100644 --- a/tests/cases/compiler/genericCallWithFixedArguments.ts +++ b/tests/cases/compiler/genericCallWithFixedArguments.ts @@ -1,4 +1,3 @@ -// @strict: false class A { foo() { } } class B { bar() { }} diff --git a/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts b/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts index 3500a01db8079..ae0763e712f8e 100644 --- a/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts +++ b/tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts @@ -1,4 +1,3 @@ -// @strict: false interface KnockoutObservableBase { peek(): T; (): T; diff --git a/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts b/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts index 7f2638de366ae..08e22f5d64cc5 100644 --- a/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts +++ b/tests/cases/compiler/genericClassWithStaticsUsingTypeArguments.ts @@ -1,4 +1,3 @@ -// @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 92d2bccbb254d..8894c3dc38f70 100644 --- a/tests/cases/compiler/genericClassesInModule2.ts +++ b/tests/cases/compiler/genericClassesInModule2.ts @@ -1,4 +1,3 @@ -// @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 a939b269a073c..7d739da094bd3 100644 --- a/tests/cases/compiler/genericConstraint2.ts +++ b/tests/cases/compiler/genericConstraint2.ts @@ -1,4 +1,3 @@ -// @strict: false interface Comparable { comparer(other: T): number; } diff --git a/tests/cases/compiler/genericConstructSignatureInInterface.ts b/tests/cases/compiler/genericConstructSignatureInInterface.ts index c1dd467483a20..b347fd3d80518 100644 --- a/tests/cases/compiler/genericConstructSignatureInInterface.ts +++ b/tests/cases/compiler/genericConstructSignatureInInterface.ts @@ -1,4 +1,3 @@ -// @strict: false interface C { new (x: T); } diff --git a/tests/cases/compiler/genericDefaultsJs.ts b/tests/cases/compiler/genericDefaultsJs.ts index a433ca249e74b..6aa3640d96195 100644 --- a/tests/cases/compiler/genericDefaultsJs.ts +++ b/tests/cases/compiler/genericDefaultsJs.ts @@ -1,4 +1,3 @@ -// @strict: false // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/tests/cases/compiler/genericFunctionSpecializations1.ts b/tests/cases/compiler/genericFunctionSpecializations1.ts index abb63a16245dc..7023b9d045ce2 100644 --- a/tests/cases/compiler/genericFunctionSpecializations1.ts +++ b/tests/cases/compiler/genericFunctionSpecializations1.ts @@ -1,4 +1,3 @@ -// @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 b2468e06352bb..b6b76669b4227 100644 --- a/tests/cases/compiler/genericImplements.ts +++ b/tests/cases/compiler/genericImplements.ts @@ -1,4 +1,3 @@ -// @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 f855f13bba616..a655d2f5ab0c2 100644 --- a/tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts +++ b/tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts @@ -1,4 +1,3 @@ -// @strict: false interface Foo { x: T; } diff --git a/tests/cases/compiler/genericOverloadSignatures.ts b/tests/cases/compiler/genericOverloadSignatures.ts index 0da4233de63fe..e68e931e384f9 100644 --- a/tests/cases/compiler/genericOverloadSignatures.ts +++ b/tests/cases/compiler/genericOverloadSignatures.ts @@ -1,4 +1,3 @@ -// @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 e8af247dc2735..ba3c22d55430f 100644 --- a/tests/cases/compiler/genericPrototypeProperty2.ts +++ b/tests/cases/compiler/genericPrototypeProperty2.ts @@ -1,4 +1,3 @@ -// @strict: false interface EventTarget { x } class BaseEvent { target: EventTarget; diff --git a/tests/cases/compiler/genericTypeAssertions3.ts b/tests/cases/compiler/genericTypeAssertions3.ts index b4943b27ddd60..b9d4cccd5a447 100644 --- a/tests/cases/compiler/genericTypeAssertions3.ts +++ b/tests/cases/compiler/genericTypeAssertions3.ts @@ -1,3 +1,2 @@ -// @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 866a1fb080fe0..358274a7bfc7c 100644 --- a/tests/cases/compiler/genericTypeAssertions6.ts +++ b/tests/cases/compiler/genericTypeAssertions6.ts @@ -1,4 +1,3 @@ -// @strict: false class A { constructor(x) { var y = x; diff --git a/tests/cases/compiler/genericTypeParameterEquivalence2.ts b/tests/cases/compiler/genericTypeParameterEquivalence2.ts index 1c46d9e8c8e4b..7557e0b8fe733 100644 --- a/tests/cases/compiler/genericTypeParameterEquivalence2.ts +++ b/tests/cases/compiler/genericTypeParameterEquivalence2.ts @@ -1,4 +1,3 @@ -// @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 91d11a2649ddd..5d4797b352862 100644 --- a/tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts +++ b/tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts @@ -1,4 +1,3 @@ -// @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 f1d859dbb8b7c..bae36677f8eb3 100644 --- a/tests/cases/compiler/getAndSetAsMemberNames.ts +++ b/tests/cases/compiler/getAndSetAsMemberNames.ts @@ -1,4 +1,3 @@ -// @strict: false class C1 { set: boolean; get = 1; diff --git a/tests/cases/compiler/getterSetterNonAccessor.ts b/tests/cases/compiler/getterSetterNonAccessor.ts index 302d248f1f4ec..4e52d5f90d372 100644 --- a/tests/cases/compiler/getterSetterNonAccessor.ts +++ b/tests/cases/compiler/getterSetterNonAccessor.ts @@ -1,4 +1,3 @@ -// @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 aa75660d63673..a7087654ec0d0 100644 --- a/tests/cases/compiler/giant.ts +++ b/tests/cases/compiler/giant.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @declaration: true diff --git a/tests/cases/compiler/globalThisCapture.ts b/tests/cases/compiler/globalThisCapture.ts index 3376fcc329c6c..37ad3b169d538 100644 --- a/tests/cases/compiler/globalThisCapture.ts +++ b/tests/cases/compiler/globalThisCapture.ts @@ -1,4 +1,3 @@ -// @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 e59aff5ac4905..9634e4088c3d0 100644 --- a/tests/cases/compiler/grammarAmbiguities1.ts +++ b/tests/cases/compiler/grammarAmbiguities1.ts @@ -1,4 +1,3 @@ -// @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 4dc827b104b7e..8949acc0f3523 100644 --- a/tests/cases/compiler/heterogeneousArrayAndOverloads.ts +++ b/tests/cases/compiler/heterogeneousArrayAndOverloads.ts @@ -1,4 +1,3 @@ -// @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 2661c9aeccfbc..6391fcd6c8149 100644 --- a/tests/cases/compiler/icomparable.ts +++ b/tests/cases/compiler/icomparable.ts @@ -1,4 +1,3 @@ -// @strict: false interface IComparable { compareTo(other: T); } diff --git a/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts b/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts index 924f1389ead99..e6cead432c34a 100644 --- a/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts +++ b/tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { foo(value: number); } diff --git a/tests/cases/compiler/importHelpersES6.ts b/tests/cases/compiler/importHelpersES6.ts index 565e71057a376..3655aa77420a6 100644 --- a/tests/cases/compiler/importHelpersES6.ts +++ b/tests/cases/compiler/importHelpersES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @importHelpers: true // @target: es6 // @experimentalDecorators: true diff --git a/tests/cases/compiler/inOperator.ts b/tests/cases/compiler/inOperator.ts index 4dff7752b6ead..74b2c620cf913 100644 --- a/tests/cases/compiler/inOperator.ts +++ b/tests/cases/compiler/inOperator.ts @@ -1,4 +1,3 @@ -// @strict: false var a=[]; for (var x in a) {} diff --git a/tests/cases/compiler/inOperatorWithFunction.ts b/tests/cases/compiler/inOperatorWithFunction.ts index 915a907fcd444..87f88ce25dd21 100644 --- a/tests/cases/compiler/inOperatorWithFunction.ts +++ b/tests/cases/compiler/inOperatorWithFunction.ts @@ -1,3 +1,2 @@ -// @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 b99346d1a8cae..8dd1bc29d8a53 100644 --- a/tests/cases/compiler/inOperatorWithGeneric.ts +++ b/tests/cases/compiler/inOperatorWithGeneric.ts @@ -1,4 +1,3 @@ -// @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 4506bec425eff..4dbc578cc99c0 100644 --- a/tests/cases/compiler/incompatibleTypes.ts +++ b/tests/cases/compiler/incompatibleTypes.ts @@ -1,4 +1,3 @@ -// @strict: false interface IFoo1 { p1(): number; } diff --git a/tests/cases/compiler/incorrectClassOverloadChain.ts b/tests/cases/compiler/incorrectClassOverloadChain.ts index fa1244e4f11cd..3315e96be3e2d 100644 --- a/tests/cases/compiler/incorrectClassOverloadChain.ts +++ b/tests/cases/compiler/incorrectClassOverloadChain.ts @@ -1,4 +1,3 @@ -// @strict: false class C { foo(): string; foo(x): number; diff --git a/tests/cases/compiler/indexClassByNumber.ts b/tests/cases/compiler/indexClassByNumber.ts index 892b8748a22a8..021a9dcadf51c 100644 --- a/tests/cases/compiler/indexClassByNumber.ts +++ b/tests/cases/compiler/indexClassByNumber.ts @@ -1,4 +1,3 @@ -// @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 a9f3626cb9100..825713a91165a 100644 --- a/tests/cases/compiler/indexTypeCheck.ts +++ b/tests/cases/compiler/indexTypeCheck.ts @@ -1,4 +1,3 @@ -// @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 6be193331451d..7b0462ac1989b 100644 --- a/tests/cases/compiler/indexerSignatureWithRestParam.ts +++ b/tests/cases/compiler/indexerSignatureWithRestParam.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { [...x]: string; } diff --git a/tests/cases/compiler/indirectTypeParameterReferences.ts b/tests/cases/compiler/indirectTypeParameterReferences.ts index 9dc8f8f2f1bcf..c8cb56ad5e714 100644 --- a/tests/cases/compiler/indirectTypeParameterReferences.ts +++ b/tests/cases/compiler/indirectTypeParameterReferences.ts @@ -1,4 +1,3 @@ -// @strict: false // Repro from #19043 type B = {b: string} diff --git a/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts b/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts index 669d562e3bd8c..ab5f2618d30fe 100644 --- a/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts +++ b/tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts @@ -1,4 +1,3 @@ -// @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 b596047a4791e..9281075d3d891 100644 --- a/tests/cases/compiler/inferSecondaryParameter.ts +++ b/tests/cases/compiler/inferSecondaryParameter.ts @@ -1,4 +1,3 @@ -// @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 e1ad64044fd8c..81f9f362058cf 100644 --- a/tests/cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts +++ b/tests/cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts @@ -1,4 +1,3 @@ -// @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 aacc5ddda5e27..adaf13bad2225 100644 --- a/tests/cases/compiler/inferenceLimit.ts +++ b/tests/cases/compiler/inferenceLimit.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es6 // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts b/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts index 5b0c907da4588..85b66f9219285 100644 --- a/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts +++ b/tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts @@ -1,4 +1,3 @@ -// @strict: false interface Int { method(x: T): U; } diff --git a/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts b/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts index 5fc5ef31b4403..dee3db70c2437 100644 --- a/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts +++ b/tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts @@ -1,4 +1,3 @@ -// @strict: false interface Int { [s: string]: (x: T) => U; } diff --git a/tests/cases/compiler/inheritance.ts b/tests/cases/compiler/inheritance.ts index 0ba226565699d..3910df5c821bc 100644 --- a/tests/cases/compiler/inheritance.ts +++ b/tests/cases/compiler/inheritance.ts @@ -1,4 +1,3 @@ -// @strict: false class B1 { public x; } diff --git a/tests/cases/compiler/inheritance1.ts b/tests/cases/compiler/inheritance1.ts index cb2677a7ae568..1f1b1207e61f6 100644 --- a/tests/cases/compiler/inheritance1.ts +++ b/tests/cases/compiler/inheritance1.ts @@ -1,4 +1,3 @@ -// @strict: false class Control { private state: any; } diff --git a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts index 48b17d5090d6a..45f5a18bff5db 100644 --- a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts +++ b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts @@ -1,4 +1,3 @@ -// @strict: false class A { private myMethod() { } } diff --git a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts index 474f247145806..c0fc0ecc154a6 100644 --- a/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts +++ b/tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts @@ -1,4 +1,3 @@ -// @strict: false class A { private myMethod() { } } diff --git a/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts b/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts index d03a7779e13d2..cda344dd6cba1 100644 --- a/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts +++ b/tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts @@ -1,4 +1,3 @@ -// @strict: false class A { public myMethod() { } } diff --git a/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts b/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts index f16853e16cd59..7585ef2257d8b 100644 --- a/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceMemberAccessorOverridingAccessor.ts @@ -1,4 +1,3 @@ -// @strict: false class a { get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts b/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts index a3be64bd5a447..5684276beb2ca 100644 --- a/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 class a { x() { diff --git a/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts b/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts index d0e9261ebf662..69267c2db07da 100644 --- a/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class a { x: string; } diff --git a/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts b/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts index 70b058adfb0fe..12cd7345e93fd 100644 --- a/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts @@ -1,4 +1,3 @@ -// @strict: false class a { get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts b/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts index 59458842d0bc5..1b8d908794ebe 100644 --- a/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts @@ -1,4 +1,3 @@ -// @strict: false class a { x() { return "10"; diff --git a/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts b/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts index ddc60b5c523e9..91080f46e2555 100644 --- a/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class a { x: () => string; } diff --git a/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts b/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts index da5d997b2a4ee..e3f13bd2e393f 100644 --- a/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts @@ -1,4 +1,3 @@ -// @strict: false class a { private __x: () => string; get x() { diff --git a/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts b/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts index f19d4ddcf126c..719fa338b9d00 100644 --- a/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceMemberPropertyOverridingMethod.ts @@ -1,4 +1,3 @@ -// @strict: false class a { x() { return "20"; diff --git a/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts b/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts index fd5da19bef1e7..46dbdf0ab7ac7 100644 --- a/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class a { x: () => string; } diff --git a/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts b/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts index de0bd19214ae4..66473808cda82 100644 --- a/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts +++ b/tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts @@ -1,4 +1,3 @@ -// @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 d72cbb119702e..8b5f53695fbfd 100644 --- a/tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts +++ b/tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts @@ -1,4 +1,3 @@ -// @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 db38768e5cefb..c2b3072d820dc 100644 --- a/tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts b/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts index 7ea35654a5fc8..d0463f36b4590 100644 --- a/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceStaticAccessorOverridingMethod.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts b/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts index e6e8185e3620f..c438812a7a54b 100644 --- a/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceStaticAccessorOverridingProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x: string; } diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts index cd2b407f1b04d..b5f610c00ead7 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static get x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts index 6b0a1f60cb08d..2518620041c75 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts @@ -1,4 +1,3 @@ -// @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 4e33e346d4080..f58342b72ae62 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x() { return "10"; diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts index f42b4b6049aa5..1f0018cfe6122 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x: string; } diff --git a/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts b/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts index 683633379cfcd..c75d965fb29fc 100644 --- a/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts +++ b/tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x: () => string; } diff --git a/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts b/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts index 5665700bd4118..40f9c6dc1ca96 100644 --- a/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts +++ b/tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class a { x: string; } diff --git a/tests/cases/compiler/inheritanceStaticMembersCompatible.ts b/tests/cases/compiler/inheritanceStaticMembersCompatible.ts index e766aa933916a..96f431f42030b 100644 --- a/tests/cases/compiler/inheritanceStaticMembersCompatible.ts +++ b/tests/cases/compiler/inheritanceStaticMembersCompatible.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x: a; } diff --git a/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts b/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts index 2f0681e2c904f..3f382983daad1 100644 --- a/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts +++ b/tests/cases/compiler/inheritanceStaticMembersIncompatible.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x: string; } diff --git a/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts b/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts index 217736f85614a..e325ae4582aad 100644 --- a/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts +++ b/tests/cases/compiler/inheritanceStaticPropertyOverridingAccessor.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: true class a { diff --git a/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts b/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts index 455987988098f..5477b3ec50511 100644 --- a/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts +++ b/tests/cases/compiler/inheritanceStaticPropertyOverridingMethod.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x() { return "20"; diff --git a/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts b/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts index e48e4a1b31028..6d3267098befb 100644 --- a/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts +++ b/tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class a { static x: () => string; } diff --git a/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts b/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts index 6f55e76321699..3d55b39a26beb 100644 --- a/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts +++ b/tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts @@ -1,4 +1,3 @@ -// @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 958736e0c78d7..0aa06dcb2305d 100644 --- a/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases.ts +++ b/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases.ts @@ -1,4 +1,3 @@ -// @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 e87dab3bea66c..28504055dbe3a 100644 --- a/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts +++ b/tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts @@ -1,4 +1,3 @@ -// @strict: false interface A { [n: number]: T; } diff --git a/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts b/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts index db89fb8d1e828..1f4f425527514 100644 --- a/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts +++ b/tests/cases/compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts @@ -1,4 +1,3 @@ -// @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 de9406298e762..212181124aeeb 100644 --- a/tests/cases/compiler/innerExtern.ts +++ b/tests/cases/compiler/innerExtern.ts @@ -1,4 +1,3 @@ -// @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 2f460c0710443..553fbdc6e864e 100644 --- a/tests/cases/compiler/innerOverloads.ts +++ b/tests/cases/compiler/innerOverloads.ts @@ -1,4 +1,3 @@ -// @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 b3070a3fe05ec..fdbc17124bb84 100644 --- a/tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts +++ b/tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts @@ -1,4 +1,3 @@ -// @strict: false function takesCallback(callback: (n) =>any) { } diff --git a/tests/cases/compiler/instanceOfAssignability.ts b/tests/cases/compiler/instanceOfAssignability.ts index 6f688868d79f7..909de1ff2a7b0 100644 --- a/tests/cases/compiler/instanceOfAssignability.ts +++ b/tests/cases/compiler/instanceOfAssignability.ts @@ -1,4 +1,3 @@ -// @strict: false interface Base { foo: string|number; optional?: number; diff --git a/tests/cases/compiler/intTypeCheck.ts b/tests/cases/compiler/intTypeCheck.ts index aeb6077461aee..39f9356a6e108 100644 --- a/tests/cases/compiler/intTypeCheck.ts +++ b/tests/cases/compiler/intTypeCheck.ts @@ -1,4 +1,3 @@ -// @strict: false interface i1 { //Property Signatures p; diff --git a/tests/cases/compiler/interfaceImplementation1.ts b/tests/cases/compiler/interfaceImplementation1.ts index c62eb0a63630c..6b415774bb62e 100644 --- a/tests/cases/compiler/interfaceImplementation1.ts +++ b/tests/cases/compiler/interfaceImplementation1.ts @@ -1,4 +1,3 @@ -// @strict: false interface I1 { iObj:{ }; iNum:number; diff --git a/tests/cases/compiler/interfaceOnly.ts b/tests/cases/compiler/interfaceOnly.ts index 8a89503d3d1ae..0a48807e460df 100644 --- a/tests/cases/compiler/interfaceOnly.ts +++ b/tests/cases/compiler/interfaceOnly.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface foo { foo(); diff --git a/tests/cases/compiler/interfaceWithCommaSeparators.ts b/tests/cases/compiler/interfaceWithCommaSeparators.ts index 18511002e1bc8..03ae5480ef18d 100644 --- a/tests/cases/compiler/interfaceWithCommaSeparators.ts +++ b/tests/cases/compiler/interfaceWithCommaSeparators.ts @@ -1,3 +1,2 @@ -// @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 f335e5724523b..f08124e893749 100644 --- a/tests/cases/compiler/interfacedecl.ts +++ b/tests/cases/compiler/interfacedecl.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface a0 { (): string; diff --git a/tests/cases/compiler/interfacedeclWithIndexerErrors.ts b/tests/cases/compiler/interfacedeclWithIndexerErrors.ts index 1f3c0ef52b3df..054d5e044ac1b 100644 --- a/tests/cases/compiler/interfacedeclWithIndexerErrors.ts +++ b/tests/cases/compiler/interfacedeclWithIndexerErrors.ts @@ -1,4 +1,3 @@ -// @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 37e0dd39ad360..eec8d3420e9f7 100644 --- a/tests/cases/compiler/internalAliasUninitializedModule.ts +++ b/tests/cases/compiler/internalAliasUninitializedModule.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true namespace a { export namespace b { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts index ee357313fb94d..9c148ca2d2e48 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts index 875d96e6a7d8b..b7d84962869fc 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts index 69c8e110af420..c21c4d619dcab 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts @@ -1,4 +1,3 @@ -// @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 a27d7381255c9..9ef9aba771d68 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts b/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts index 8b2f3c1928d7f..03d2121e7b1ed 100644 --- a/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts +++ b/tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @declaration: true export namespace a { diff --git a/tests/cases/compiler/internalAliasWithDottedNameEmit.ts b/tests/cases/compiler/internalAliasWithDottedNameEmit.ts index a11529a857011..ee7e3fbb1946b 100644 --- a/tests/cases/compiler/internalAliasWithDottedNameEmit.ts +++ b/tests/cases/compiler/internalAliasWithDottedNameEmit.ts @@ -1,4 +1,3 @@ -// @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 8fdafd6e81c3f..0a1f9431b4dc9 100644 --- a/tests/cases/compiler/intrinsics.ts +++ b/tests/cases/compiler/intrinsics.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true var hasOwnProperty: hasOwnProperty; // Error diff --git a/tests/cases/compiler/invalidConstraint1.ts b/tests/cases/compiler/invalidConstraint1.ts index c47ba8bd0a049..074663010b5db 100644 --- a/tests/cases/compiler/invalidConstraint1.ts +++ b/tests/cases/compiler/invalidConstraint1.ts @@ -1,4 +1,3 @@ -// @strict: false function f() { return undefined; } diff --git a/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts b/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts index ccc2cb386004b..b905981eceffc 100644 --- a/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts +++ b/tests/cases/compiler/isolatedDeclarationErrorsFunctionDeclarations.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @isolatedDeclarations: true // @declarationMap: false diff --git a/tests/cases/compiler/isolatedDeclarationLazySymbols.ts b/tests/cases/compiler/isolatedDeclarationLazySymbols.ts index 2195df64f1ff4..adee6b230cb48 100644 --- a/tests/cases/compiler/isolatedDeclarationLazySymbols.ts +++ b/tests/cases/compiler/isolatedDeclarationLazySymbols.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @isolatedDeclarations: true // @target: ESNext diff --git a/tests/cases/compiler/isolatedDeclarationsAllowJs.ts b/tests/cases/compiler/isolatedDeclarationsAllowJs.ts index 789e864a9d487..7b4704609a5bd 100644 --- a/tests/cases/compiler/isolatedDeclarationsAllowJs.ts +++ b/tests/cases/compiler/isolatedDeclarationsAllowJs.ts @@ -1,4 +1,3 @@ -// @strict: false // @isolatedDeclarations: true // @allowJS: true // @declaration: true diff --git a/tests/cases/compiler/isolatedModulesDeclaration.ts b/tests/cases/compiler/isolatedModulesDeclaration.ts index a83a054162854..3d5e7db9b4f86 100644 --- a/tests/cases/compiler/isolatedModulesDeclaration.ts +++ b/tests/cases/compiler/isolatedModulesDeclaration.ts @@ -1,4 +1,3 @@ -// @strict: false // @isolatedModules: true // @declaration: true // @target: es6 diff --git a/tests/cases/compiler/isolatedModulesES6.ts b/tests/cases/compiler/isolatedModulesES6.ts index 30ba7f76cf9e3..12e8d8adb7f8b 100644 --- a/tests/cases/compiler/isolatedModulesES6.ts +++ b/tests/cases/compiler/isolatedModulesES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @isolatedModules: true // @target: es6 // @filename: file1.ts diff --git a/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts b/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts index 7d563f07bd9cb..d5aae618d8ff6 100644 --- a/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts +++ b/tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts @@ -1,4 +1,3 @@ -// @strict: false // @isolatedModules: true // @target: es6 diff --git a/tests/cases/compiler/isolatedModulesOut.ts b/tests/cases/compiler/isolatedModulesOut.ts index 46455a051c1bf..c977a4b54da66 100644 --- a/tests/cases/compiler/isolatedModulesOut.ts +++ b/tests/cases/compiler/isolatedModulesOut.ts @@ -1,4 +1,3 @@ -// @strict: false // @isolatedModules: true // @out:all.js // @target: es6 diff --git a/tests/cases/compiler/isolatedModulesSpecifiedModule.ts b/tests/cases/compiler/isolatedModulesSpecifiedModule.ts index d128f5aa02f05..0e72e6480b6c6 100644 --- a/tests/cases/compiler/isolatedModulesSpecifiedModule.ts +++ b/tests/cases/compiler/isolatedModulesSpecifiedModule.ts @@ -1,4 +1,3 @@ -// @strict: false // @isolatedModules: true // @module: commonjs // @filename: file1.ts diff --git a/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts b/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts index 48624333e5806..2435f22e952c2 100644 --- a/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts +++ b/tests/cases/compiler/isolatedModulesUnspecifiedModule.ts @@ -1,4 +1,3 @@ -// @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 e5f96f03b8326..01e96b4ec2a63 100644 --- a/tests/cases/compiler/isolatedModulesWithDeclarationFile.ts +++ b/tests/cases/compiler/isolatedModulesWithDeclarationFile.ts @@ -1,4 +1,3 @@ -// @strict: false // @isolatedModules: true // @target: es6 diff --git a/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts b/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts index 94363b7b63378..f86508dc9860c 100644 --- a/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts +++ b/tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @declaration: true diff --git a/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts b/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts index 2488cb41dda7e..73f9a5453e481 100644 --- a/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts +++ b/tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts @@ -1,4 +1,3 @@ -// @strict: false // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts b/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts index 3ec23d3b7e1ce..29dfd68bb0411 100644 --- a/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts +++ b/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts b/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts index ca6ba94501b81..527927be6e6f5 100644 --- a/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts +++ b/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsFileESModuleWithEnumTag.ts b/tests/cases/compiler/jsFileESModuleWithEnumTag.ts index ca26c6ea43d00..dd6d0b90d69b2 100644 --- a/tests/cases/compiler/jsFileESModuleWithEnumTag.ts +++ b/tests/cases/compiler/jsFileESModuleWithEnumTag.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsNegativeElementAccessNotBound.ts b/tests/cases/compiler/jsNegativeElementAccessNotBound.ts index eaa731496e968..c7a204e578fb0 100644 --- a/tests/cases/compiler/jsNegativeElementAccessNotBound.ts +++ b/tests/cases/compiler/jsNegativeElementAccessNotBound.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsdocInTypeScript.ts b/tests/cases/compiler/jsdocInTypeScript.ts index 9750d63d63e6e..be485f59c5540 100644 --- a/tests/cases/compiler/jsdocInTypeScript.ts +++ b/tests/cases/compiler/jsdocInTypeScript.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es2015 // @traceResolution: true diff --git a/tests/cases/compiler/jsdocParamTagInvalid.ts b/tests/cases/compiler/jsdocParamTagInvalid.ts index 164ead9b68f46..79e17bf8ff18b 100644 --- a/tests/cases/compiler/jsdocParamTagInvalid.ts +++ b/tests/cases/compiler/jsdocParamTagInvalid.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsdocParameterParsingInvalidName.ts b/tests/cases/compiler/jsdocParameterParsingInvalidName.ts index 4e1019dffe34c..6c3c93d182e65 100644 --- a/tests/cases/compiler/jsdocParameterParsingInvalidName.ts +++ b/tests/cases/compiler/jsdocParameterParsingInvalidName.ts @@ -1,4 +1,3 @@ -// @strict: false class c { /** * @param {string} [`foo] diff --git a/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts b/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts index 9ac5aaf083d89..bcabe980915d0 100644 --- a/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts +++ b/tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/compiler/jsxEmitWithAttributes.ts b/tests/cases/compiler/jsxEmitWithAttributes.ts index b6fd56393e70a..1fb7a9ccf8dd1 100644 --- a/tests/cases/compiler/jsxEmitWithAttributes.ts +++ b/tests/cases/compiler/jsxEmitWithAttributes.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryAndReactNamespace.ts b/tests/cases/compiler/jsxFactoryAndReactNamespace.ts index 92548a6b9a3ab..92ef3535e786a 100644 --- a/tests/cases/compiler/jsxFactoryAndReactNamespace.ts +++ b/tests/cases/compiler/jsxFactoryAndReactNamespace.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryIdentifier.ts b/tests/cases/compiler/jsxFactoryIdentifier.ts index 446081c14bace..0ea5c7e850da5 100644 --- a/tests/cases/compiler/jsxFactoryIdentifier.ts +++ b/tests/cases/compiler/jsxFactoryIdentifier.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts b/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts index 19f16484d5807..b420d3fd3adc5 100644 --- a/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts +++ b/tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts b/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts index eacd57541368c..e2d101c5f0998 100644 --- a/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts +++ b/tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts b/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts index 66163171755e3..73b25974f5e5c 100644 --- a/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts +++ b/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts index cb31583509217..587e20ef8b999 100644 --- a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts +++ b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts index 5148c5f5ec967..aad8fc29a52db 100644 --- a/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts +++ b/tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryQualifiedName.ts b/tests/cases/compiler/jsxFactoryQualifiedName.ts index d86455b31efd1..769b7cd566d78 100644 --- a/tests/cases/compiler/jsxFactoryQualifiedName.ts +++ b/tests/cases/compiler/jsxFactoryQualifiedName.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts b/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts index e3c6397e4b6f5..9b6d23e283e81 100644 --- a/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts +++ b/tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts @@ -1,4 +1,3 @@ -// @strict: false //@jsx: react //@target: es6 //@module: commonjs diff --git a/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts b/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts index c29c1db6deae6..86fd9935a1f40 100644 --- a/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts +++ b/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs //@target: es5 //@jsx: react diff --git a/tests/cases/compiler/jsxPreserveWithJsInput.ts b/tests/cases/compiler/jsxPreserveWithJsInput.ts index 66541649c6eb2..f229e40a55012 100644 --- a/tests/cases/compiler/jsxPreserveWithJsInput.ts +++ b/tests/cases/compiler/jsxPreserveWithJsInput.ts @@ -1,4 +1,3 @@ -// @strict: false // @outdir: out // @jsx: preserve // @allowjs: true diff --git a/tests/cases/compiler/jsxSpreadTag.ts b/tests/cases/compiler/jsxSpreadTag.ts index b4204b1ff3f20..06e5fec1f6ab0 100644 --- a/tests/cases/compiler/jsxSpreadTag.ts +++ b/tests/cases/compiler/jsxSpreadTag.ts @@ -1,4 +1,3 @@ -// @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 8b96a06106ef1..7a34d4a39ff34 100644 --- a/tests/cases/compiler/lambdaParamTypes.ts +++ b/tests/cases/compiler/lambdaParamTypes.ts @@ -1,4 +1,3 @@ -// @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 64118dd3e4fa9..ceb3773bf4634 100644 --- a/tests/cases/compiler/letConstMatchingParameterNames.ts +++ b/tests/cases/compiler/letConstMatchingParameterNames.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 // @target: es5 let parent = true; diff --git a/tests/cases/compiler/libMembers.ts b/tests/cases/compiler/libMembers.ts index 39d9b5c8f7441..38111f20be342 100644 --- a/tests/cases/compiler/libMembers.ts +++ b/tests/cases/compiler/libMembers.ts @@ -1,4 +1,3 @@ -// @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 9940300f1c24b..1d5f84d284332 100644 --- a/tests/cases/compiler/localClassesInLoop.ts +++ b/tests/cases/compiler/localClassesInLoop.ts @@ -1,4 +1,3 @@ -// @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 4eeefdc7ab85b..6f0c2c6b33a00 100644 --- a/tests/cases/compiler/localClassesInLoop_ES6.ts +++ b/tests/cases/compiler/localClassesInLoop_ES6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 declare function use(a: any); diff --git a/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts b/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts index 11c8cca72688b..fc9760c7a69b0 100644 --- a/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts +++ b/tests/cases/compiler/mappedTypeNoTypeNoCrash.ts @@ -1,3 +1,2 @@ -// @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 da177b65e9062..6ece3a4964514 100644 --- a/tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts +++ b/tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts @@ -1,4 +1,3 @@ -// @strict: false namespace my.data.foo { export function buz() { } } diff --git a/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts b/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts index 772bf8faf44ec..9b11e62d2892d 100644 --- a/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts +++ b/tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts @@ -1,4 +1,3 @@ -// @strict: false namespace my.data { export function buz() { } } diff --git a/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts b/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts index 211e137b84751..8b58b1f545f39 100644 --- a/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts +++ b/tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts @@ -1,4 +1,3 @@ -// @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 dace65f9f8e26..420ac612b2cde 100644 --- a/tests/cases/compiler/methodContainingLocalFunction.ts +++ b/tests/cases/compiler/methodContainingLocalFunction.ts @@ -1,4 +1,3 @@ -// @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 37327d985bc8a..7ff34bdae6a16 100644 --- a/tests/cases/compiler/missingCloseParenStatements.ts +++ b/tests/cases/compiler/missingCloseParenStatements.ts @@ -1,4 +1,3 @@ -// @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 f03814e2fb5e0..e261db3a6670e 100644 --- a/tests/cases/compiler/missingFunctionImplementation.ts +++ b/tests/cases/compiler/missingFunctionImplementation.ts @@ -1,4 +1,3 @@ -// @strict: false export class C1 { m(): void; diff --git a/tests/cases/compiler/missingFunctionImplementation2.ts b/tests/cases/compiler/missingFunctionImplementation2.ts index b41db19934487..1717bc663f270 100644 --- a/tests/cases/compiler/missingFunctionImplementation2.ts +++ b/tests/cases/compiler/missingFunctionImplementation2.ts @@ -1,4 +1,3 @@ -// @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 af9bc645f0159..a0644803af4eb 100644 --- a/tests/cases/compiler/missingTypeArguments3.ts +++ b/tests/cases/compiler/missingTypeArguments3.ts @@ -1,4 +1,3 @@ -// @strict: false declare namespace linq { interface Enumerable { diff --git a/tests/cases/compiler/mixedExports.ts b/tests/cases/compiler/mixedExports.ts index ff1ec1969c252..896cb550f4879 100644 --- a/tests/cases/compiler/mixedExports.ts +++ b/tests/cases/compiler/mixedExports.ts @@ -1,4 +1,3 @@ -// @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 198d2c39be437..f6271a80ce33e 100644 --- a/tests/cases/compiler/mixingFunctionAndAmbientModule1.ts +++ b/tests/cases/compiler/mixingFunctionAndAmbientModule1.ts @@ -1,4 +1,3 @@ -// @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 9fa1c50f71771..4def8fcde3e0c 100644 --- a/tests/cases/compiler/mixingStaticAndInstanceOverloads.ts +++ b/tests/cases/compiler/mixingStaticAndInstanceOverloads.ts @@ -1,4 +1,3 @@ -// @strict: false class C1 { // ERROR foo1(n: number); diff --git a/tests/cases/compiler/modFunctionCrash.ts b/tests/cases/compiler/modFunctionCrash.ts index e1d84c58f171e..c1099f974bb59 100644 --- a/tests/cases/compiler/modFunctionCrash.ts +++ b/tests/cases/compiler/modFunctionCrash.ts @@ -1,4 +1,3 @@ -// @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 43a464e3bf904..931911af9b4be 100644 --- a/tests/cases/compiler/modifierOnParameter1.ts +++ b/tests/cases/compiler/modifierOnParameter1.ts @@ -1,4 +1,3 @@ -// @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 84ced3a2d8794..51a0ee5d1f532 100644 --- a/tests/cases/compiler/modularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts +++ b/tests/cases/compiler/modularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts @@ -1,4 +1,3 @@ -// @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 9c6c143a0f133..7cbb78a333bb0 100644 --- a/tests/cases/compiler/moduleAugmentationCollidingNamesInAugmentation1.ts +++ b/tests/cases/compiler/moduleAugmentationCollidingNamesInAugmentation1.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts b/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts index 4f2123da01a11..b4b286db5023e 100644 --- a/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts +++ b/tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: x0.ts diff --git a/tests/cases/compiler/moduleAugmentationGlobal4.ts b/tests/cases/compiler/moduleAugmentationGlobal4.ts index e4f0b7265bf70..44ba2ba9c573a 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal4.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal4.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationGlobal5.ts b/tests/cases/compiler/moduleAugmentationGlobal5.ts index 06f36f17a3ac9..f0af540ff60b1 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal5.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal5.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @declaration: true // @noUncheckedSideEffectImports: false diff --git a/tests/cases/compiler/moduleAugmentationGlobal6.ts b/tests/cases/compiler/moduleAugmentationGlobal6.ts index 7a70c9f7d5ef8..37e5e33725b2a 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal6.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal6.ts @@ -1,4 +1,3 @@ -// @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 7c9690a124bdb..d255b7f83196c 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal6_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal6_1.ts @@ -1,4 +1,3 @@ -// @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 f250e31c67f2f..66dd41c8bc9b1 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal7.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal7.ts @@ -1,4 +1,3 @@ -// @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 d834ea5b878bf..b7d99dfd413f8 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal7_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal7_1.ts @@ -1,4 +1,3 @@ -// @strict: false namespace A { global { interface Array { x } diff --git a/tests/cases/compiler/moduleAugmentationGlobal8.ts b/tests/cases/compiler/moduleAugmentationGlobal8.ts index 9014c70c7e358..5c00c49a8bf46 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8.ts @@ -1,4 +1,3 @@ -// @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 224363232b950..e4900a9be4c5e 100644 --- a/tests/cases/compiler/moduleAugmentationGlobal8_1.ts +++ b/tests/cases/compiler/moduleAugmentationGlobal8_1.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @module: esnext namespace A { diff --git a/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts b/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts index 8e93d26e48544..d9d367c4b74fc 100644 --- a/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts +++ b/tests/cases/compiler/moduleAugmentationImportsAndExports2.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts b/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts index 017fd8a289105..1b68bc37ca382 100644 --- a/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts +++ b/tests/cases/compiler/moduleAugmentationImportsAndExports3.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts b/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts index e699ddbc91114..6741e58cc91d6 100644 --- a/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts +++ b/tests/cases/compiler/moduleAugmentationWithNonExistentNamedImport.ts @@ -1,4 +1,3 @@ -// @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 e3f153987eedd..3792cc821e074 100644 --- a/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts +++ b/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @module: amd // @declaration: true diff --git a/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts b/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts index 0a4acde1351fd..68d60977d6204 100644 --- a/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts +++ b/tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts @@ -1,4 +1,3 @@ -// @strict: false namespace TypeScript { export namespace CompilerDiagnostics { diff --git a/tests/cases/compiler/modulePreserve3.ts b/tests/cases/compiler/modulePreserve3.ts index fc4991020130a..c15e1b1d4c313 100644 --- a/tests/cases/compiler/modulePreserve3.ts +++ b/tests/cases/compiler/modulePreserve3.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: preserve // @target: esnext // @jsx: react-jsx diff --git a/tests/cases/compiler/modulePreserveTopLevelAwait1.ts b/tests/cases/compiler/modulePreserveTopLevelAwait1.ts index 79178a110a483..16da28db4a006 100644 --- a/tests/cases/compiler/modulePreserveTopLevelAwait1.ts +++ b/tests/cases/compiler/modulePreserveTopLevelAwait1.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: preserve // @target: es2016, esnext // @noEmit: true diff --git a/tests/cases/compiler/moduleProperty2.ts b/tests/cases/compiler/moduleProperty2.ts index fe17bba13307c..2603148161d24 100644 --- a/tests/cases/compiler/moduleProperty2.ts +++ b/tests/cases/compiler/moduleProperty2.ts @@ -1,4 +1,3 @@ -// @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 f3fcb70dbbb17..931c1291e4800 100644 --- a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported.ts +++ b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @traceResolution: true diff --git a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts index 4cfbff085c726..42741fabad6c0 100644 --- a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts +++ b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported2.ts @@ -1,4 +1,3 @@ -// @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 1fed08b1a144e..b665f6932d78b 100644 --- a/tests/cases/compiler/moduleResolutionWithExtensions_notSupported3.ts +++ b/tests/cases/compiler/moduleResolutionWithExtensions_notSupported3.ts @@ -1,4 +1,3 @@ -// @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 79df7b9d4f326..97320be01377d 100644 --- a/tests/cases/compiler/moduleResolution_explicitNodeModulesImport_implicitAny.ts +++ b/tests/cases/compiler/moduleResolution_explicitNodeModulesImport_implicitAny.ts @@ -1,4 +1,3 @@ -// @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 3d737515c31e7..64e46c4e71004 100644 --- a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot.ts +++ b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot.ts @@ -1,4 +1,3 @@ -// @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 83951ed733dfd..9b9f35b41e772 100644 --- a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts +++ b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts @@ -1,4 +1,3 @@ -// @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 d46687b4d7107..4af56e48e1c3e 100644 --- a/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts +++ b/tests/cases/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts @@ -1,4 +1,3 @@ -// @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 797fb58e7a05e..41b6831d582a7 100644 --- a/tests/cases/compiler/moduleResolution_relativeImportJsFile.ts +++ b/tests/cases/compiler/moduleResolution_relativeImportJsFile.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @Filename: /src/b.js diff --git a/tests/cases/compiler/moduleUnassignedVariable.ts b/tests/cases/compiler/moduleUnassignedVariable.ts index 3d24d50ac2a76..6d154df39773b 100644 --- a/tests/cases/compiler/moduleUnassignedVariable.ts +++ b/tests/cases/compiler/moduleUnassignedVariable.ts @@ -1,4 +1,3 @@ -// @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 e996bc23d5bb2..6e71c4b10d9a5 100644 --- a/tests/cases/compiler/moduleVisibilityTest1.ts +++ b/tests/cases/compiler/moduleVisibilityTest1.ts @@ -1,4 +1,3 @@ -// @strict: false namespace OuterMod { diff --git a/tests/cases/compiler/moduleVisibilityTest2.ts b/tests/cases/compiler/moduleVisibilityTest2.ts index d07d6d4e690dc..79c6187d7b895 100644 --- a/tests/cases/compiler/moduleVisibilityTest2.ts +++ b/tests/cases/compiler/moduleVisibilityTest2.ts @@ -1,4 +1,3 @@ -// @strict: false namespace OuterMod { diff --git a/tests/cases/compiler/module_augmentUninstantiatedModule.ts b/tests/cases/compiler/module_augmentUninstantiatedModule.ts index 3a0b285a20e04..4d71c6c1389f7 100644 --- a/tests/cases/compiler/module_augmentUninstantiatedModule.ts +++ b/tests/cases/compiler/module_augmentUninstantiatedModule.ts @@ -1,4 +1,3 @@ -// @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 e16126fe66408..cfe92bd777015 100644 --- a/tests/cases/compiler/module_augmentUninstantiatedModule2.ts +++ b/tests/cases/compiler/module_augmentUninstantiatedModule2.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @moduleResolution: bundler diff --git a/tests/cases/compiler/moduledecl.ts b/tests/cases/compiler/moduledecl.ts index 0a1a9cf387751..8d97e7e73e7a3 100644 --- a/tests/cases/compiler/moduledecl.ts +++ b/tests/cases/compiler/moduledecl.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true // @target: es5 diff --git a/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts b/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts index db50c137b38fa..96b552641492f 100644 --- a/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts +++ b/tests/cases/compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts @@ -1,4 +1,3 @@ -// @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 28cf19cdb4467..0ab97b6db18fc 100644 --- a/tests/cases/compiler/multiModuleFundule1.ts +++ b/tests/cases/compiler/multiModuleFundule1.ts @@ -1,4 +1,3 @@ -// @strict: false function C(x: number) { } namespace C { diff --git a/tests/cases/compiler/multipleClassPropertyModifiers.ts b/tests/cases/compiler/multipleClassPropertyModifiers.ts index 7eb233e8c8960..8357b5b66760e 100644 --- a/tests/cases/compiler/multipleClassPropertyModifiers.ts +++ b/tests/cases/compiler/multipleClassPropertyModifiers.ts @@ -1,4 +1,3 @@ -// @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 d5c233d547a8b..fba38cf1b0017 100644 --- a/tests/cases/compiler/multipleClassPropertyModifiersErrors.ts +++ b/tests/cases/compiler/multipleClassPropertyModifiersErrors.ts @@ -1,4 +1,3 @@ -// @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 cb7eac3f375e0..80ab81445ba1d 100644 --- a/tests/cases/compiler/multipleExportAssignments.ts +++ b/tests/cases/compiler/multipleExportAssignments.ts @@ -1,4 +1,3 @@ -// @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 649c2bb09432d..712debc72698d 100644 --- a/tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts +++ b/tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts @@ -1,4 +1,3 @@ -// @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 913e20caf26c7..0a56c9a719009 100644 --- a/tests/cases/compiler/multipleExports.ts +++ b/tests/cases/compiler/multipleExports.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs export namespace M { diff --git a/tests/cases/compiler/multipleInheritance.ts b/tests/cases/compiler/multipleInheritance.ts index 8ce915c5fc9de..c15c6ec1fbc9f 100644 --- a/tests/cases/compiler/multipleInheritance.ts +++ b/tests/cases/compiler/multipleInheritance.ts @@ -1,4 +1,3 @@ -// @strict: false class B1 { public x; } diff --git a/tests/cases/compiler/multivar.ts b/tests/cases/compiler/multivar.ts index 72a48396a5909..421d32b760d64 100644 --- a/tests/cases/compiler/multivar.ts +++ b/tests/cases/compiler/multivar.ts @@ -1,4 +1,3 @@ -// @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 149d9842ab914..f4da02d6ad273 100644 --- a/tests/cases/compiler/namedFunctionExpressionInModule.ts +++ b/tests/cases/compiler/namedFunctionExpressionInModule.ts @@ -1,4 +1,3 @@ -// @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 1384a53f55b4a..234dce20f64e7 100644 --- a/tests/cases/compiler/namedImportNonExistentName.ts +++ b/tests/cases/compiler/namedImportNonExistentName.ts @@ -1,4 +1,3 @@ -// @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 b6630b71fdbef..e073bebadb963 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings3.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings3.ts @@ -1,4 +1,3 @@ -// @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 d05be62821359..33ad21e2c429d 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings4.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings4.ts @@ -1,4 +1,3 @@ -// @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 3445597e43fe3..65093bcc91fd4 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings5.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings5.ts @@ -1,4 +1,3 @@ -// @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 602b8e73267e7..badf1db6e59ae 100644 --- a/tests/cases/compiler/nestedBlockScopedBindings6.ts +++ b/tests/cases/compiler/nestedBlockScopedBindings6.ts @@ -1,4 +1,3 @@ -// @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 7c735e9fdf54e..e9a30069fcac9 100644 --- a/tests/cases/compiler/nestedIndexer.ts +++ b/tests/cases/compiler/nestedIndexer.ts @@ -1,4 +1,3 @@ -// @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 6cbfc29c87747..210465b13dadf 100644 --- a/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts +++ b/tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 declare let doSomething; diff --git a/tests/cases/compiler/nestedRecursiveLambda.ts b/tests/cases/compiler/nestedRecursiveLambda.ts index ac7dedb3f0769..f1a7223a88a64 100644 --- a/tests/cases/compiler/nestedRecursiveLambda.ts +++ b/tests/cases/compiler/nestedRecursiveLambda.ts @@ -1,4 +1,3 @@ -// @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 9537e390d0ad7..53189d5d28afd 100644 --- a/tests/cases/compiler/newNamesInGlobalAugmentations1.ts +++ b/tests/cases/compiler/newNamesInGlobalAugmentations1.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es6 // @filename: f1.d.ts diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts index 3c7180beee4d0..f5115b8a4c282 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts @@ -1,4 +1,3 @@ -// @strict: false class class1 { get a(): number { var x2 = { diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts index 17c936e745803..ba868edc566a8 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts @@ -1,4 +1,3 @@ -// @strict: false class class1 { constructor() { var x2 = { diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts index 954d5c9175279..6e931b77de270 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 var console: { log(val: any); diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts index 28bac5ae634b6..66d30b29d2ee3 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts @@ -1,4 +1,3 @@ -// @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 deb87af0dfb51..1c8fe8a794952 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInMethod.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInMethod.ts @@ -1,4 +1,3 @@ -// @strict: false var _this = 2; class a { method1() { diff --git a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts index b4be84016028c..04328d06dc531 100644 --- a/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts +++ b/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts @@ -1,4 +1,3 @@ -// @strict: false class class1 { public prop1 = { doStuff: (callback) => () => { diff --git a/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts b/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts index 9486d790f96e4..3f23fcf1258ab 100644 --- a/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts +++ b/tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 var console: { log(val: any); diff --git a/tests/cases/compiler/noCrashOnParameterNamedRequire.ts b/tests/cases/compiler/noCrashOnParameterNamedRequire.ts index 3d48cbdc5d96b..bb4b9d53460f6 100644 --- a/tests/cases/compiler/noCrashOnParameterNamedRequire.ts +++ b/tests/cases/compiler/noCrashOnParameterNamedRequire.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @checkJs: true // @outDir: ./built diff --git a/tests/cases/compiler/noImplicitReturnsInAsync2.ts b/tests/cases/compiler/noImplicitReturnsInAsync2.ts index 25ac1fefc3d29..20488b6bd370e 100644 --- a/tests/cases/compiler/noImplicitReturnsInAsync2.ts +++ b/tests/cases/compiler/noImplicitReturnsInAsync2.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es6 // @noImplicitReturns: true diff --git a/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts b/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts index 084de174dfe2f..f532b1280d31d 100644 --- a/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts +++ b/tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReturns: true function isMissingReturnExpression(): number { return; diff --git a/tests/cases/compiler/noImplicitThisFunctions.ts b/tests/cases/compiler/noImplicitThisFunctions.ts index 5dc7d60790473..43890762e75b2 100644 --- a/tests/cases/compiler/noImplicitThisFunctions.ts +++ b/tests/cases/compiler/noImplicitThisFunctions.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitThis: true function f1(x) { diff --git a/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts b/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts index 15e2e0dee2b82..84e005afd54b6 100644 --- a/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts +++ b/tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts @@ -1,4 +1,3 @@ -// @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 6f1fdad6bd808..065c6f89e7a80 100644 --- a/tests/cases/compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts +++ b/tests/cases/compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts @@ -1,4 +1,3 @@ -// @strict: false // @noUnusedLocals: true // @lib: es6 diff --git a/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts b/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts index 24bfad7827fa5..7715278f189c0 100644 --- a/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts +++ b/tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts @@ -1,4 +1,3 @@ -// @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 5bcb6ec95a8b8..39868ff504314 100644 --- a/tests/cases/compiler/nodeResolution4.ts +++ b/tests/cases/compiler/nodeResolution4.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @moduleResolution: bundler // @filename: ref.ts diff --git a/tests/cases/compiler/nodeResolution6.ts b/tests/cases/compiler/nodeResolution6.ts index b1cba10370e7e..c513c6e6d44bb 100644 --- a/tests/cases/compiler/nodeResolution6.ts +++ b/tests/cases/compiler/nodeResolution6.ts @@ -1,4 +1,3 @@ -// @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 9b81058e94578..1961568239982 100644 --- a/tests/cases/compiler/nodeResolution8.ts +++ b/tests/cases/compiler/nodeResolution8.ts @@ -1,4 +1,3 @@ -// @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 a4d2bed39e8e4..7078266b91942 100644 --- a/tests/cases/compiler/nonArrayRestArgs.ts +++ b/tests/cases/compiler/nonArrayRestArgs.ts @@ -1,4 +1,3 @@ -// @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 3579b3a07ea83..cadd60ea398bb 100644 --- a/tests/cases/compiler/nonContextuallyTypedLogicalOr.ts +++ b/tests/cases/compiler/nonContextuallyTypedLogicalOr.ts @@ -1,4 +1,3 @@ -// @strict: false interface Contextual { dummy; p?: number; diff --git a/tests/cases/compiler/nonExportedElementsOfMergedModules.ts b/tests/cases/compiler/nonExportedElementsOfMergedModules.ts index d5de3298c9c84..280af189c59bd 100644 --- a/tests/cases/compiler/nonExportedElementsOfMergedModules.ts +++ b/tests/cases/compiler/nonExportedElementsOfMergedModules.ts @@ -1,4 +1,3 @@ -// @strict: false namespace One { enum A { X } namespace B { diff --git a/tests/cases/compiler/nonMergedOverloads.ts b/tests/cases/compiler/nonMergedOverloads.ts index 2ea9ee61105a0..582cd72e1f4c1 100644 --- a/tests/cases/compiler/nonMergedOverloads.ts +++ b/tests/cases/compiler/nonMergedOverloads.ts @@ -1,4 +1,3 @@ -// @strict: false var f = 10; export function f(); diff --git a/tests/cases/compiler/null.ts b/tests/cases/compiler/null.ts index 3e02359409378..e8fa9a5d68724 100644 --- a/tests/cases/compiler/null.ts +++ b/tests/cases/compiler/null.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: true var x=null; diff --git a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts index bb67d55617483..de45315d8efc1 100644 --- a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts +++ b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 1..toString(); 1.0.toString(); diff --git a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts index 0f004b914142f..775175f70c02d 100644 --- a/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts +++ b/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 // @removeComments: true diff --git a/tests/cases/compiler/objectLitArrayDeclNoNew.ts b/tests/cases/compiler/objectLitArrayDeclNoNew.ts index ea3bbe056a81f..34b6eea40657c 100644 --- a/tests/cases/compiler/objectLitArrayDeclNoNew.ts +++ b/tests/cases/compiler/objectLitArrayDeclNoNew.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 declare var console; "use strict"; diff --git a/tests/cases/compiler/objectLitIndexerContextualType.ts b/tests/cases/compiler/objectLitIndexerContextualType.ts index 452df3a48b24d..b687e226cfcf6 100644 --- a/tests/cases/compiler/objectLitIndexerContextualType.ts +++ b/tests/cases/compiler/objectLitIndexerContextualType.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { [s: string]: (s: string) => number; } diff --git a/tests/cases/compiler/objectLiteralArraySpecialization.ts b/tests/cases/compiler/objectLiteralArraySpecialization.ts index bf9d3430842de..c152cf36c4b3d 100644 --- a/tests/cases/compiler/objectLiteralArraySpecialization.ts +++ b/tests/cases/compiler/objectLiteralArraySpecialization.ts @@ -1,4 +1,3 @@ -// @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 f03ac15511f1d..7e8044e064ac1 100644 --- a/tests/cases/compiler/objectLiteralFreshnessWithSpread.ts +++ b/tests/cases/compiler/objectLiteralFreshnessWithSpread.ts @@ -1,3 +1,2 @@ -// @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 9120079d59aea..368d8d8eb4e44 100644 --- a/tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts +++ b/tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts @@ -1,4 +1,3 @@ -// @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 188540b39ef37..a4b32acfaae44 100644 --- a/tests/cases/compiler/objectPropertyAsClass.ts +++ b/tests/cases/compiler/objectPropertyAsClass.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/compiler/objectRestSpread.ts b/tests/cases/compiler/objectRestSpread.ts index 51e9b376beb72..25c1512618273 100644 --- a/tests/cases/compiler/objectRestSpread.ts +++ b/tests/cases/compiler/objectRestSpread.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es2017 // @lib: es2018 // @noTypesAndSymbols: true diff --git a/tests/cases/compiler/optionalArgsWithDefaultValues.ts b/tests/cases/compiler/optionalArgsWithDefaultValues.ts index 34b45451895a6..f42411392b296 100644 --- a/tests/cases/compiler/optionalArgsWithDefaultValues.ts +++ b/tests/cases/compiler/optionalArgsWithDefaultValues.ts @@ -1,4 +1,3 @@ -// @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 d74d800851054..dcba7da8f9ebe 100644 --- a/tests/cases/compiler/optionalConstructorArgInSuper.ts +++ b/tests/cases/compiler/optionalConstructorArgInSuper.ts @@ -1,4 +1,3 @@ -// @strict: false class Base { constructor(opt?) { } foo(other?) { } diff --git a/tests/cases/compiler/optionalParamReferencingOtherParams3.ts b/tests/cases/compiler/optionalParamReferencingOtherParams3.ts index fda7c94230a85..a8e12e45e88cc 100644 --- a/tests/cases/compiler/optionalParamReferencingOtherParams3.ts +++ b/tests/cases/compiler/optionalParamReferencingOtherParams3.ts @@ -1,4 +1,3 @@ -// @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 d966997b47c51..4447575535c1d 100644 --- a/tests/cases/compiler/optionalPropertiesSyntax.ts +++ b/tests/cases/compiler/optionalPropertiesSyntax.ts @@ -1,4 +1,3 @@ -// @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 5b3fd9b6ab254..17e2dfd0b0b8a 100644 --- a/tests/cases/compiler/overload2.ts +++ b/tests/cases/compiler/overload2.ts @@ -1,4 +1,3 @@ -// @strict: false enum A { } enum B { } diff --git a/tests/cases/compiler/overloadCallTest.ts b/tests/cases/compiler/overloadCallTest.ts index 73d605d487d48..97d3265517703 100644 --- a/tests/cases/compiler/overloadCallTest.ts +++ b/tests/cases/compiler/overloadCallTest.ts @@ -1,4 +1,3 @@ -// @strict: false class foo { constructor() { function bar(): string; diff --git a/tests/cases/compiler/overloadConsecutiveness.ts b/tests/cases/compiler/overloadConsecutiveness.ts index 8018af3d33805..ced6d88b80cf9 100644 --- a/tests/cases/compiler/overloadConsecutiveness.ts +++ b/tests/cases/compiler/overloadConsecutiveness.ts @@ -1,4 +1,3 @@ -// @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 dd16bc9fc3fb8..08aab87baabd7 100644 --- a/tests/cases/compiler/overloadCrash.ts +++ b/tests/cases/compiler/overloadCrash.ts @@ -1,4 +1,3 @@ -// @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 567092bc8d831..95f95397422de 100644 --- a/tests/cases/compiler/overloadModifiersMustAgree.ts +++ b/tests/cases/compiler/overloadModifiersMustAgree.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs class baz { public foo(); diff --git a/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts b/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts index 818797ce30928..8a9087da6eb76 100644 --- a/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts +++ b/tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts @@ -1,4 +1,3 @@ -// @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 6d3ee81789d45..0c2f252c9fdf7 100644 --- a/tests/cases/compiler/overloadOnConstInBaseWithBadImplementationInDerived.ts +++ b/tests/cases/compiler/overloadOnConstInBaseWithBadImplementationInDerived.ts @@ -1,4 +1,3 @@ -// @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 ed40e13614a60..c3a6c973de0a5 100644 --- a/tests/cases/compiler/overloadOnConstInCallback1.ts +++ b/tests/cases/compiler/overloadOnConstInCallback1.ts @@ -1,4 +1,3 @@ -// @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 2866e609140c1..3c1af2963b336 100644 --- a/tests/cases/compiler/overloadOnConstInObjectLiteralImplementingAnInterface.ts +++ b/tests/cases/compiler/overloadOnConstInObjectLiteralImplementingAnInterface.ts @@ -1,4 +1,3 @@ -// @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 03354279bf6c9..60013ee2eeefa 100644 --- a/tests/cases/compiler/overloadOnConstInheritance4.ts +++ b/tests/cases/compiler/overloadOnConstInheritance4.ts @@ -1,4 +1,3 @@ -// @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 20c01a4deeeb9..b16696f971080 100644 --- a/tests/cases/compiler/overloadOnConstNoAnyImplementation.ts +++ b/tests/cases/compiler/overloadOnConstNoAnyImplementation.ts @@ -1,4 +1,3 @@ -// @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 e1446e2b327e3..3855aa942cb28 100644 --- a/tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts +++ b/tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts @@ -1,4 +1,3 @@ -// @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 683ed8c37f782..cb836e590fc6a 100644 --- a/tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts +++ b/tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts @@ -1,4 +1,3 @@ -// @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 5021cbcbdeec1..f130dd824070e 100644 --- a/tests/cases/compiler/overloadOnConstNoStringImplementation.ts +++ b/tests/cases/compiler/overloadOnConstNoStringImplementation.ts @@ -1,4 +1,3 @@ -// @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 7c99834eaf5bb..6028a896abb4a 100644 --- a/tests/cases/compiler/overloadOnConstNoStringImplementation2.ts +++ b/tests/cases/compiler/overloadOnConstNoStringImplementation2.ts @@ -1,4 +1,3 @@ -// @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 500d990342e2a..083042c5edc34 100644 --- a/tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts +++ b/tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts @@ -1,4 +1,3 @@ -// @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 5a48afaf85320..f2a889538d09e 100644 --- a/tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts +++ b/tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts @@ -1,4 +1,3 @@ -// @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 b143d190a2db0..8a494c99f3fd7 100644 --- a/tests/cases/compiler/overloadResolutionOverCTLambda.ts +++ b/tests/cases/compiler/overloadResolutionOverCTLambda.ts @@ -1,3 +1,2 @@ -// @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 2f8fab97869ff..eadaf7c77d749 100644 --- a/tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts +++ b/tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts @@ -1,4 +1,3 @@ -// @strict: false namespace Bugs { class A { } diff --git a/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts b/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts index aa744fab56f33..0929650b0655f 100644 --- a/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts +++ b/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts @@ -1,4 +1,3 @@ -// @strict: false namespace Bugs { export interface IToken { startIndex:number; diff --git a/tests/cases/compiler/overloadResolutionTest1.ts b/tests/cases/compiler/overloadResolutionTest1.ts index 60972b2e681d7..6c5a95f7463ac 100644 --- a/tests/cases/compiler/overloadResolutionTest1.ts +++ b/tests/cases/compiler/overloadResolutionTest1.ts @@ -1,4 +1,3 @@ -// @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 6f30c1701d9f9..f2384daee4fa5 100644 --- a/tests/cases/compiler/overloadResolutionWithAny.ts +++ b/tests/cases/compiler/overloadResolutionWithAny.ts @@ -1,4 +1,3 @@ -// @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 51ed1165a65b4..758a7a13c51a3 100644 --- a/tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts +++ b/tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts @@ -1,4 +1,3 @@ -// @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 bb3ee2f20cbe9..7724584168229 100644 --- a/tests/cases/compiler/overloadingOnConstantsInImplementation.ts +++ b/tests/cases/compiler/overloadingOnConstantsInImplementation.ts @@ -1,4 +1,3 @@ -// @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 7b7340c4aa859..e0bb5846567a6 100644 --- a/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts +++ b/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts @@ -1,4 +1,3 @@ -// @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 416e5aeb183f7..ce0eab79d7396 100644 --- a/tests/cases/compiler/overloadsAndTypeArgumentArity.ts +++ b/tests/cases/compiler/overloadsAndTypeArgumentArity.ts @@ -1,4 +1,3 @@ -// @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 5e19d5ac2e1ca..e8f93a86fd756 100644 --- a/tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts +++ b/tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts @@ -1,4 +1,3 @@ -// @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 d54ca6615a013..e177363ced6a0 100644 --- a/tests/cases/compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts +++ b/tests/cases/compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts @@ -1,4 +1,3 @@ -// @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 155dca3dca8c8..1af6811feba90 100644 --- a/tests/cases/compiler/overloadsWithinClasses.ts +++ b/tests/cases/compiler/overloadsWithinClasses.ts @@ -1,4 +1,3 @@ -// @strict: false class foo { static fnOverload( ) {} diff --git a/tests/cases/compiler/parameterPropertyOutsideConstructor.ts b/tests/cases/compiler/parameterPropertyOutsideConstructor.ts index bb81b4572d4a8..d852e62ce15df 100644 --- a/tests/cases/compiler/parameterPropertyOutsideConstructor.ts +++ b/tests/cases/compiler/parameterPropertyOutsideConstructor.ts @@ -1,4 +1,3 @@ -// @strict: false class C { foo(public x) { } diff --git a/tests/cases/compiler/paramterDestrcuturingDeclaration.ts b/tests/cases/compiler/paramterDestrcuturingDeclaration.ts index 01a2fe3ad53f8..d05d6076bf066 100644 --- a/tests/cases/compiler/paramterDestrcuturingDeclaration.ts +++ b/tests/cases/compiler/paramterDestrcuturingDeclaration.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true interface C { diff --git a/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts b/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts index ef8061b36ada8..00c1aca653382 100644 --- a/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts +++ b/tests/cases/compiler/parenthesizedAsyncArrowFunction.ts @@ -1,4 +1,3 @@ -// @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 ccc45bd947a40..e50fbb06c9820 100644 --- a/tests/cases/compiler/parseBigInt.ts +++ b/tests/cases/compiler/parseBigInt.ts @@ -1,4 +1,3 @@ -// @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 8060944c6c1b9..0f45c38a3b1b5 100644 --- a/tests/cases/compiler/parseErrorIncorrectReturnToken.ts +++ b/tests/cases/compiler/parseErrorIncorrectReturnToken.ts @@ -1,4 +1,3 @@ -// @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 88cbe5440f403..7dbf396d6efc8 100644 --- a/tests/cases/compiler/parseJsxExtends1.ts +++ b/tests/cases/compiler/parseJsxExtends1.ts @@ -1,4 +1,3 @@ -// @strict: false // @jsx: react // @filename: index.tsx diff --git a/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts b/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts index bc44c12abd7e6..7f00e4b15e796 100644 --- a/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts +++ b/tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts @@ -1,4 +1,3 @@ -// @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 edcec3ad407d6..1c9be1bd45a12 100644 --- a/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts +++ b/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts b/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts index 7c6d14cd4bff2..4f892516d10b4 100644 --- a/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts +++ b/tests/cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts @@ -1,4 +1,3 @@ -// @strict: false // @filename: index.tsx // @jsx: preserve diff --git a/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts b/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts index 5a00f6a96d1ae..4ec21368fb8c7 100644 --- a/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts +++ b/tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts @@ -1,4 +1,3 @@ -// @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 5e3a16f875d66..5ce4bd2a18f54 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution6_classic.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution6_classic.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @traceResolution: true diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts index c213e1a2447b4..29a82e5412d9e 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @traceResolution: true diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts b/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts index ccc0b8c4b95db..81c2328df670f 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: amd // @traceResolution: true diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts index 8dcf7609bf21d..1ba9630e0cfab 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts @@ -1,4 +1,3 @@ -// @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 8adfd0282f3a5..99e4070ff8a8f 100644 --- a/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts +++ b/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @traceResolution: true // @allowJs: true diff --git a/tests/cases/compiler/potentiallyUncalledDecorators.ts b/tests/cases/compiler/potentiallyUncalledDecorators.ts index 49afe4be72d64..6a8bc35e43494 100644 --- a/tests/cases/compiler/potentiallyUncalledDecorators.ts +++ b/tests/cases/compiler/potentiallyUncalledDecorators.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: esnext // @module: esnext // @experimentalDecorators: true diff --git a/tests/cases/compiler/predicateSemantics.ts b/tests/cases/compiler/predicateSemantics.ts index e5e22cafaac77..2d36fb200e4fd 100644 --- a/tests/cases/compiler/predicateSemantics.ts +++ b/tests/cases/compiler/predicateSemantics.ts @@ -1,4 +1,3 @@ -// @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 7ccd5c3004a55..d68a96d87a450 100644 --- a/tests/cases/compiler/primitiveMembers.ts +++ b/tests/cases/compiler/primitiveMembers.ts @@ -1,4 +1,3 @@ -// @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 321f2000c434f..e9fda583a14b4 100644 --- a/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts +++ b/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd //@declaration: true export interface A { diff --git a/tests/cases/compiler/privacyGloImport.ts b/tests/cases/compiler/privacyGloImport.ts index aaa42313c8bdd..a589e9e6ab288 100644 --- a/tests/cases/compiler/privacyGloImport.ts +++ b/tests/cases/compiler/privacyGloImport.ts @@ -1,4 +1,3 @@ -// @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 8ef5cf2b44363..0d725488952da 100644 --- a/tests/cases/compiler/privacyGloImportParseErrors.ts +++ b/tests/cases/compiler/privacyGloImportParseErrors.ts @@ -1,4 +1,3 @@ -// @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 db329c68d78cb..b56a1da706387 100644 --- a/tests/cases/compiler/privacyGloInterface.ts +++ b/tests/cases/compiler/privacyGloInterface.ts @@ -1,4 +1,3 @@ -// @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 6f037883a6803..fb9b58ae62995 100644 --- a/tests/cases/compiler/privacyImportParseErrors.ts +++ b/tests/cases/compiler/privacyImportParseErrors.ts @@ -1,4 +1,3 @@ -// @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 463a9d88fb928..13e0d107c09d4 100644 --- a/tests/cases/compiler/privacyInterface.ts +++ b/tests/cases/compiler/privacyInterface.ts @@ -1,4 +1,3 @@ -// @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 71c8851f36463..8f2ab891ff891 100644 --- a/tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts +++ b/tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @declaration: true diff --git a/tests/cases/compiler/privateNameWeakMapCollision.ts b/tests/cases/compiler/privateNameWeakMapCollision.ts index b9fb33552107a..22f4af36bf8f0 100644 --- a/tests/cases/compiler/privateNameWeakMapCollision.ts +++ b/tests/cases/compiler/privateNameWeakMapCollision.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es2015 function test() { diff --git a/tests/cases/compiler/promiseEmptyTupleNoException.ts b/tests/cases/compiler/promiseEmptyTupleNoException.ts index d947f729483bb..84ae24816e4f2 100644 --- a/tests/cases/compiler/promiseEmptyTupleNoException.ts +++ b/tests/cases/compiler/promiseEmptyTupleNoException.ts @@ -1,4 +1,3 @@ -// @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 00796c2929865..80b3065555941 100644 --- a/tests/cases/compiler/promisePermutations.ts +++ b/tests/cases/compiler/promisePermutations.ts @@ -1,4 +1,3 @@ -// @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 9f07fea58d7ff..406b77757a72c 100644 --- a/tests/cases/compiler/promisePermutations2.ts +++ b/tests/cases/compiler/promisePermutations2.ts @@ -1,4 +1,3 @@ -// @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 1ac0aa98274af..bde9bb49b1be2 100644 --- a/tests/cases/compiler/promisePermutations3.ts +++ b/tests/cases/compiler/promisePermutations3.ts @@ -1,4 +1,3 @@ -// @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 254171c639626..a61f9bcc65431 100644 --- a/tests/cases/compiler/promiseType.ts +++ b/tests/cases/compiler/promiseType.ts @@ -1,4 +1,3 @@ -// @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 fbb1908c985eb..49d83ef0094f0 100644 --- a/tests/cases/compiler/promiseTypeInference.ts +++ b/tests/cases/compiler/promiseTypeInference.ts @@ -1,4 +1,3 @@ -// @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 a2bc355352a89..7db7aebee4c95 100644 --- a/tests/cases/compiler/promiseTypeInferenceUnion.ts +++ b/tests/cases/compiler/promiseTypeInferenceUnion.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: esnext // @lib: esnext diff --git a/tests/cases/compiler/propertyAccess1.ts b/tests/cases/compiler/propertyAccess1.ts index ecc567fe5a89a..25acd55e92b0b 100644 --- a/tests/cases/compiler/propertyAccess1.ts +++ b/tests/cases/compiler/propertyAccess1.ts @@ -1,4 +1,3 @@ -// @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 501d812d676f7..a3f679598afe0 100644 --- a/tests/cases/compiler/propertyAccess2.ts +++ b/tests/cases/compiler/propertyAccess2.ts @@ -1,3 +1,2 @@ -// @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 30eec90538cc9..0950fb8d79cea 100644 --- a/tests/cases/compiler/propertyAccess3.ts +++ b/tests/cases/compiler/propertyAccess3.ts @@ -1,3 +1,2 @@ -// @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 992025ad2ec1d..1e1da68683d49 100644 --- a/tests/cases/compiler/propertyAccess6.ts +++ b/tests/cases/compiler/propertyAccess6.ts @@ -1,3 +1,2 @@ -// @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 918036ebd91fa..9f4e35a4d12f9 100644 --- a/tests/cases/compiler/propertyAccess7.ts +++ b/tests/cases/compiler/propertyAccess7.ts @@ -1,3 +1,2 @@ -// @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 83ccf242204d6..fff9401468a5b 100644 --- a/tests/cases/compiler/propertyAccessExpressionInnerComments.ts +++ b/tests/cases/compiler/propertyAccessExpressionInnerComments.ts @@ -1,4 +1,3 @@ -// @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 164bfefca03f4..c5f28c5b09732 100644 --- a/tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts +++ b/tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts @@ -1,4 +1,3 @@ -// @strict: false interface Test { readonly [key: string]: string; } diff --git a/tests/cases/compiler/propertyAccessOnObjectLiteral.ts b/tests/cases/compiler/propertyAccessOnObjectLiteral.ts index 3579d66a9cbce..89f4021e04be5 100644 --- a/tests/cases/compiler/propertyAccessOnObjectLiteral.ts +++ b/tests/cases/compiler/propertyAccessOnObjectLiteral.ts @@ -1,4 +1,3 @@ -// @strict: false class A { } ({}).toString(); diff --git a/tests/cases/compiler/propertyAccessibility1.ts b/tests/cases/compiler/propertyAccessibility1.ts index 1900771d33fe3..ea238fc05967f 100644 --- a/tests/cases/compiler/propertyAccessibility1.ts +++ b/tests/cases/compiler/propertyAccessibility1.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { private privProp = 0; } diff --git a/tests/cases/compiler/propertyAccessibility2.ts b/tests/cases/compiler/propertyAccessibility2.ts index b6b237bcc0abd..354a8af185877 100644 --- a/tests/cases/compiler/propertyAccessibility2.ts +++ b/tests/cases/compiler/propertyAccessibility2.ts @@ -1,4 +1,3 @@ -// @strict: false class C { private static x = 1; } diff --git a/tests/cases/compiler/propertyAssignment.ts b/tests/cases/compiler/propertyAssignment.ts index 7bc93dfbf806f..ff1c9083c9166 100644 --- a/tests/cases/compiler/propertyAssignment.ts +++ b/tests/cases/compiler/propertyAssignment.ts @@ -1,4 +1,3 @@ -// @strict: false declare var foo1: { new ():any; } diff --git a/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts b/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts index 960a3b300095e..d215069686965 100644 --- a/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts +++ b/tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts @@ -1,4 +1,3 @@ -// @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 51d690b92fb1d..bfa7a99fbe528 100644 --- a/tests/cases/compiler/propertyOrdering2.ts +++ b/tests/cases/compiler/propertyOrdering2.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { constructor(public x, y) { } foo() { diff --git a/tests/cases/compiler/propertyParameterWithQuestionMark.ts b/tests/cases/compiler/propertyParameterWithQuestionMark.ts index c391aa911b151..ed388e0156e9c 100644 --- a/tests/cases/compiler/propertyParameterWithQuestionMark.ts +++ b/tests/cases/compiler/propertyParameterWithQuestionMark.ts @@ -1,4 +1,3 @@ -// @strict: false class C { constructor(public x?) { } } diff --git a/tests/cases/compiler/propertySignatures.ts b/tests/cases/compiler/propertySignatures.ts index 9c1c0eb1e6613..dffe0b8833156 100644 --- a/tests/cases/compiler/propertySignatures.ts +++ b/tests/cases/compiler/propertySignatures.ts @@ -1,4 +1,3 @@ -// @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 19b47373de72f..601842abefbfb 100644 --- a/tests/cases/compiler/propertyWrappedInTry.ts +++ b/tests/cases/compiler/propertyWrappedInTry.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { try { diff --git a/tests/cases/compiler/protectedMembers.ts b/tests/cases/compiler/protectedMembers.ts index 694162d2c54e6..bf3e32a653498 100644 --- a/tests/cases/compiler/protectedMembers.ts +++ b/tests/cases/compiler/protectedMembers.ts @@ -1,4 +1,3 @@ -// @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 e5f0a93f24349..7a1e3123f597a 100644 --- a/tests/cases/compiler/protectedMembersThisParameter.ts +++ b/tests/cases/compiler/protectedMembersThisParameter.ts @@ -1,4 +1,3 @@ -// @strict: false class Message { protected secret(): void {} } diff --git a/tests/cases/compiler/protoAsIndexInIndexExpression.ts b/tests/cases/compiler/protoAsIndexInIndexExpression.ts index 8e9b265e93d87..8764b70e58aeb 100644 --- a/tests/cases/compiler/protoAsIndexInIndexExpression.ts +++ b/tests/cases/compiler/protoAsIndexInIndexExpression.ts @@ -1,4 +1,3 @@ -// @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 46c9b7949464f..eac3a4c7fa58e 100644 --- a/tests/cases/compiler/protoAssignment.ts +++ b/tests/cases/compiler/protoAssignment.ts @@ -1,4 +1,3 @@ -// @strict: false interface Number extends Comparable { diff --git a/tests/cases/compiler/protoInIndexer.ts b/tests/cases/compiler/protoInIndexer.ts index 7c7c00ea708ba..dc6a4cfe80922 100644 --- a/tests/cases/compiler/protoInIndexer.ts +++ b/tests/cases/compiler/protoInIndexer.ts @@ -1,4 +1,3 @@ -// @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 d1a07624b7736..9db973372d370 100644 --- a/tests/cases/compiler/prototypeOnConstructorFunctions.ts +++ b/tests/cases/compiler/prototypeOnConstructorFunctions.ts @@ -1,4 +1,3 @@ -// @strict: false interface I1 { const: new (options?, element?) => any; } diff --git a/tests/cases/compiler/qualify.ts b/tests/cases/compiler/qualify.ts index a58dd0d77fdab..e874f0057d2e0 100644 --- a/tests/cases/compiler/qualify.ts +++ b/tests/cases/compiler/qualify.ts @@ -1,4 +1,3 @@ -// @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 18888e38ce8ac..0d3e381fcfa1e 100644 --- a/tests/cases/compiler/reExportUndefined2.ts +++ b/tests/cases/compiler/reExportUndefined2.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: a.ts diff --git a/tests/cases/compiler/reachabilityChecks1.ts b/tests/cases/compiler/reachabilityChecks1.ts index 499b53a78ad4f..fbe742b383f2d 100644 --- a/tests/cases/compiler/reachabilityChecks1.ts +++ b/tests/cases/compiler/reachabilityChecks1.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: false // @preserveConstEnums: true diff --git a/tests/cases/compiler/reachabilityChecks11.ts b/tests/cases/compiler/reachabilityChecks11.ts index b8491c668d5ed..abcafb411331a 100644 --- a/tests/cases/compiler/reachabilityChecks11.ts +++ b/tests/cases/compiler/reachabilityChecks11.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: false // @preserveConstEnums: true diff --git a/tests/cases/compiler/reachabilityChecks4.ts b/tests/cases/compiler/reachabilityChecks4.ts index 9dbcb828f0d68..a853a6e996aa8 100644 --- a/tests/cases/compiler/reachabilityChecks4.ts +++ b/tests/cases/compiler/reachabilityChecks4.ts @@ -1,4 +1,3 @@ -// @strict: false // @noFallthroughCasesInSwitch: true function foo(x, y) { diff --git a/tests/cases/compiler/reachabilityChecks5.ts b/tests/cases/compiler/reachabilityChecks5.ts index 5e864562f4e8a..97df11ccb79bb 100644 --- a/tests/cases/compiler/reachabilityChecks5.ts +++ b/tests/cases/compiler/reachabilityChecks5.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: false // @noImplicitReturns: true diff --git a/tests/cases/compiler/reachabilityChecks6.ts b/tests/cases/compiler/reachabilityChecks6.ts index 6e48844ef2f99..725563a44885a 100644 --- a/tests/cases/compiler/reachabilityChecks6.ts +++ b/tests/cases/compiler/reachabilityChecks6.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: false // @noImplicitReturns: true diff --git a/tests/cases/compiler/reachabilityChecks7.ts b/tests/cases/compiler/reachabilityChecks7.ts index c715849dbdfff..53702037e3fe0 100644 --- a/tests/cases/compiler/reachabilityChecks7.ts +++ b/tests/cases/compiler/reachabilityChecks7.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 // @noImplicitReturns: true diff --git a/tests/cases/compiler/readonlyInNonPropertyParameters.ts b/tests/cases/compiler/readonlyInNonPropertyParameters.ts index 4ecc5c9414ec2..e3334e3971986 100644 --- a/tests/cases/compiler/readonlyInNonPropertyParameters.ts +++ b/tests/cases/compiler/readonlyInNonPropertyParameters.ts @@ -1,4 +1,3 @@ -// @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 d32b4d64fabd0..61724f80e87a8 100644 --- a/tests/cases/compiler/recur1.ts +++ b/tests/cases/compiler/recur1.ts @@ -1,4 +1,3 @@ -// @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 f511760732010..a78e410ad1084 100644 --- a/tests/cases/compiler/recursiveClassReferenceTest.ts +++ b/tests/cases/compiler/recursiveClassReferenceTest.ts @@ -1,4 +1,3 @@ -// @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 ea741e89e4a41..b6eeaf94687d6 100644 --- a/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts +++ b/tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7.ts @@ -1,4 +1,3 @@ -// @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 a6741a81fb88a..5d4e4b56c7531 100644 --- a/tests/cases/compiler/recursiveGetterAccess.ts +++ b/tests/cases/compiler/recursiveGetterAccess.ts @@ -1,4 +1,3 @@ -// @strict: false class MyClass { get testProp() { return this.testProp; } } diff --git a/tests/cases/compiler/recursiveInference1.ts b/tests/cases/compiler/recursiveInference1.ts index 59b303239a401..55d2e1642f87a 100644 --- a/tests/cases/compiler/recursiveInference1.ts +++ b/tests/cases/compiler/recursiveInference1.ts @@ -1,3 +1,2 @@ -// @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 aff54f0b58489..9e00ae22e9468 100644 --- a/tests/cases/compiler/recursiveLetConst.ts +++ b/tests/cases/compiler/recursiveLetConst.ts @@ -1,4 +1,3 @@ -// @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 12070e54e6b5d..0c0a28d15e4f8 100644 --- a/tests/cases/compiler/recursiveNamedLambdaCall.ts +++ b/tests/cases/compiler/recursiveNamedLambdaCall.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 var promise = function( obj ) { diff --git a/tests/cases/compiler/recursiveProperties.ts b/tests/cases/compiler/recursiveProperties.ts index 59ec19c4e125d..3452c63338ff0 100644 --- a/tests/cases/compiler/recursiveProperties.ts +++ b/tests/cases/compiler/recursiveProperties.ts @@ -1,4 +1,3 @@ -// @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 3d26f28891ff9..77f2e5970ec74 100644 --- a/tests/cases/compiler/recursiveSpecializationOfSignatures.ts +++ b/tests/cases/compiler/recursiveSpecializationOfSignatures.ts @@ -1,4 +1,3 @@ -// @strict: false class S0 { set S1(S2: S0) { } diff --git a/tests/cases/compiler/redeclareParameterInCatchBlock.ts b/tests/cases/compiler/redeclareParameterInCatchBlock.ts index 441a21017280d..bfadd6e378859 100644 --- a/tests/cases/compiler/redeclareParameterInCatchBlock.ts +++ b/tests/cases/compiler/redeclareParameterInCatchBlock.ts @@ -1,4 +1,3 @@ -// @strict: false // @useUnknownInCatchVariables: false // @target: es6 diff --git a/tests/cases/compiler/reexportMissingDefault.ts b/tests/cases/compiler/reexportMissingDefault.ts index aa1ecd35c01ad..e661788188c49 100644 --- a/tests/cases/compiler/reexportMissingDefault.ts +++ b/tests/cases/compiler/reexportMissingDefault.ts @@ -1,4 +1,3 @@ -// @strict: false // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault1.ts b/tests/cases/compiler/reexportMissingDefault1.ts index 1230c7369a8be..22f1966c6d416 100644 --- a/tests/cases/compiler/reexportMissingDefault1.ts +++ b/tests/cases/compiler/reexportMissingDefault1.ts @@ -1,4 +1,3 @@ -// @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 a1efaaae5dc0b..e7649b88a4762 100644 --- a/tests/cases/compiler/reexportMissingDefault2.ts +++ b/tests/cases/compiler/reexportMissingDefault2.ts @@ -1,4 +1,3 @@ -// @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 00c737f858016..e28659c87f6ab 100644 --- a/tests/cases/compiler/reexportMissingDefault3.ts +++ b/tests/cases/compiler/reexportMissingDefault3.ts @@ -1,4 +1,3 @@ -// @strict: false // @filename: b.ts export const b = null; diff --git a/tests/cases/compiler/reexportMissingDefault4.ts b/tests/cases/compiler/reexportMissingDefault4.ts index 86678398ae252..96b3a1f030b07 100644 --- a/tests/cases/compiler/reexportMissingDefault4.ts +++ b/tests/cases/compiler/reexportMissingDefault4.ts @@ -1,4 +1,3 @@ -// @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 677585a7764c8..d3cc13fe229c9 100644 --- a/tests/cases/compiler/reexportMissingDefault5.ts +++ b/tests/cases/compiler/reexportMissingDefault5.ts @@ -1,4 +1,3 @@ -// @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 18d0822dcf75a..87debfc463f7a 100644 --- a/tests/cases/compiler/reexportMissingDefault6.ts +++ b/tests/cases/compiler/reexportMissingDefault6.ts @@ -1,4 +1,3 @@ -// @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 dfdc6d6017b1f..249b7cb4d9233 100644 --- a/tests/cases/compiler/reexportMissingDefault7.ts +++ b/tests/cases/compiler/reexportMissingDefault7.ts @@ -1,4 +1,3 @@ -// @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 7f0dad9d1f3db..2a8f19e9c114e 100644 --- a/tests/cases/compiler/reexportMissingDefault8.ts +++ b/tests/cases/compiler/reexportMissingDefault8.ts @@ -1,4 +1,3 @@ -// @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 8d12653f8f85d..e3c7b23f6de72 100644 --- a/tests/cases/compiler/reexportNameAliasedAndHoisted.ts +++ b/tests/cases/compiler/reexportNameAliasedAndHoisted.ts @@ -1,4 +1,3 @@ -// @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 aedec78047a66..5714dcb887e02 100644 --- a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts +++ b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts @@ -1,4 +1,3 @@ -// @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 0036701aea434..3653d833b4303 100644 --- a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts +++ b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts @@ -1,4 +1,3 @@ -// @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 8a38fc5d4ac53..4b90494734855 100644 --- a/tests/cases/compiler/renamingDestructuredPropertyInFunctionType3.ts +++ b/tests/cases/compiler/renamingDestructuredPropertyInFunctionType3.ts @@ -1,4 +1,3 @@ -// @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 0e20d1cefd821..35d606426f069 100644 --- a/tests/cases/compiler/requiredInitializedParameter1.ts +++ b/tests/cases/compiler/requiredInitializedParameter1.ts @@ -1,4 +1,3 @@ -// @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 3e81f89747c61..48d42869ee7c8 100644 --- a/tests/cases/compiler/requiredInitializedParameter2.ts +++ b/tests/cases/compiler/requiredInitializedParameter2.ts @@ -1,4 +1,3 @@ -// @strict: false interface I1 { method(); } diff --git a/tests/cases/compiler/requiredInitializedParameter3.ts b/tests/cases/compiler/requiredInitializedParameter3.ts index a34be72d07481..803eefb63420b 100644 --- a/tests/cases/compiler/requiredInitializedParameter3.ts +++ b/tests/cases/compiler/requiredInitializedParameter3.ts @@ -1,4 +1,3 @@ -// @strict: false //@declaration: true interface I1 { method(); diff --git a/tests/cases/compiler/requiredInitializedParameter4.ts b/tests/cases/compiler/requiredInitializedParameter4.ts index 94e2877b956a4..4ba15878e43e2 100644 --- a/tests/cases/compiler/requiredInitializedParameter4.ts +++ b/tests/cases/compiler/requiredInitializedParameter4.ts @@ -1,4 +1,3 @@ -// @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 52a2d9a50f54e..228ad17314123 100644 --- a/tests/cases/compiler/restArgMissingName.ts +++ b/tests/cases/compiler/restArgMissingName.ts @@ -1,2 +1 @@ -// @strict: false function sum (...) {} diff --git a/tests/cases/compiler/restParamAsOptional.ts b/tests/cases/compiler/restParamAsOptional.ts index 5a74a4348350d..57f439cbc95d9 100644 --- a/tests/cases/compiler/restParamAsOptional.ts +++ b/tests/cases/compiler/restParamAsOptional.ts @@ -1,3 +1,2 @@ -// @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 97533c12d4338..220b7d36d5e33 100644 --- a/tests/cases/compiler/restParamModifier.ts +++ b/tests/cases/compiler/restParamModifier.ts @@ -1,4 +1,3 @@ -// @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 b6a0df84b8c20..e007bc56d7c1e 100644 --- a/tests/cases/compiler/restParamModifier2.ts +++ b/tests/cases/compiler/restParamModifier2.ts @@ -1,4 +1,3 @@ -// @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 a233909812ac6..e6ecf95df0d70 100644 --- a/tests/cases/compiler/restParameterNoTypeAnnotation.ts +++ b/tests/cases/compiler/restParameterNoTypeAnnotation.ts @@ -1,4 +1,3 @@ -// @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 cd2079ffcf085..bd6a3b9bbda64 100644 --- a/tests/cases/compiler/restParameterWithBindingPattern1.ts +++ b/tests/cases/compiler/restParameterWithBindingPattern1.ts @@ -1,4 +1,3 @@ -// @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 4132c0f984b5f..d7057885040c5 100644 --- a/tests/cases/compiler/restParameterWithBindingPattern2.ts +++ b/tests/cases/compiler/restParameterWithBindingPattern2.ts @@ -1,4 +1,3 @@ -// @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 b2ff3b3be45a7..3bb0d1fcc7918 100644 --- a/tests/cases/compiler/returnInfiniteIntersection.ts +++ b/tests/cases/compiler/returnInfiniteIntersection.ts @@ -1,4 +1,3 @@ -// @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 b0a72ba977a39..06d1bdb956970 100644 --- a/tests/cases/compiler/returnStatement1.ts +++ b/tests/cases/compiler/returnStatement1.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: true function f() { diff --git a/tests/cases/compiler/returnTypeParameterWithModules.ts b/tests/cases/compiler/returnTypeParameterWithModules.ts index f9542b6d2f566..3b934b6b60408 100644 --- a/tests/cases/compiler/returnTypeParameterWithModules.ts +++ b/tests/cases/compiler/returnTypeParameterWithModules.ts @@ -1,4 +1,3 @@ -// @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 4423d3f3cd38f..18787f9649038 100644 --- a/tests/cases/compiler/returnValueInSetter.ts +++ b/tests/cases/compiler/returnValueInSetter.ts @@ -1,4 +1,3 @@ -// @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 37aa8307bb3a0..b4902fda03763 100644 --- a/tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts +++ b/tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts @@ -1,4 +1,3 @@ -// @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 9f51238b0ce19..c4af82561385f 100644 --- a/tests/cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts +++ b/tests/cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts @@ -1,4 +1,3 @@ -// @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 c9e44e9069add..8ff5746a60b09 100644 --- a/tests/cases/compiler/scopeCheckInsidePublicMethod1.ts +++ b/tests/cases/compiler/scopeCheckInsidePublicMethod1.ts @@ -1,4 +1,3 @@ -// @strict: false class C { static s; public a() { diff --git a/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts b/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts index 01d65e23cbb80..f35e7e1f5b7cd 100644 --- a/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts +++ b/tests/cases/compiler/scopeCheckInsideStaticMethod1.ts @@ -1,4 +1,3 @@ -// @strict: false class C { private v; public p; diff --git a/tests/cases/compiler/scopeTests.ts b/tests/cases/compiler/scopeTests.ts index 67ab6f69eac4d..8cea58550d560 100644 --- a/tests/cases/compiler/scopeTests.ts +++ b/tests/cases/compiler/scopeTests.ts @@ -1,4 +1,3 @@ -// @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 75b005886de92..95625b9dc95f7 100644 --- a/tests/cases/compiler/selfReferencesInFunctionParameters.ts +++ b/tests/cases/compiler/selfReferencesInFunctionParameters.ts @@ -1,4 +1,3 @@ -// @strict: false function foo(x: number = x) { } diff --git a/tests/cases/compiler/setMethods.ts b/tests/cases/compiler/setMethods.ts index bd6b2da34cc90..14743ce8c2dfa 100644 --- a/tests/cases/compiler/setMethods.ts +++ b/tests/cases/compiler/setMethods.ts @@ -1,4 +1,3 @@ -// @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 f5570de3291a4..cd194e5a072a3 100644 --- a/tests/cases/compiler/setterWithReturn.ts +++ b/tests/cases/compiler/setterWithReturn.ts @@ -1,4 +1,3 @@ -// @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 d4f257cddc4a6..8aec755a0cd6a 100644 --- a/tests/cases/compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts +++ b/tests/cases/compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts @@ -1,4 +1,3 @@ -// @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 33dd8ac15745b..d12ebad67caa3 100644 --- a/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts +++ b/tests/cases/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @noemit: true diff --git a/tests/cases/compiler/sourceMapValidationExportAssignment.ts b/tests/cases/compiler/sourceMapValidationExportAssignment.ts index fe0b283b8e5d7..8b0a951415339 100644 --- a/tests/cases/compiler/sourceMapValidationExportAssignment.ts +++ b/tests/cases/compiler/sourceMapValidationExportAssignment.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd // @sourcemap: true class a { diff --git a/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts b/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts index a42496e3027be..ccf25ae59b7df 100644 --- a/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts +++ b/tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs // @sourcemap: true class a { diff --git a/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts b/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts index 8f8d55502abbc..a2f71510bbbf9 100644 --- a/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts +++ b/tests/cases/compiler/specializationsShouldNotAffectEachOther.ts @@ -1,4 +1,3 @@ -// @strict: false interface Series { data: string[]; diff --git a/tests/cases/compiler/specializeVarArgs1.ts b/tests/cases/compiler/specializeVarArgs1.ts index e30c0d26e9aad..a8441148175c5 100644 --- a/tests/cases/compiler/specializeVarArgs1.ts +++ b/tests/cases/compiler/specializeVarArgs1.ts @@ -1,4 +1,3 @@ -// @strict: false interface Observable{ } diff --git a/tests/cases/compiler/specializedOverloadWithRestParameters.ts b/tests/cases/compiler/specializedOverloadWithRestParameters.ts index c0cb8c9d7e02b..d746076e2c80e 100644 --- a/tests/cases/compiler/specializedOverloadWithRestParameters.ts +++ b/tests/cases/compiler/specializedOverloadWithRestParameters.ts @@ -1,4 +1,3 @@ -// @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 2ceca922f5b76..72b2a2825df4d 100644 --- a/tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts +++ b/tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts @@ -1,4 +1,3 @@ -// @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 f7f23fa415fe4..acea65b9f09dc 100644 --- a/tests/cases/compiler/staticAsIdentifier.ts +++ b/tests/cases/compiler/staticAsIdentifier.ts @@ -1,4 +1,3 @@ -// @strict: false class C1 { static static [x: string]: string; diff --git a/tests/cases/compiler/staticClassMemberError.ts b/tests/cases/compiler/staticClassMemberError.ts index 64e406d3ff3d6..3d35e598622ea 100644 --- a/tests/cases/compiler/staticClassMemberError.ts +++ b/tests/cases/compiler/staticClassMemberError.ts @@ -1,4 +1,3 @@ -// @strict: false class C { static s; public a() { diff --git a/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts b/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts index 64a0ca8132db0..aa78d4333c641 100644 --- a/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts +++ b/tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts @@ -1,4 +1,3 @@ -// @strict: false interface A { prop(); } diff --git a/tests/cases/compiler/staticModifierAlreadySeen.ts b/tests/cases/compiler/staticModifierAlreadySeen.ts index 6cd9dc0c65b6f..fdcc5cafda85d 100644 --- a/tests/cases/compiler/staticModifierAlreadySeen.ts +++ b/tests/cases/compiler/staticModifierAlreadySeen.ts @@ -1,4 +1,3 @@ -// @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 6058d68d33c32..12aec8fedfc6d 100644 --- a/tests/cases/compiler/structuralTypeInDeclareFileForModule.ts +++ b/tests/cases/compiler/structuralTypeInDeclareFileForModule.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true namespace M { export var x; } diff --git a/tests/cases/compiler/super1.ts b/tests/cases/compiler/super1.ts index 9631f8c51de24..c982bc89e69ee 100644 --- a/tests/cases/compiler/super1.ts +++ b/tests/cases/compiler/super1.ts @@ -1,4 +1,3 @@ -// @strict: false // Case 1 class Base1 { public foo() { diff --git a/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts b/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts index e8421cb1e591a..d633ccb018fc7 100644 --- a/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts +++ b/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts @@ -1,4 +1,3 @@ -// @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 a546133c9f34d..c09fb37db2d09 100644 --- a/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts +++ b/tests/cases/compiler/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts @@ -1,4 +1,3 @@ -// @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 d2ac0f6c71a0f..99755d87fbf23 100644 --- a/tests/cases/compiler/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts +++ b/tests/cases/compiler/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts @@ -1,4 +1,3 @@ -// @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 8e28e438474df..5f030bd5562bd 100644 --- a/tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts +++ b/tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts @@ -1,4 +1,3 @@ -// @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 1e4de55f0399e..81874204e1af8 100644 --- a/tests/cases/compiler/superCallFromFunction1.ts +++ b/tests/cases/compiler/superCallFromFunction1.ts @@ -1,4 +1,3 @@ -// @strict: false function foo() { super(value => String(value)); diff --git a/tests/cases/compiler/superNewCall1.ts b/tests/cases/compiler/superNewCall1.ts index 79fbd6ae5bb23..b3792d55221dd 100644 --- a/tests/cases/compiler/superNewCall1.ts +++ b/tests/cases/compiler/superNewCall1.ts @@ -1,4 +1,3 @@ -// @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 aedefd55c0831..a7ecf3986faa9 100644 --- a/tests/cases/compiler/superWithTypeArgument2.ts +++ b/tests/cases/compiler/superWithTypeArgument2.ts @@ -1,4 +1,3 @@ -// @strict: false class C { foo: T; } diff --git a/tests/cases/compiler/switchCaseCircularRefeference.ts b/tests/cases/compiler/switchCaseCircularRefeference.ts index ceee4f6a1f698..060b90fa8a1cd 100644 --- a/tests/cases/compiler/switchCaseCircularRefeference.ts +++ b/tests/cases/compiler/switchCaseCircularRefeference.ts @@ -1,4 +1,3 @@ -// @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 51742b6379278..e35c3aa24a353 100644 --- a/tests/cases/compiler/systemJsForInNoException.ts +++ b/tests/cases/compiler/systemJsForInNoException.ts @@ -1,4 +1,3 @@ -// @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 8ba8a55f61ec9..15784b2f8c413 100644 --- a/tests/cases/compiler/systemModule11.ts +++ b/tests/cases/compiler/systemModule11.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/systemModule4.ts b/tests/cases/compiler/systemModule4.ts index 83c33f38a8425..2dc46ee68e5f8 100644 --- a/tests/cases/compiler/systemModule4.ts +++ b/tests/cases/compiler/systemModule4.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system export var x = 1; diff --git a/tests/cases/compiler/systemModule8.ts b/tests/cases/compiler/systemModule8.ts index cc3bfe33d4353..4490b2a85294f 100644 --- a/tests/cases/compiler/systemModule8.ts +++ b/tests/cases/compiler/systemModule8.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowUnreachableCode: true // @module: system diff --git a/tests/cases/compiler/systemModuleAmbientDeclarations.ts b/tests/cases/compiler/systemModuleAmbientDeclarations.ts index 4516532efbc63..5cc0bb98b1e48 100644 --- a/tests/cases/compiler/systemModuleAmbientDeclarations.ts +++ b/tests/cases/compiler/systemModuleAmbientDeclarations.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/systemModuleConstEnums.ts b/tests/cases/compiler/systemModuleConstEnums.ts index c93b4fd4bacfe..c3e37e3dbccd7 100644 --- a/tests/cases/compiler/systemModuleConstEnums.ts +++ b/tests/cases/compiler/systemModuleConstEnums.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system declare function use(a: any); diff --git a/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts b/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts index 09ff0de67d2dc..0a50934847cd4 100644 --- a/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts +++ b/tests/cases/compiler/systemModuleConstEnumsSeparateCompilation.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: system // @isolatedModules: true diff --git a/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts b/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts index 6d4ba209fe82f..3accdd66e844e 100644 --- a/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts +++ b/tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts @@ -1,4 +1,3 @@ -// @strict: false //@target: es5 // Originated from #38558 diff --git a/tests/cases/compiler/targetTypeCastTest.ts b/tests/cases/compiler/targetTypeCastTest.ts index e5817a51dbd20..c8b9569b3ef1d 100644 --- a/tests/cases/compiler/targetTypeCastTest.ts +++ b/tests/cases/compiler/targetTypeCastTest.ts @@ -1,4 +1,3 @@ -// @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 e7bbb9cc5f2ad..d2720f2b995e6 100644 --- a/tests/cases/compiler/targetTypeTest1.ts +++ b/tests/cases/compiler/targetTypeTest1.ts @@ -1,4 +1,3 @@ -// @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 b4a70ace11835..3d58875ef11bd 100644 --- a/tests/cases/compiler/testTypings.ts +++ b/tests/cases/compiler/testTypings.ts @@ -1,4 +1,3 @@ -// @strict: false interface IComparable { compareTo(other: T); } diff --git a/tests/cases/compiler/thisBinding.ts b/tests/cases/compiler/thisBinding.ts index 1ffdb8febe692..86a5bc89aa0e9 100644 --- a/tests/cases/compiler/thisBinding.ts +++ b/tests/cases/compiler/thisBinding.ts @@ -1,4 +1,3 @@ -// @strict: false namespace M { export interface I { z; diff --git a/tests/cases/compiler/thisExpressionInIndexExpression.ts b/tests/cases/compiler/thisExpressionInIndexExpression.ts index dd00c53cf2a6e..76c7ef9f9ef3b 100644 --- a/tests/cases/compiler/thisExpressionInIndexExpression.ts +++ b/tests/cases/compiler/thisExpressionInIndexExpression.ts @@ -1,4 +1,3 @@ -// @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 3cb5794e4ecd3..3ac1a2428a141 100644 --- a/tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts +++ b/tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts @@ -1,4 +1,3 @@ -// @strict: false function log(a) { } class Vector { diff --git a/tests/cases/compiler/thisInConstructorParameter1.ts b/tests/cases/compiler/thisInConstructorParameter1.ts index 44a6f4b6d8255..560eab45f2b4d 100644 --- a/tests/cases/compiler/thisInConstructorParameter1.ts +++ b/tests/cases/compiler/thisInConstructorParameter1.ts @@ -1,4 +1,3 @@ -// @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 92bee95db847d..b7df7cbafad74 100644 --- a/tests/cases/compiler/thisInSuperCall.ts +++ b/tests/cases/compiler/thisInSuperCall.ts @@ -1,4 +1,3 @@ -// @strict: false class Base { constructor(x: any) {} } diff --git a/tests/cases/compiler/thisInSuperCall1.ts b/tests/cases/compiler/thisInSuperCall1.ts index d8893068f344b..4370d2b51aa7b 100644 --- a/tests/cases/compiler/thisInSuperCall1.ts +++ b/tests/cases/compiler/thisInSuperCall1.ts @@ -1,4 +1,3 @@ -// @strict: false class Base { constructor(a: any) {} } diff --git a/tests/cases/compiler/thisInSuperCall2.ts b/tests/cases/compiler/thisInSuperCall2.ts index 71c6cbd1bf641..2869ab9a80553 100644 --- a/tests/cases/compiler/thisInSuperCall2.ts +++ b/tests/cases/compiler/thisInSuperCall2.ts @@ -1,4 +1,3 @@ -// @strict: false class Base { constructor(a: any) {} } diff --git a/tests/cases/compiler/thisInSuperCall3.ts b/tests/cases/compiler/thisInSuperCall3.ts index 74819bb496d74..c4448dad3314b 100644 --- a/tests/cases/compiler/thisInSuperCall3.ts +++ b/tests/cases/compiler/thisInSuperCall3.ts @@ -1,4 +1,3 @@ -// @strict: false class Base { constructor(a: any) {} } diff --git a/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts b/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts index ff0aac59e3d82..390278bc0db16 100644 --- a/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts +++ b/tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts @@ -1,4 +1,3 @@ -// @strict: false var foo = (dummy) => { }; function test() { diff --git a/tests/cases/compiler/topLevel.ts b/tests/cases/compiler/topLevel.ts index 96b322c716488..f65df62a850ea 100644 --- a/tests/cases/compiler/topLevel.ts +++ b/tests/cases/compiler/topLevel.ts @@ -1,4 +1,3 @@ -// @strict: false interface IPoint { x:number; y:number; diff --git a/tests/cases/compiler/topLevelBlockExpando.ts b/tests/cases/compiler/topLevelBlockExpando.ts index 7fe85d6d138ac..35f758d040700 100644 --- a/tests/cases/compiler/topLevelBlockExpando.ts +++ b/tests/cases/compiler/topLevelBlockExpando.ts @@ -1,4 +1,3 @@ -// @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 b75616e9ff150..916004d89d898 100644 --- a/tests/cases/compiler/topLevelExports.ts +++ b/tests/cases/compiler/topLevelExports.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd export var foo = 3; diff --git a/tests/cases/compiler/topLevelLambda.ts b/tests/cases/compiler/topLevelLambda.ts index 1c9f2bd6aadd8..32172be6cd10d 100644 --- a/tests/cases/compiler/topLevelLambda.ts +++ b/tests/cases/compiler/topLevelLambda.ts @@ -1,4 +1,3 @@ -// @strict: false namespace M { var f = () => {this.window;} } diff --git a/tests/cases/compiler/topLevelLambda2.ts b/tests/cases/compiler/topLevelLambda2.ts index 75e4eac2ca376..6e9d53f3b11fc 100644 --- a/tests/cases/compiler/topLevelLambda2.ts +++ b/tests/cases/compiler/topLevelLambda2.ts @@ -1,4 +1,3 @@ -// @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 ac4808598ebfb..badf43d900a61 100644 --- a/tests/cases/compiler/topLevelLambda4.ts +++ b/tests/cases/compiler/topLevelLambda4.ts @@ -1,3 +1,2 @@ -// @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 d795edee5c173..b5518e69d90d0 100644 --- a/tests/cases/compiler/trailingCommasES5.ts +++ b/tests/cases/compiler/trailingCommasES5.ts @@ -1,4 +1,3 @@ -// @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 47e5987eb28a9..4f496dc6afe0c 100644 --- a/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts +++ b/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts @@ -1,4 +1,3 @@ -// @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 0140169796026..4a493a91d8824 100644 --- a/tests/cases/compiler/transformsElideNullUndefinedType.ts +++ b/tests/cases/compiler/transformsElideNullUndefinedType.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es6 var v0: null; diff --git a/tests/cases/compiler/typeAliasExport.ts b/tests/cases/compiler/typeAliasExport.ts index 98e4ec3532e8e..914deba40b57c 100644 --- a/tests/cases/compiler/typeAliasExport.ts +++ b/tests/cases/compiler/typeAliasExport.ts @@ -1,4 +1,3 @@ -// @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 9485ca349ff1e..c8a0d235b7ac7 100644 --- a/tests/cases/compiler/typeArgumentConstraintResolution1.ts +++ b/tests/cases/compiler/typeArgumentConstraintResolution1.ts @@ -1,4 +1,3 @@ -// @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 aa4b45aee0092..cc215adbced8c 100644 --- a/tests/cases/compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts +++ b/tests/cases/compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts @@ -1,4 +1,3 @@ -// @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 b83e8644f02da..70be28f74eb3b 100644 --- a/tests/cases/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.ts +++ b/tests/cases/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @declaration: true // @Filename: file1.ts diff --git a/tests/cases/compiler/typeCheckTypeArgument.ts b/tests/cases/compiler/typeCheckTypeArgument.ts index 9b98ada40122e..1647f40dafb2e 100644 --- a/tests/cases/compiler/typeCheckTypeArgument.ts +++ b/tests/cases/compiler/typeCheckTypeArgument.ts @@ -1,4 +1,3 @@ -// @strict: false var f: () => void; diff --git a/tests/cases/compiler/typeMatch1.ts b/tests/cases/compiler/typeMatch1.ts index e2e8fe8f99b82..333d679f2d30a 100644 --- a/tests/cases/compiler/typeMatch1.ts +++ b/tests/cases/compiler/typeMatch1.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { z; } interface I2 { z; } diff --git a/tests/cases/compiler/typeMatch2.ts b/tests/cases/compiler/typeMatch2.ts index ae3f261f98d53..695e12df22d70 100644 --- a/tests/cases/compiler/typeMatch2.ts +++ b/tests/cases/compiler/typeMatch2.ts @@ -1,4 +1,3 @@ -// @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 8d34b1c7e24f9..dc877d288116f 100644 --- a/tests/cases/compiler/typeName1.ts +++ b/tests/cases/compiler/typeName1.ts @@ -1,4 +1,3 @@ -// @strict: false interface I { k; } diff --git a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts index 08663d891f407..c268c5be54652 100644 --- a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts +++ b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts @@ -1,4 +1,3 @@ -// @strict: false interface A { (x: U[]) } diff --git a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts index c296ea172dabb..5d0653ad5be58 100644 --- a/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts +++ b/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts @@ -1,4 +1,3 @@ -// @strict: false interface A { foo(x: A>) } diff --git a/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts b/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts index 7ff42d654bd3e..69dc8685793a0 100644 --- a/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts +++ b/tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts @@ -1,4 +1,3 @@ -// @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 aad940a7b8fe2..019e722f1e176 100644 --- a/tests/cases/compiler/typeParameterExtendingUnion1.ts +++ b/tests/cases/compiler/typeParameterExtendingUnion1.ts @@ -1,4 +1,3 @@ -// @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 4ae130d713060..347999fa8eb89 100644 --- a/tests/cases/compiler/typeParameterExtendingUnion2.ts +++ b/tests/cases/compiler/typeParameterExtendingUnion2.ts @@ -1,4 +1,3 @@ -// @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 8ead90d30fd22..3d8536ab4cfd6 100644 --- a/tests/cases/compiler/typeParameterFixingWithConstraints.ts +++ b/tests/cases/compiler/typeParameterFixingWithConstraints.ts @@ -1,4 +1,3 @@ -// @strict: false interface IBar { [barId: string]: any; } diff --git a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts index d24329eb285c3..c05b26fd2fcc5 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments.ts @@ -1,4 +1,3 @@ -// @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 b73d0babf96b9..10af9d4817af3 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments2.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments2.ts @@ -1,4 +1,3 @@ -// @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 a116b51379b90..417b66d9d3f29 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments3.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments3.ts @@ -1,4 +1,3 @@ -// @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 1e38ea16ab48c..8fa501906b862 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments4.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments4.ts @@ -1,4 +1,3 @@ -// @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 049b11e224ebb..a74eb04269229 100644 --- a/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments5.ts +++ b/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments5.ts @@ -1,4 +1,3 @@ -// @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 97a5d515b3807..2e4fcb77c19ce 100644 --- a/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts +++ b/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts @@ -1,4 +1,3 @@ -// @strict: false class A { foo() { var x!: T; diff --git a/tests/cases/compiler/typeReferenceDirectives1.ts b/tests/cases/compiler/typeReferenceDirectives1.ts index cf18f5092fac1..e355e009152d4 100644 --- a/tests/cases/compiler/typeReferenceDirectives1.ts +++ b/tests/cases/compiler/typeReferenceDirectives1.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives10.ts b/tests/cases/compiler/typeReferenceDirectives10.ts index 4898b5e224d91..1eb796d03fd25 100644 --- a/tests/cases/compiler/typeReferenceDirectives10.ts +++ b/tests/cases/compiler/typeReferenceDirectives10.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives11.ts b/tests/cases/compiler/typeReferenceDirectives11.ts index e556b4a0f55fe..645e1da279c83 100644 --- a/tests/cases/compiler/typeReferenceDirectives11.ts +++ b/tests/cases/compiler/typeReferenceDirectives11.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives12.ts b/tests/cases/compiler/typeReferenceDirectives12.ts index 01e289e067aaf..e7b0bda315198 100644 --- a/tests/cases/compiler/typeReferenceDirectives12.ts +++ b/tests/cases/compiler/typeReferenceDirectives12.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives13.ts b/tests/cases/compiler/typeReferenceDirectives13.ts index c8a0d40df5cfc..f9dede73267bd 100644 --- a/tests/cases/compiler/typeReferenceDirectives13.ts +++ b/tests/cases/compiler/typeReferenceDirectives13.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives2.ts b/tests/cases/compiler/typeReferenceDirectives2.ts index 48ada16f0f15d..44218683a5a99 100644 --- a/tests/cases/compiler/typeReferenceDirectives2.ts +++ b/tests/cases/compiler/typeReferenceDirectives2.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives3.ts b/tests/cases/compiler/typeReferenceDirectives3.ts index c2ca2f55246bb..8cb2152153de1 100644 --- a/tests/cases/compiler/typeReferenceDirectives3.ts +++ b/tests/cases/compiler/typeReferenceDirectives3.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives4.ts b/tests/cases/compiler/typeReferenceDirectives4.ts index a9efec22415da..a098a2cec7ed0 100644 --- a/tests/cases/compiler/typeReferenceDirectives4.ts +++ b/tests/cases/compiler/typeReferenceDirectives4.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives5.ts b/tests/cases/compiler/typeReferenceDirectives5.ts index dad75ff02f17c..e81ae663e24f6 100644 --- a/tests/cases/compiler/typeReferenceDirectives5.ts +++ b/tests/cases/compiler/typeReferenceDirectives5.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives6.ts b/tests/cases/compiler/typeReferenceDirectives6.ts index eb759e2923263..edf2ece7e06dc 100644 --- a/tests/cases/compiler/typeReferenceDirectives6.ts +++ b/tests/cases/compiler/typeReferenceDirectives6.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @traceResolution: true // @declaration: true diff --git a/tests/cases/compiler/typeReferenceDirectives8.ts b/tests/cases/compiler/typeReferenceDirectives8.ts index e9f222085ee0f..bed69cbf35739 100644 --- a/tests/cases/compiler/typeReferenceDirectives8.ts +++ b/tests/cases/compiler/typeReferenceDirectives8.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeReferenceDirectives9.ts b/tests/cases/compiler/typeReferenceDirectives9.ts index e497e0af2ee68..1ad1aa522885b 100644 --- a/tests/cases/compiler/typeReferenceDirectives9.ts +++ b/tests/cases/compiler/typeReferenceDirectives9.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @declaration: true // @typeRoots: /types diff --git a/tests/cases/compiler/typeResolution.ts b/tests/cases/compiler/typeResolution.ts index ab76032db3889..34832a8d9b2de 100644 --- a/tests/cases/compiler/typeResolution.ts +++ b/tests/cases/compiler/typeResolution.ts @@ -1,4 +1,3 @@ -// @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 acfb3f70b237e..73081fcf5ee0e 100644 --- a/tests/cases/compiler/typedArrays-es5.ts +++ b/tests/cases/compiler/typedArrays-es5.ts @@ -1,4 +1,3 @@ -// @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 fcf19659d7e1d..9a9809d222f3a 100644 --- a/tests/cases/compiler/typedArrays-es6.ts +++ b/tests/cases/compiler/typedArrays-es6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: ES6 const float32Array = new Float32Array(1); diff --git a/tests/cases/compiler/typedArraysSubarray.ts b/tests/cases/compiler/typedArraysSubarray.ts index d0017a51cdeee..f85b953b83962 100644 --- a/tests/cases/compiler/typedArraysSubarray.ts +++ b/tests/cases/compiler/typedArraysSubarray.ts @@ -1,4 +1,3 @@ -// @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 79b68af21107d..9e6c58254a8f5 100644 --- a/tests/cases/compiler/uncaughtCompilerError1.ts +++ b/tests/cases/compiler/uncaughtCompilerError1.ts @@ -1,4 +1,3 @@ -// @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 d63095bdd01cb..3f42068e24e2e 100644 --- a/tests/cases/compiler/undefinedTypeAssignment2.ts +++ b/tests/cases/compiler/undefinedTypeAssignment2.ts @@ -1,2 +1 @@ -// @strict: false var undefined = void 0; diff --git a/tests/cases/compiler/underscoreTest1.ts b/tests/cases/compiler/underscoreTest1.ts index 2604a88aa57b2..27f74909b97d0 100644 --- a/tests/cases/compiler/underscoreTest1.ts +++ b/tests/cases/compiler/underscoreTest1.ts @@ -1,4 +1,3 @@ -// @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 1124f72104dc5..757c0f9917b37 100644 --- a/tests/cases/compiler/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts +++ b/tests/cases/compiler/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts @@ -1,4 +1,3 @@ -// @strict: false interface IStringDictionary { [name: string]: V; } diff --git a/tests/cases/compiler/uniqueSymbolJs.ts b/tests/cases/compiler/uniqueSymbolJs.ts index 93b4323f8028b..faa4bd5fcf8ad 100644 --- a/tests/cases/compiler/uniqueSymbolJs.ts +++ b/tests/cases/compiler/uniqueSymbolJs.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: esnext // @checkJs: true // @allowJs: true diff --git a/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts b/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts index da8c42d4c44f3..2456cda2edfd5 100644 --- a/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts +++ b/tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts @@ -1,4 +1,3 @@ -// @strict: false // @noTypesAndSymbols: true // @esModuleInterop: true // @declaration: true diff --git a/tests/cases/compiler/unknownSymbols1.ts b/tests/cases/compiler/unknownSymbols1.ts index c6c6502de7c31..c091032a7da2a 100644 --- a/tests/cases/compiler/unknownSymbols1.ts +++ b/tests/cases/compiler/unknownSymbols1.ts @@ -1,4 +1,3 @@ -// @strict: false var x = asdf; var y: asdf; diff --git a/tests/cases/compiler/unknownSymbols2.ts b/tests/cases/compiler/unknownSymbols2.ts index ccc57f4fe633e..73b1706ec7060 100644 --- a/tests/cases/compiler/unknownSymbols2.ts +++ b/tests/cases/compiler/unknownSymbols2.ts @@ -1,4 +1,3 @@ -// @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 88a55542966c3..f812a75d3bf2b 100644 --- a/tests/cases/compiler/unknownTypeArgOnCall.ts +++ b/tests/cases/compiler/unknownTypeArgOnCall.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { public clone() { return null; diff --git a/tests/cases/compiler/untypedArgumentInLambdaExpression.ts b/tests/cases/compiler/untypedArgumentInLambdaExpression.ts index a17ad6ea90f12..97fdc9e79adaf 100644 --- a/tests/cases/compiler/untypedArgumentInLambdaExpression.ts +++ b/tests/cases/compiler/untypedArgumentInLambdaExpression.ts @@ -1,4 +1,3 @@ -// @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 bbc81cf04e1ff..6f0e51577fcb1 100644 --- a/tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts +++ b/tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts @@ -1,4 +1,3 @@ -// @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 18cbc927150fd..8cbf75b662b3b 100644 --- a/tests/cases/compiler/untypedModuleImport_withAugmentation2.ts +++ b/tests/cases/compiler/untypedModuleImport_withAugmentation2.ts @@ -1,4 +1,3 @@ -// @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 bfb47dfc87055..1d85f59c7d7ed 100644 --- a/tests/cases/compiler/unusedDestructuring.ts +++ b/tests/cases/compiler/unusedDestructuring.ts @@ -1,4 +1,3 @@ -// @strict: false // @noUnusedLocals: true // @noUnusedParameters: true diff --git a/tests/cases/compiler/unusedDestructuringParameters.ts b/tests/cases/compiler/unusedDestructuringParameters.ts index 02dc332c8d225..7c04235104953 100644 --- a/tests/cases/compiler/unusedDestructuringParameters.ts +++ b/tests/cases/compiler/unusedDestructuringParameters.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedParameters: true const f = ([a]) => { }; f([1]); diff --git a/tests/cases/compiler/unusedImports13.ts b/tests/cases/compiler/unusedImports13.ts index fb36ac6d41e66..af188e70eae99 100644 --- a/tests/cases/compiler/unusedImports13.ts +++ b/tests/cases/compiler/unusedImports13.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@module: commonjs //@jsx: preserve diff --git a/tests/cases/compiler/unusedImports14.ts b/tests/cases/compiler/unusedImports14.ts index 6e18037561720..1823d4bb49b5f 100644 --- a/tests/cases/compiler/unusedImports14.ts +++ b/tests/cases/compiler/unusedImports14.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@module: commonjs //@jsx: react diff --git a/tests/cases/compiler/unusedImports15.ts b/tests/cases/compiler/unusedImports15.ts index 7ecc010fb6058..ef6b277d21de2 100644 --- a/tests/cases/compiler/unusedImports15.ts +++ b/tests/cases/compiler/unusedImports15.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@module: commonjs //@reactNamespace: Element diff --git a/tests/cases/compiler/unusedImports16.ts b/tests/cases/compiler/unusedImports16.ts index 834c4752c8e8d..ff0c38bb75ea6 100644 --- a/tests/cases/compiler/unusedImports16.ts +++ b/tests/cases/compiler/unusedImports16.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@module: commonjs //@reactNamespace: Element diff --git a/tests/cases/compiler/unusedLocalsAndParameters.ts b/tests/cases/compiler/unusedLocalsAndParameters.ts index d54c74a1853f4..a3cab013b7e7e 100644 --- a/tests/cases/compiler/unusedLocalsAndParameters.ts +++ b/tests/cases/compiler/unusedLocalsAndParameters.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts b/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts index b9aa2125c4901..75b98308199d5 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersDeferred.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts b/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts index c7b520efb23ac..32affb28be3d1 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersOverloadSignatures.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts index d43d47d74f7ff..b94f88845bc2e 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts index b0f8222262cb3..23d23a5bc1892 100644 --- a/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts +++ b/tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts b/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts index 79b3e615f5fe7..431d4fd15d8cb 100644 --- a/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts +++ b/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts @@ -1,4 +1,3 @@ -// @strict: false // @noUnusedLocals:true // @Filename: /a.ts diff --git a/tests/cases/compiler/unusedMethodsInInterface.ts b/tests/cases/compiler/unusedMethodsInInterface.ts index d20364666e45c..29769bc5b115c 100644 --- a/tests/cases/compiler/unusedMethodsInInterface.ts +++ b/tests/cases/compiler/unusedMethodsInInterface.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParameterProperty2.ts b/tests/cases/compiler/unusedParameterProperty2.ts index 21a3f728cb424..4dc3c5d2dbf5d 100644 --- a/tests/cases/compiler/unusedParameterProperty2.ts +++ b/tests/cases/compiler/unusedParameterProperty2.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParametersInLambda1.ts b/tests/cases/compiler/unusedParametersInLambda1.ts index 4495c816e1de0..431ac1eb1dce7 100644 --- a/tests/cases/compiler/unusedParametersInLambda1.ts +++ b/tests/cases/compiler/unusedParametersInLambda1.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParametersInLambda2.ts b/tests/cases/compiler/unusedParametersInLambda2.ts index 32c4678cc3c3a..ed4dfb3404b11 100644 --- a/tests/cases/compiler/unusedParametersInLambda2.ts +++ b/tests/cases/compiler/unusedParametersInLambda2.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedParametersWithUnderscore.ts b/tests/cases/compiler/unusedParametersWithUnderscore.ts index e0f553b710833..e7382e5c2af2c 100644 --- a/tests/cases/compiler/unusedParametersWithUnderscore.ts +++ b/tests/cases/compiler/unusedParametersWithUnderscore.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tests/cases/compiler/unusedPrivateMembers.ts b/tests/cases/compiler/unusedPrivateMembers.ts index 261023d59d3f5..034446a63a09f 100644 --- a/tests/cases/compiler/unusedPrivateMembers.ts +++ b/tests/cases/compiler/unusedPrivateMembers.ts @@ -1,4 +1,3 @@ -// @strict: false //@noUnusedLocals:true //@noUnusedParameters:true //@target:ES5 diff --git a/tests/cases/compiler/varArgsOnConstructorTypes.ts b/tests/cases/compiler/varArgsOnConstructorTypes.ts index 6c70f1be95096..e6e4a2adc7221 100644 --- a/tests/cases/compiler/varArgsOnConstructorTypes.ts +++ b/tests/cases/compiler/varArgsOnConstructorTypes.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd export class A { constructor(ctor) { } diff --git a/tests/cases/compiler/varAsID.ts b/tests/cases/compiler/varAsID.ts index 900559ea5e0f9..ec8e61504b267 100644 --- a/tests/cases/compiler/varAsID.ts +++ b/tests/cases/compiler/varAsID.ts @@ -1,4 +1,3 @@ -// @strict: false class Foo { var; // ok diff --git a/tests/cases/compiler/varBlock.ts b/tests/cases/compiler/varBlock.ts index 893ad101b69fe..5f3121656ba39 100644 --- a/tests/cases/compiler/varBlock.ts +++ b/tests/cases/compiler/varBlock.ts @@ -1,4 +1,3 @@ -// @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 1e67daea2dc10..8cdb4c8df225f 100644 --- a/tests/cases/compiler/vardecl.ts +++ b/tests/cases/compiler/vardecl.ts @@ -1,4 +1,3 @@ -// @strict: false // @declaration: true var simpleVar; diff --git a/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts b/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts index 16bcbc370b09e..af0f733837910 100644 --- a/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts +++ b/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts @@ -1,4 +1,3 @@ -// @strict: false // @lib: es5 namespace WinJS { export interface ValueCallback { diff --git a/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts b/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts index 9120386c13bb5..e3fcf1d34006d 100644 --- a/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts +++ b/tests/cases/compiler/verbatimModuleSyntaxReactReference.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: preserve // @verbatimModuleSyntax: true // @jsx: react diff --git a/tests/cases/compiler/voidOperator1.ts b/tests/cases/compiler/voidOperator1.ts index aa73e71d70f0a..90c1713edaea0 100644 --- a/tests/cases/compiler/voidOperator1.ts +++ b/tests/cases/compiler/voidOperator1.ts @@ -1,4 +1,3 @@ -// @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 9432c65fac719..49aaa74af8f74 100644 --- a/tests/cases/compiler/voidReturnLambdaValue.ts +++ b/tests/cases/compiler/voidReturnLambdaValue.ts @@ -1,4 +1,3 @@ -// @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 e9ba31536e5ca..b80fa2bb8b28d 100644 --- a/tests/cases/compiler/wellKnownSymbolExpando.ts +++ b/tests/cases/compiler/wellKnownSymbolExpando.ts @@ -1,4 +1,3 @@ -// @strict: false // @noEmit: true // @target: esnext diff --git a/tests/cases/compiler/widenedTypes1.ts b/tests/cases/compiler/widenedTypes1.ts index 1c61ec1c988ec..c4b20eff2ae49 100644 --- a/tests/cases/compiler/widenedTypes1.ts +++ b/tests/cases/compiler/widenedTypes1.ts @@ -1,4 +1,3 @@ -// @strict: false var a = null; var b = undefined; diff --git a/tests/cases/compiler/withExportDecl.ts b/tests/cases/compiler/withExportDecl.ts index 064d773e270f1..0b13755c7ad1b 100644 --- a/tests/cases/compiler/withExportDecl.ts +++ b/tests/cases/compiler/withExportDecl.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd // @declaration: true var simpleVar; diff --git a/tests/cases/compiler/withImportDecl.ts b/tests/cases/compiler/withImportDecl.ts index f2391cfc65372..5da2eb17be2a3 100644 --- a/tests/cases/compiler/withImportDecl.ts +++ b/tests/cases/compiler/withImportDecl.ts @@ -1,4 +1,3 @@ -// @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 7c858e6e87294..2c8ee00fe0eb2 100644 --- a/tests/cases/compiler/wrappedIncovations1.ts +++ b/tests/cases/compiler/wrappedIncovations1.ts @@ -1,4 +1,3 @@ -// @strict: false var v = this .foo() .bar() diff --git a/tests/cases/compiler/wrappedIncovations2.ts b/tests/cases/compiler/wrappedIncovations2.ts index cfad042b84194..eba99b425e4cc 100644 --- a/tests/cases/compiler/wrappedIncovations2.ts +++ b/tests/cases/compiler/wrappedIncovations2.ts @@ -1,4 +1,3 @@ -// @strict: false var v = this. foo(). bar(). diff --git a/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts b/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts index 00862a8821f57..58dfe44801310 100644 --- a/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts +++ b/tests/cases/conformance/Symbols/ES5SymbolProperty2.ts @@ -1,4 +1,3 @@ -// @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 aac02d0712942..65312ebe82661 100644 --- a/tests/cases/conformance/ambient/ambientDeclarations.ts +++ b/tests/cases/conformance/ambient/ambientDeclarations.ts @@ -1,4 +1,3 @@ -// @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 842925b05fea5..698033cd27163 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsExternal.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsExternal.ts @@ -1,4 +1,3 @@ -// @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 4c5d12df3124b..d48f50bfa5059 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts @@ -1,4 +1,3 @@ -// @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 8de1bc560ffa7..d9cd0802f417d 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging1.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging1.ts @@ -1,4 +1,3 @@ -// @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 83c98ad7a3114..7b02846c242b7 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging2.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging2.ts @@ -1,4 +1,3 @@ -// @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 715b6afa809b9..85232eca2208b 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts @@ -1,4 +1,3 @@ -// @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 cd93a486d1c72..76f9081906ca8 100644 --- a/tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts @@ -1,2 +1 @@ -// @strict: false declare module "too*many*asterisks" { } diff --git a/tests/cases/conformance/ambient/ambientErrors.ts b/tests/cases/conformance/ambient/ambientErrors.ts index 9a91367b203e4..ea0c92ab4fa37 100644 --- a/tests/cases/conformance/ambient/ambientErrors.ts +++ b/tests/cases/conformance/ambient/ambientErrors.ts @@ -1,4 +1,3 @@ -// @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 0885ee94ab004..a1b6cf479226f 100644 --- a/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts +++ b/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts @@ -1,4 +1,3 @@ -// @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 6e550532bdb72..937246c92dffb 100644 --- a/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts +++ b/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts @@ -1,4 +1,3 @@ -// @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 942c566ad4d00..034f10412d07f 100644 --- a/tests/cases/conformance/async/asyncFunctionDeclarationParameterEvaluation.ts +++ b/tests/cases/conformance/async/asyncFunctionDeclarationParameterEvaluation.ts @@ -1,4 +1,3 @@ -// @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 8f6b822448d6c..1ade02c09d2e8 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es2017.ts @@ -1,4 +1,3 @@ -// @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 5521f791d83e2..b11441372ffdc 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts @@ -1,4 +1,3 @@ -// @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 a6be01fb86b77..9b5924fc1455f 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts @@ -1,4 +1,3 @@ -// @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 953a245e86230..aabe5a99372ad 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts @@ -1,4 +1,3 @@ -// @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 6d27ce06fdd2a..93254fee5c746 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts @@ -1,4 +1,3 @@ -// @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 9f36c8447bcc3..9b63b7bd468c3 100644 --- a/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es2017.ts +++ b/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es2017.ts @@ -1,4 +1,3 @@ -// @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 574bf31123e10..88ed3eea5fff4 100644 --- a/tests/cases/conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts +++ b/tests/cases/conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts @@ -1,4 +1,3 @@ -// @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 ec91e7501ca4f..9b744713945d0 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration10_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration10_es2017.ts @@ -1,4 +1,3 @@ -// @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 8d4264ef9c71e..08711a4cfbd8e 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration2_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration2_es2017.ts @@ -1,4 +1,3 @@ -// @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 a6be01fb86b77..9b5924fc1455f 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration3_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration3_es2017.ts @@ -1,4 +1,3 @@ -// @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 6bdfaaa5ab671..c57fb73d6d712 100644 --- a/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration5_es2017.ts +++ b/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration5_es2017.ts @@ -1,4 +1,3 @@ -// @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 025204f36ebd5..e6bb588b2b0ac 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es5.ts @@ -1,4 +1,3 @@ -// @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 8ecd94eb07b51..120b5127a0078 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts @@ -1,4 +1,3 @@ -// @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 8591b110fab9a..810d7bc7e0568 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts @@ -1,4 +1,3 @@ -// @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 a70d7ec5c4264..728e2e8ee7252 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts @@ -1,4 +1,3 @@ -// @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 8b5bc1317b98b..7f1e072a3f2ae 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts @@ -1,4 +1,3 @@ -// @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 be37addad4f87..7db76c570848e 100644 --- a/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts +++ b/tests/cases/conformance/async/es5/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts @@ -1,4 +1,3 @@ -// @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 8736cccfd67a5..419922b080618 100644 --- a/tests/cases/conformance/async/es5/asyncSetter_es5.ts +++ b/tests/cases/conformance/async/es5/asyncSetter_es5.ts @@ -1,4 +1,3 @@ -// @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 a5831c35e1174..f1cb80162bd40 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts @@ -1,4 +1,3 @@ -// @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 2ffff7b450ee1..373677bf58f7a 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts @@ -1,4 +1,3 @@ -// @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 3a96ed9e35d40..b1e337938e00b 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts @@ -1,4 +1,3 @@ -// @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 8591b110fab9a..810d7bc7e0568 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts @@ -1,4 +1,3 @@ -// @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 0accc5cfa74a7..3c71741da143a 100644 --- a/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts +++ b/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts @@ -1,4 +1,3 @@ -// @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 8f6b822448d6c..1ade02c09d2e8 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts @@ -1,4 +1,3 @@ -// @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 7f00a755f8686..bf39735d4603f 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts @@ -1,4 +1,3 @@ -// @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 1a990dc7c8383..4ae27c596f1ab 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts @@ -1,4 +1,3 @@ -// @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 e7d58c107e94e..174a619bdf9f9 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts @@ -1,4 +1,3 @@ -// @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 e6ae414295971..da041fe472b30 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts @@ -1,4 +1,3 @@ -// @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 f49cd81f6945a..6a5086f70d076 100644 --- a/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts +++ b/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts @@ -1,4 +1,3 @@ -// @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 31ac42cd1d9ef..8eedcbb5288a2 100644 --- a/tests/cases/conformance/async/es6/asyncSetter_es6.ts +++ b/tests/cases/conformance/async/es6/asyncSetter_es6.ts @@ -1,4 +1,3 @@ -// @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 07d0a1dc601bd..7b5ef4ac60b54 100644 --- a/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts +++ b/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts @@ -1,4 +1,3 @@ -// @strict: false // @useUnknownInCatchVariables: false // @target: es2015 // @noEmitHelpers: true diff --git a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts index 1b7e814d548d6..aab1f0013ecf9 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts @@ -1,4 +1,3 @@ -// @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 f5407c313cf36..74018b73678a9 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts @@ -1,4 +1,3 @@ -// @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 569920f2c94e1..25a153b4a3412 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts @@ -1,4 +1,3 @@ -// @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 1a990dc7c8383..4ae27c596f1ab 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts @@ -1,4 +1,3 @@ -// @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 50a0723847875..eb3cd1db55675 100644 --- a/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts +++ b/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts @@ -1,4 +1,3 @@ -// @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 c315ef7af1677..b4aef8f71d995 100644 --- a/tests/cases/conformance/asyncGenerators/asyncGeneratorParameterEvaluation.ts +++ b/tests/cases/conformance/asyncGenerators/asyncGeneratorParameterEvaluation.ts @@ -1,4 +1,3 @@ -// @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 3e0d7a6b15799..0de782de2132b 100644 --- a/tests/cases/conformance/classes/awaitAndYieldInProperty.ts +++ b/tests/cases/conformance/classes/awaitAndYieldInProperty.ts @@ -1,4 +1,3 @@ -// @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 6dff4c4e54af1..2c59b6f93ccdf 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts @@ -1,4 +1,3 @@ -// @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 d1c4eda7e7d3c..747b8dafe6ec3 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts @@ -1,4 +1,3 @@ -// @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 f45c437677001..14dfd1d86d840 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts @@ -1,4 +1,3 @@ -// @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 09afe442c31b6..0aa57b75835f8 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractExtends.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractExtends.ts @@ -1,4 +1,3 @@ -// @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 972f96881615a..f69ea30d0d69d 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractGeneric.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractGeneric.ts @@ -1,4 +1,3 @@ -// @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 9668986793d1e..ced15607f84f9 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInheritance1.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInheritance1.ts @@ -1,4 +1,3 @@ -// @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 d4b34334bea9c..98a2091bc0cc5 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts @@ -1,4 +1,3 @@ -// @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 465f918893d70..969a39288e09b 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts @@ -1,4 +1,3 @@ -// @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 57e049f43930c..c30a03f8217a8 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverloads.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverloads.ts @@ -1,4 +1,3 @@ -// @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 6afdcf18ed2e2..7e02dbd4d9864 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverrideWithAbstract.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractOverrideWithAbstract.ts @@ -1,4 +1,3 @@ -// @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 3286e775c209f..e93a670b55fac 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSuperCalls.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSuperCalls.ts @@ -1,4 +1,3 @@ -// @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 2e9e95333cb61..e333811c67f1e 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractUsingAbstractMethods2.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractUsingAbstractMethods2.ts @@ -1,4 +1,3 @@ -// @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 c1380e36a3a7f..e3664da024e28 100644 --- a/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts +++ b/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsValidConstructorFunction.ts @@ -1,4 +1,3 @@ -// @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 6c4dd98275b7a..e7c43d68c98cd 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.2.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.2.ts @@ -1,4 +1,3 @@ -// @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 95611edacbde4..7f55d82804fba 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.3.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.3.ts @@ -1,4 +1,3 @@ -// @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 f2d74313ad31e..1d6c683dc7486 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterBindingPattern.ts @@ -1,4 +1,3 @@ -// @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 387677c0cfb13..a4f0657f2bfbd 100644 --- a/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterInitializer.2.ts +++ b/tests/cases/conformance/classes/classExpressions/classWithStaticFieldInParameterInitializer.2.ts @@ -1,4 +1,3 @@ -// @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 97037bd6d4b66..75cdbd61d44ca 100644 --- a/tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts +++ b/tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts @@ -1,4 +1,3 @@ -// @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 ca38abecd2b06..b3f535c4c3dfd 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts @@ -1,4 +1,3 @@ -// @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 b3ba19a8391ac..bdbcd7f9592cb 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts @@ -1,4 +1,3 @@ -// @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 86e6bf1c0a2a0..a56389186ef1f 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues2.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues2.ts @@ -1,4 +1,3 @@ -// @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 61822575beaca..3ec148a9729aa 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts @@ -1,4 +1,3 @@ -// @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 a0e63f9e41433..c84594eb4f097 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyInAmbientClass.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyInAmbientClass.ts @@ -1,4 +1,3 @@ -// @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 748e5ee30ff22..1ede3af785ccf 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsWithThisArg.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsWithThisArg.ts @@ -1,4 +1,3 @@ -// @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 2cc495efc2e2b..ab580777d8e5b 100644 --- a/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts +++ b/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperProperties.ts @@ -1,4 +1,3 @@ -// @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 fc11a3fc40b65..757a141bd7a4c 100644 --- a/tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts +++ b/tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts @@ -1,4 +1,3 @@ -// @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 ce5d89d7d5c46..04745bd8de561 100644 --- a/tests/cases/conformance/classes/members/accessibility/classPropertyAsPrivate.ts +++ b/tests/cases/conformance/classes/members/accessibility/classPropertyAsPrivate.ts @@ -1,4 +1,3 @@ -// @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 d97fec042548f..ab40eef28b991 100644 --- a/tests/cases/conformance/classes/members/accessibility/classPropertyAsProtected.ts +++ b/tests/cases/conformance/classes/members/accessibility/classPropertyAsProtected.ts @@ -1,4 +1,3 @@ -// @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 27d11ad700e0d..7d631175ee8db 100644 --- a/tests/cases/conformance/classes/members/accessibility/classPropertyIsPublicByDefault.ts +++ b/tests/cases/conformance/classes/members/accessibility/classPropertyIsPublicByDefault.ts @@ -1,4 +1,3 @@ -// @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 1f3acc71b860f..cbbf311a00e15 100644 --- a/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinClass.ts +++ b/tests/cases/conformance/classes/members/accessibility/privateClassPropertyAccessibleWithinClass.ts @@ -1,4 +1,3 @@ -// @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 67cc563f1f831..f1be3445a5acd 100644 --- a/tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts +++ b/tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts @@ -1,4 +1,3 @@ -// @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 c9b1096f4929d..5e25727d5f6c1 100644 --- a/tests/cases/conformance/classes/members/accessibility/privateProtectedMembersAreNotAccessibleDestructuring.ts +++ b/tests/cases/conformance/classes/members/accessibility/privateProtectedMembersAreNotAccessibleDestructuring.ts @@ -1,4 +1,3 @@ -// @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 871261fa1315b..08f99af59727f 100644 --- a/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts +++ b/tests/cases/conformance/classes/members/accessibility/protectedClassPropertyAccessibleWithinClass.ts @@ -1,4 +1,3 @@ -// @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 08e95d434aaf1..297caa3030d78 100644 --- a/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassIncludesInheritedMembers.ts +++ b/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassIncludesInheritedMembers.ts @@ -1,4 +1,3 @@ -// @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 6cfde08687620..e716307be1171 100644 --- a/tests/cases/conformance/classes/members/instanceAndStaticMembers/superInStaticMembers1.ts +++ b/tests/cases/conformance/classes/members/instanceAndStaticMembers/superInStaticMembers1.ts @@ -1,4 +1,3 @@ -// @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 ea5afe9baf7a9..ce7dae715b6fa 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameAccessorsCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameAccessorsCallExpression.ts @@ -1,4 +1,3 @@ -// @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 f0b06d6713ee1..b3930010db77b 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameBadSuper.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameBadSuper.ts @@ -1,4 +1,3 @@ -// @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 5326dbbd64d76..bb110342444b3 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameBadSuperUseDefineForClassFields.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameBadSuperUseDefineForClassFields.ts @@ -1,4 +1,3 @@ -// @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 fe8b9a0565933..e6639b6bc711e 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameComputedPropertyName3.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameComputedPropertyName3.ts @@ -1,4 +1,3 @@ -// @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 bd30223410129..9f074b7b6fdd0 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameConstructorSignature.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameConstructorSignature.ts @@ -1,4 +1,3 @@ -// @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 59827bac6d376..018024073fb32 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameDeclarationMerging.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameDeclarationMerging.ts @@ -1,4 +1,3 @@ -// @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 466a4b79bba86..407a59185403e 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameFieldCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameFieldCallExpression.ts @@ -1,4 +1,3 @@ -// @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 91aa4c78c7410..decfa7aec78b4 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameFieldInitializer.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameFieldInitializer.ts @@ -1,4 +1,3 @@ -// @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 3c8f644404d0f..54035233239f1 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameFieldsESNext.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameFieldsESNext.ts @@ -1,4 +1,3 @@ -// @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 6a2f4e29d7d42..4a076565bfc62 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameHashCharName.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameHashCharName.ts @@ -1,4 +1,3 @@ -// @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 73b327e39ccd7..5bc814b9ff87d 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameLateSuper.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameLateSuper.ts @@ -1,4 +1,3 @@ -// @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 1789b2c4cc254..7cee8f089c632 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameLateSuperUseDefineForClassFields.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameLateSuperUseDefineForClassFields.ts @@ -1,4 +1,3 @@ -// @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 67f546d04f08e..d76deec97de3e 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameMethodCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameMethodCallExpression.ts @@ -1,4 +1,3 @@ -// @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 45e3ab2f45218..e7d55345dbeee 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts @@ -1,4 +1,3 @@ -// @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 45cc495fcbc71..ae0aeda5efd5e 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameSetterNoGetter.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameSetterNoGetter.ts @@ -1,4 +1,3 @@ -// @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 7e1e370c2a537..ac5a5ade7e3d2 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticAccessorsCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticAccessorsCallExpression.ts @@ -1,4 +1,3 @@ -// @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 8ed0021c21eda..723a36842c7f7 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldCallExpression.ts @@ -1,4 +1,3 @@ -// @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 0f85123fb16a6..93763c9608e7d 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldInitializer.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldInitializer.ts @@ -1,4 +1,3 @@ -// @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 1de2045ecd725..f596214129e05 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldNoInitializer.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticFieldNoInitializer.ts @@ -1,4 +1,3 @@ -// @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 fa6620870edaf..8205599dc96ab 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNameStaticMethodCallExpression.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNameStaticMethodCallExpression.ts @@ -1,4 +1,3 @@ -// @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 01f6a8a74894a..c330e117003fe 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNamesInterfaceExtendingClass.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNamesInterfaceExtendingClass.ts @@ -1,4 +1,3 @@ -// @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 e0cb2da06f63c..dd79f670e57af 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNamesUnique-2.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNamesUnique-2.ts @@ -1,4 +1,3 @@ -// @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 604fd439ed28c..c47e709c284f1 100644 --- a/tests/cases/conformance/classes/members/privateNames/privateNamesUseBeforeDef.ts +++ b/tests/cases/conformance/classes/members/privateNames/privateNamesUseBeforeDef.ts @@ -1,4 +1,3 @@ -// @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 d51dd6f91cdff..43d061f9cf660 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts @@ -1,4 +1,3 @@ -// @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 a1108bdda2d6d..69b1802417ffe 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessor11.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessor11.ts @@ -1,4 +1,3 @@ -// @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 d94ad6e55ee5c..6039dedfe306d 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts @@ -1,4 +1,3 @@ -// @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 3ab2acb61c15d..36bdb0b4f3101 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts @@ -1,4 +1,3 @@ -// @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 71d6e5a913520..f620222358ed6 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorLocals.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorLocals.ts @@ -1,4 +1,3 @@ -// @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 82875c7d00ce1..988a45eda78df 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts @@ -1,4 +1,3 @@ -// @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 d6bbb1752f662..7704e60c6069b 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts @@ -1,4 +1,3 @@ -// @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 f979aafd51889..d573375279310 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionOverloadMixingStaticAndInstance.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionOverloadMixingStaticAndInstance.ts @@ -1,4 +1,3 @@ -// @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 bed22049ac3a0..45401bf0554c3 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPrivateOverloads.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPrivateOverloads.ts @@ -1,4 +1,3 @@ -// @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 f8927c743aec9..9114ae91650a0 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicOverloads.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicOverloads.ts @@ -1,4 +1,3 @@ -// @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 3507a48d545de..45022a40bbf36 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicPrivateOverloads.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicPrivateOverloads.ts @@ -1,4 +1,3 @@ -// @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 1aec8ffeae4a9..cb563eedf1867 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/optionalProperty.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/optionalProperty.ts @@ -1,4 +1,3 @@ -// @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 87352d086683a..b6c3b62bbba8d 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndAccessorWithSameName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndAccessorWithSameName.ts @@ -1,4 +1,3 @@ -// @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 f78d39dc4d9d4..362d2884a85db 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/propertyAndFunctionWithSameName.ts @@ -1,4 +1,3 @@ -// @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 2c02bac5c0073..5c098643712d5 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts @@ -1,4 +1,3 @@ -// @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 ba17c07fae585..e4b639254325d 100644 --- a/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts +++ b/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts @@ -1,4 +1,3 @@ -// @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 8e0baf1faa515..fb0b6ae0fb0e2 100644 --- a/tests/cases/conformance/declarationEmit/nullPropertyName.ts +++ b/tests/cases/conformance/declarationEmit/nullPropertyName.ts @@ -1,4 +1,3 @@ -// @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 c0545f05c9c37..4d7ccc6a82536 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts @@ -1,4 +1,3 @@ -// @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 edb86bd521da5..ffbd27136219f 100644 --- a/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts +++ b/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts @@ -1,4 +1,3 @@ -// @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 768abd5140e8d..4e0373ff5d13c 100644 --- a/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts +++ b/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts @@ -1,4 +1,3 @@ -// @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 8d0a4b82a5918..400d4fbe5a80a 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod16.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod16.ts @@ -1,4 +1,3 @@ -// @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 0e2a4620e2590..1aa25d7f3292c 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts @@ -1,4 +1,3 @@ -// @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 eac6295a4991a..9417c44c5bac4 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod18.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod18.ts @@ -1,4 +1,3 @@ -// @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 e42d8876c6f2e..8f293b31f9063 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod19.ts @@ -1,4 +1,3 @@ -// @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 c65aac9f68f3f..b951bd5c8c90a 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts @@ -1,4 +1,3 @@ -// @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 3e13ebe4ddfda..722463b33dab2 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts @@ -1,4 +1,3 @@ -// @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 36f780ab115b3..ee5a3f33bf10e 100644 --- a/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts +++ b/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts @@ -1,4 +1,3 @@ -// @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 5a32dcbe922f8..026949fb5b8ec 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts @@ -1,4 +1,3 @@ -// @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 703742501bda5..2b10c0aec0872 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts @@ -1,4 +1,3 @@ -// @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 7503a8d27ca78..eb720b20dff85 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts @@ -1,4 +1,3 @@ -// @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 fd2551c5c63e9..fb8841df243b4 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty12.ts @@ -1,4 +1,3 @@ -// @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 5a35801a9cb0c..95977876681ac 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts @@ -1,4 +1,3 @@ -// @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 c72735638f979..01af3e6ee810e 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts @@ -1,4 +1,3 @@ -// @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 d3937c8c6b95e..55fd6fe93e1e8 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts @@ -1,4 +1,3 @@ -// @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 6c2512da30039..412a592ece1a6 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts @@ -1,4 +1,3 @@ -// @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 00f762e7a4e88..0e11e103ce746 100644 --- a/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts +++ b/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts @@ -1,4 +1,3 @@ -// @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 5cdff2c8b008b..1b99e0e186303 100644 --- a/tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2.ts +++ b/tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2.ts @@ -1,4 +1,3 @@ -// @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 c5777c92be9c8..815da8de4de27 100644 --- a/tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts +++ b/tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts @@ -1,4 +1,3 @@ -// @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 7980f81c87788..9b8cdd276f22e 100644 --- a/tests/cases/conformance/decorators/missingDecoratorType.ts +++ b/tests/cases/conformance/decorators/missingDecoratorType.ts @@ -1,4 +1,3 @@ -// @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 6b81dd93ddc58..fe1bc56dd1550 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,4 +1,3 @@ -// @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 fcb48c2044451..280bda810d0b8 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,4 +1,3 @@ -// @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 ad0a61d624d17..d90e14a19d110 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,4 +1,3 @@ -// @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 e0bbb070a66ff..1998b8674a37e 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,4 +1,3 @@ -// @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 db5ff182993f6..6e7dc0622bcb1 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,4 +1,3 @@ -// @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 b8b9f7e58b150..ebeee3e4e270c 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,4 +1,3 @@ -// @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 45519c9ffaa24..79bb5a3d25520 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,4 +1,3 @@ -// @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 96826d10e5c41..d5e1bc7b1f844 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,4 +1,3 @@ -// @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 6ce01831bf801..0bd75b03649e0 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,4 +1,3 @@ -// @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 038f4fef79209..f7b5caf181c97 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,4 +1,3 @@ -// @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 7b1b585b11eae..cc756a2f4adf6 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,4 +1,3 @@ -// @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 a47cf524cb0ad..8c33be18d1f9e 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,4 +1,3 @@ -// @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 41d683b297343..c6b477f3929b7 100644 --- a/tests/cases/conformance/enums/awaitAndYield.ts +++ b/tests/cases/conformance/enums/awaitAndYield.ts @@ -1,4 +1,3 @@ -// @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 f4ddc661a6b8d..0a0f9d920cb0e 100644 --- a/tests/cases/conformance/enums/enumBasics.ts +++ b/tests/cases/conformance/enums/enumBasics.ts @@ -1,4 +1,3 @@ -// @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 b4cecd0f1f8b0..b1ae4224e1e29 100644 --- a/tests/cases/conformance/es2019/globalThisUnknown.ts +++ b/tests/cases/conformance/es2019/globalThisUnknown.ts @@ -1,4 +1,3 @@ -// @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 c9e0eb78e0a87..3a83ab8085ae7 100644 --- a/tests/cases/conformance/es2021/logicalAssignment/logicalAssignment10.ts +++ b/tests/cases/conformance/es2021/logicalAssignment/logicalAssignment10.ts @@ -1,4 +1,3 @@ -// @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 b2c727d91d312..4e65648acca4e 100644 --- a/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts +++ b/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts @@ -1,4 +1,3 @@ -// @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 a62d16de9f5af..553aa871c38c3 100644 --- a/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts +++ b/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts @@ -1,4 +1,3 @@ -// @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 a35f578e90f2f..0f63356eaf686 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty10.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty10.ts @@ -1,4 +1,3 @@ -// @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 9196e609f3afc..1377970613ddf 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty11.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty11.ts @@ -1,4 +1,3 @@ -// @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 e0f905ab9b825..5a835a34b629f 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty12.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty12.ts @@ -1,4 +1,3 @@ -// @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 c4535f1eafb21..4b5023e1d0655 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty13.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty13.ts @@ -1,4 +1,3 @@ -// @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 098061d6ab312..0109ec3be251e 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty14.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty14.ts @@ -1,4 +1,3 @@ -// @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 3b4acf21b737d..3ec6c6ecc7a9a 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty15.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty15.ts @@ -1,4 +1,3 @@ -// @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 f52a040d6a74f..2b3a976df9883 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty16.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty16.ts @@ -1,4 +1,3 @@ -// @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 481ffccd7f808..df9b99f5ca427 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty19.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty19.ts @@ -1,4 +1,3 @@ -// @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 bc55c5c32b987..af3a95eb155ab 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty39.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty39.ts @@ -1,4 +1,3 @@ -// @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 41fd894d0c05b..91fd953a4d77a 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty40.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty40.ts @@ -1,4 +1,3 @@ -// @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 476524fe3122f..9c9583264cd7f 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty41.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty41.ts @@ -1,4 +1,3 @@ -// @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 fa71ee0b6a287..79fbce7bb90cd 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty42.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty42.ts @@ -1,4 +1,3 @@ -// @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 34780ae8914b2..b8d63f74fe8c2 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty48.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty48.ts @@ -1,4 +1,3 @@ -// @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 fe637df51775c..aa1ae1290c9a1 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty49.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty49.ts @@ -1,4 +1,3 @@ -// @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 7937bf3f2ce0d..a77c88a563752 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty56.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty56.ts @@ -1,4 +1,3 @@ -// @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 dc03bf0f5b17f..b60c18a05ee47 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty57.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty57.ts @@ -1,4 +1,3 @@ -// @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 c77acf58e4e23..19c6583777ea5 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty8.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty8.ts @@ -1,4 +1,3 @@ -// @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 c1836c501bfc1..33ffcb5ee2501 100644 --- a/tests/cases/conformance/es6/Symbols/symbolProperty9.ts +++ b/tests/cases/conformance/es6/Symbols/symbolProperty9.ts @@ -1,4 +1,3 @@ -// @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 f59762296f053..c20a8be874b97 100644 --- a/tests/cases/conformance/es6/Symbols/symbolType14.ts +++ b/tests/cases/conformance/es6/Symbols/symbolType14.ts @@ -1,3 +1,2 @@ -// @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 b26a20b356301..95824f1794bd7 100644 --- a/tests/cases/conformance/es6/Symbols/symbolType17.ts +++ b/tests/cases/conformance/es6/Symbols/symbolType17.ts @@ -1,4 +1,3 @@ -// @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 880770f95044a..caa841717371b 100644 --- a/tests/cases/conformance/es6/Symbols/symbolType18.ts +++ b/tests/cases/conformance/es6/Symbols/symbolType18.ts @@ -1,4 +1,3 @@ -// @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 10b5c64d3e2a8..6b932ded4400c 100644 --- a/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts +++ b/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts @@ -1,4 +1,3 @@ -// @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 e5c1e3ed79e45..33288184b16d6 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts @@ -1,4 +1,3 @@ -// @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 c981a00628d3c..d41c56fe953ed 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts @@ -1,4 +1,3 @@ -// @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 f42ec5220bffa..01204a1e61949 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts @@ -1,4 +1,3 @@ -// @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 fab59d89ae6bd..c42e6e97177e5 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts @@ -1,4 +1,3 @@ -// @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 643a9a846a1e1..e52067cc7f42e 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts @@ -1,4 +1,3 @@ -// @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 b9610d6c81893..d795b527d064d 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES6.ts @@ -1,4 +1,3 @@ -// @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 6baf229c2d43f..6cff3715d83a9 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts @@ -1,4 +1,3 @@ -// @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 578b7627be739..d31f63d2e87f8 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES6.ts @@ -1,4 +1,3 @@ -// @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 7d72d1d233442..7c2517cd5145a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts @@ -1,4 +1,3 @@ -// @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 2e640fa5935eb..c63ec81d4e64c 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES6.ts @@ -1,4 +1,3 @@ -// @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 694737043885f..95099715ad820 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES5.ts @@ -1,4 +1,3 @@ -// @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 a0405cd209e58..36c4e91be4881 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames36_ES6.ts @@ -1,4 +1,3 @@ -// @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 096ee4edd6032..cb931fc31d620 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts @@ -1,4 +1,3 @@ -// @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 d63f1813a0020..09fe6235a1c11 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts @@ -1,4 +1,3 @@ -// @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 49cd8e6d7ee19..5ea07aa1605d8 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES5.ts @@ -1,4 +1,3 @@ -// @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 57ea723d26421..9054979dbd816 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames38_ES6.ts @@ -1,4 +1,3 @@ -// @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 fcdacbe09ba09..929332c5d32eb 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES5.ts @@ -1,4 +1,3 @@ -// @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 337a0ef362906..f8d4d2a01074a 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames39_ES6.ts @@ -1,4 +1,3 @@ -// @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 ea6cc80a5edb6..1f34f9ad28728 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts @@ -1,4 +1,3 @@ -// @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 bd50abe6d8b51..45db2c02fe259 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts @@ -1,4 +1,3 @@ -// @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 1fc31336f198a..bba1068fef3b6 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts @@ -1,4 +1,3 @@ -// @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 1753352ba45c1..94d473193d9b9 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES6.ts @@ -1,4 +1,3 @@ -// @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 0cae4b439d577..1e8ed7d6cd1ca 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts @@ -1,4 +1,3 @@ -// @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 16d9252c8879a..a376debec564d 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts @@ -1,4 +1,3 @@ -// @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 baf73448b638b..fc181d5a54839 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES5.ts @@ -1,4 +1,3 @@ -// @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 4e21f8ef4ec2e..ded6cb28ce76e 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames42_ES6.ts @@ -1,4 +1,3 @@ -// @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 901ff61a4e689..c130692c11827 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES5.ts @@ -1,4 +1,3 @@ -// @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 d3b5ae7973a98..2502827399742 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames43_ES6.ts @@ -1,4 +1,3 @@ -// @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 3c2368c42c476..4c9422ed44e26 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES5.ts @@ -1,4 +1,3 @@ -// @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 f73a44d96655a..04c4ad5ed5c36 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames44_ES6.ts @@ -1,4 +1,3 @@ -// @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 fc28430e78587..c1eb09275c547 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES5.ts @@ -1,4 +1,3 @@ -// @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 4e8f7dc5f1322..e6e058f24abd7 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames45_ES6.ts @@ -1,4 +1,3 @@ -// @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 1bab0a038116b..611d6a7d30fca 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES5.ts @@ -1,4 +1,3 @@ -// @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 1e82334c5342d..58f97a80feb95 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames49_ES6.ts @@ -1,4 +1,3 @@ -// @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 296ef42c40da4..f7411e7cb4f78 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES5.ts @@ -1,4 +1,3 @@ -// @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 b08aaa25475dd..c599477c2e251 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames50_ES6.ts @@ -1,4 +1,3 @@ -// @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 25358d08fe6a4..874c8c79ac794 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES5.ts @@ -1,4 +1,3 @@ -// @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 d258c0629f03d..6d9a65002c40f 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES6.ts @@ -1,4 +1,3 @@ -// @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 8d5857870ce24..e1c675d95e434 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts @@ -1,4 +1,3 @@ -// @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 05520f10d1c3a..21dc4eaa1e9e0 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES6.ts @@ -1,4 +1,3 @@ -// @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 72c29d742a170..1091304b6b2af 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts @@ -1,4 +1,3 @@ -// @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 5c8894f4b3322..100c68653c368 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES6.ts @@ -1,4 +1,3 @@ -// @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 7e7758ab1ad1a..b30b8e1306295 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts @@ -1,4 +1,3 @@ -// @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 07fbe1e10b592..2f353b854cdfb 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts @@ -1,4 +1,3 @@ -// @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 02d01294445b2..eb12ea9b471b4 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts @@ -1,4 +1,3 @@ -// @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 366904c3f9bc0..3f24075abbfb8 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts @@ -1,4 +1,3 @@ -// @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 c59c7c48bf555..a025a074e3129 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts @@ -1,4 +1,3 @@ -// @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 9b2b16003c689..4d6fe09b80a00 100644 --- a/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES6.ts +++ b/tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES6.ts @@ -1,4 +1,3 @@ -// @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 ae2a253993776..4f54960d2bcd8 100644 --- a/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts +++ b/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts @@ -1,4 +1,3 @@ -// @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 43f038308a5f5..a3db3753de489 100644 --- a/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts +++ b/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts @@ -1,3 +1,2 @@ -// @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 727d0b35765ad..1fb8b07e585eb 100644 --- a/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts +++ b/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts @@ -1,3 +1,2 @@ -// @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 2706432eb126a..781c224213fba 100644 --- a/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts +++ b/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts @@ -1,4 +1,3 @@ -// @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 1e1e9003789bd..243a297ed4381 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts @@ -1,4 +1,3 @@ -// @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 c034fe47ad51b..51333b1ca5333 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts @@ -1,4 +1,3 @@ -// @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 77a06f8f30d22..17de6dd28583a 100644 --- a/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts +++ b/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts @@ -1,4 +1,3 @@ -// @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 04d4b74a372f0..e9e99c6d0eb4a 100644 --- a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts +++ b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts @@ -1,4 +1,3 @@ -// @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 04d4b74a372f0..e9e99c6d0eb4a 100644 --- a/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts +++ b/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts @@ -1,4 +1,3 @@ -// @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 c42dd50f488a2..79d026eac9ec9 100644 --- a/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter02.ts +++ b/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter02.ts @@ -1,4 +1,3 @@ -// @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 149c4b7035c35..c5d51b20cfa9a 100644 --- a/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter03.ts +++ b/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter03.ts @@ -1,4 +1,3 @@ -// @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 1d1e036433ee2..591cdd2b6a57c 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts @@ -1,4 +1,3 @@ -// @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 5f8ec0daf9f3c..83ab94decec74 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts @@ -1,4 +1,3 @@ -// @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 d88a8580f233f..079eb25df4a75 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern12.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern12.ts @@ -1,4 +1,3 @@ -// @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 28f7778ff3988..f4909547e2656 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern13.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern13.ts @@ -1,4 +1,3 @@ -// @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 12b68205ea80d..976c5148232e2 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern14.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern14.ts @@ -1,4 +1,3 @@ -// @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 db3a6c3927f42..ecc686b634a52 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts @@ -1,4 +1,3 @@ -// @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 2978ff96c9d23..ba2c74681fe53 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts @@ -1,4 +1,3 @@ -// @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 8acec1991c2eb..b81114cab2359 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts @@ -1,4 +1,3 @@ -// @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 3fe846f449720..a03713037d62b 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts @@ -1,4 +1,3 @@ -// @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 9d522ed812267..32024e83b1b8a 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts @@ -1,4 +1,3 @@ -// @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 5699956f6d221..6a0e9126734d4 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern20.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern20.ts @@ -1,4 +1,3 @@ -// @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 a648256397256..a47edb4e98761 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts @@ -1,4 +1,3 @@ -// @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 bf2dd83e2027b..ff63aa7417959 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts @@ -1,4 +1,3 @@ -// @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 1bfef44b685dc..075ff3fd46793 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts @@ -1,3 +1,2 @@ -// @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 aeda5f6e05742..b5aef9003b134 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern4.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern4.ts @@ -1,4 +1,3 @@ -// @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 ecc1a69c01450..a3911b1f5efc6 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts @@ -1,4 +1,3 @@ -// @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 00148faa0570e..057b9aeaffedf 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts @@ -1,4 +1,3 @@ -// @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 af22dc9327d2d..965b715767072 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts @@ -1,4 +1,3 @@ -// @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 c3b99d93b76fa..5638b4c49c69b 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts @@ -1,4 +1,3 @@ -// @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 6c728b5c6aa42..1573c55ca8e92 100644 --- a/tests/cases/conformance/es6/destructuring/iterableArrayPattern9.ts +++ b/tests/cases/conformance/es6/destructuring/iterableArrayPattern9.ts @@ -1,4 +1,3 @@ -// @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 7090c0d316536..1b03c533e7d4e 100644 --- a/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts +++ b/tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts @@ -1,4 +1,3 @@ -// @strict: false function foo1([...r] = null) { } diff --git a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts index 7b3900b8513eb..729d883e7fc14 100644 --- a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts +++ b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts @@ -1,4 +1,3 @@ -// @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 c33874b3b832f..57e32e1d9018e 100644 --- a/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts +++ b/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts @@ -1,4 +1,3 @@ -// @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 6c87aa320929a..eb2271a69045c 100644 --- a/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts +++ b/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts @@ -1,4 +1,3 @@ -// @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 8a193e187a58c..496ee04ef66f6 100644 --- a/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingSystem.ts +++ b/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingSystem.ts @@ -1,4 +1,3 @@ -// @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 7ec4531ee7582..a6761600a1d70 100644 --- a/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts +++ b/tests/cases/conformance/es6/modules/defaultExportWithOverloads01.ts @@ -1,4 +1,3 @@ -// @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 02cf6d53675c3..ab72d10504a12 100644 --- a/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts +++ b/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts @@ -1,4 +1,3 @@ -// @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 26e2890f107ea..a1d005c8fa99e 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts @@ -1,4 +1,3 @@ -// @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 b6db02faced4a..7e29bc0b79e9b 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts @@ -1,4 +1,3 @@ -// @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 2d05a71ddc58b..7775a425b2e9f 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports1.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports1.ts @@ -1,4 +1,3 @@ -// @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 9bbbb88795970..260e9499b5d1a 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts @@ -1,4 +1,3 @@ -// @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 d1fe834426e12..bf09ccde0b119 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts @@ -1,4 +1,3 @@ -// @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 cff04d1b574fe..1abfb5301cd7e 100644 --- a/tests/cases/conformance/es6/modules/exportsAndImports3.ts +++ b/tests/cases/conformance/es6/modules/exportsAndImports3.ts @@ -1,4 +1,3 @@ -// @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 a2701681ff90b..cda2d4d2ce7a8 100644 --- a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts +++ b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts @@ -1,4 +1,3 @@ -// @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 3383f2e6a096a..5043c160e101b 100644 --- a/tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts +++ b/tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts @@ -1,4 +1,3 @@ -// @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 5afede0d61121..81e39965a6a82 100644 --- a/tests/cases/conformance/es6/propertyAccess/propertyAccessNumericLiterals.es6.ts +++ b/tests/cases/conformance/es6/propertyAccess/propertyAccessNumericLiterals.es6.ts @@ -1,4 +1,3 @@ -// @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 262829467672d..ffeab28958473 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts @@ -1,4 +1,3 @@ -// @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 33d369a17649f..bf4c2583c078d 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts @@ -1,4 +1,3 @@ -// @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 8286550293af7..1f44dc18ae86a 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts @@ -1,4 +1,3 @@ -// @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 a59c95652b9ba..527154c66bd73 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts @@ -1,4 +1,3 @@ -// @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 1e689a886b13f..8d69d1efdb2e2 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts @@ -1,4 +1,3 @@ -// @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 9d4aa4759d5df..e5c14eb4bc59e 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModule.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModule.ts @@ -1,4 +1,3 @@ -// @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 0c4b7a500b39d..0fb20b3a15a6e 100644 --- a/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModuleES6.ts +++ b/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModuleES6.ts @@ -1,4 +1,3 @@ -// @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 7cc3ef01a2397..da088cc09a052 100644 --- a/tests/cases/conformance/es6/spread/arrayLiteralSpread.ts +++ b/tests/cases/conformance/es6/spread/arrayLiteralSpread.ts @@ -1,4 +1,3 @@ -// @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 6967a1b3e0c59..e6fedbc2e5f95 100644 --- a/tests/cases/conformance/es6/spread/arrayLiteralSpreadES5iterable.ts +++ b/tests/cases/conformance/es6/spread/arrayLiteralSpreadES5iterable.ts @@ -1,4 +1,3 @@ -// @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 9ff50c96f89c4..17986424b1334 100644 --- a/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts +++ b/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts @@ -1,3 +1,2 @@ -// @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 67cae6933fd48..946d971c9dcb1 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression13_es6.ts @@ -1,3 +1,2 @@ -// @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 52fa40836d9a8..8cf089d33d3e6 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression3_es6.ts @@ -1,4 +1,3 @@ -// @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 eecf15e1f4c1b..21b5d695d89a4 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression4_es6.ts @@ -1,4 +1,3 @@ -// @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 90e39dde65f75..bc4edfe28699b 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldExpression6_es6.ts @@ -1,4 +1,3 @@ -// @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 0b87209313798..d09e7b8004553 100644 --- a/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts +++ b/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts @@ -1,4 +1,3 @@ -// @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 06d0547e3d3f8..f4082f7b46fa0 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts @@ -1,4 +1,3 @@ -// @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 b7e91e6663483..e304dda48281a 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck36.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck36.ts @@ -1,4 +1,3 @@ -// @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 29391c1e44b41..f9fe46f4285b7 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck37.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck37.ts @@ -1,4 +1,3 @@ -// @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 07b761b4f8d86..03bb28ef0ec63 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck38.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck38.ts @@ -1,4 +1,3 @@ -// @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 15d9731662bd9..9dec1b36dc29c 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts @@ -1,4 +1,3 @@ -// @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 9de53df48dac6..2dee3dedf027d 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts @@ -1,4 +1,3 @@ -// @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 764c22a597e99..caa4eed0747a2 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck41.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck41.ts @@ -1,4 +1,3 @@ -// @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 729568a124950..e2b72f4b790cf 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck43.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck43.ts @@ -1,4 +1,3 @@ -// @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 f527a703cc308..ce0822da4122f 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck45.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck45.ts @@ -1,4 +1,3 @@ -// @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 0d842db1e726e..53c5c7131dbaa 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck46.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck46.ts @@ -1,4 +1,3 @@ -// @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 8a7bfdc92b0bc..2041764a2f98e 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts @@ -1,4 +1,3 @@ -// @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 27bdd6bf25814..7aa66480a166c 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck56.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck56.ts @@ -1,4 +1,3 @@ -// @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 148c9d4e67b40..f972a2a60e33f 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts @@ -1,4 +1,3 @@ -// @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 faa3cbb741bea..081979be50587 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts @@ -1,4 +1,3 @@ -// @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 651dd7c86d3a2..36747936f1749 100644 --- a/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts +++ b/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts @@ -1,4 +1,3 @@ -// @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 e293847b46569..14bbc3c4be7a5 100644 --- a/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts +++ b/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts @@ -1,4 +1,3 @@ -// @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 0fa989a5968c2..6323111b04d08 100644 --- a/tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts +++ b/tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts @@ -1,4 +1,3 @@ -// @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 61885870524c1..6db7ec9c853f2 100644 --- a/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts +++ b/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts @@ -1,4 +1,3 @@ -// @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 c50d363adcb98..be0fbf0fa4de0 100644 --- a/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts +++ b/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts @@ -1,4 +1,3 @@ -// @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 f2d3e4ad54e38..fe3085e8e989a 100644 --- a/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts +++ b/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts @@ -1,4 +1,3 @@ -// @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 944fd230240a6..f27d19a1805f5 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts @@ -1,4 +1,3 @@ -// @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 b3dfac0f0255e..ff22999b0f655 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts @@ -1,4 +1,3 @@ -// @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 22d2c371e1201..bcbce9f27d9cd 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts @@ -1,4 +1,3 @@ -// @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 94fc75a3bc559..a8c0fc8b667b2 100644 --- a/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts +++ b/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext diff --git a/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts b/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts index c9c42069896b6..7a97a74168ac0 100644 --- a/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts +++ b/tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts @@ -1,4 +1,3 @@ -// @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 9bd4fd6001353..a4dd44a15add1 100644 --- a/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts +++ b/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts @@ -1,4 +1,3 @@ -// @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 e69729d5bf2ff..47c6ab7ccda7e 100644 --- a/tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts +++ b/tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts @@ -1,4 +1,3 @@ -// @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 3d13d412afda7..f49e788f21281 100644 --- a/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsReference.ts +++ b/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsReference.ts @@ -1,4 +1,3 @@ -// @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 c046e29f45b66..e91216d959a7c 100644 --- a/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts +++ b/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts @@ -1,4 +1,3 @@ -// @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 49970fee7072f..cf4e0b44b8812 100644 --- a/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithAnyAndEveryType.ts +++ b/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithAnyAndEveryType.ts @@ -1,4 +1,3 @@ -// @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 fd121413a57e4..1f4a81366487b 100644 --- a/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithInvalidOperands.ts +++ b/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithInvalidOperands.ts @@ -1,4 +1,3 @@ -// @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 acc61fd53bf8d..6401feb11c5b4 100644 --- a/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts +++ b/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts @@ -1,4 +1,3 @@ -// @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 de008698d93ee..fcd7c16048688 100644 --- a/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts +++ b/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts @@ -1,4 +1,3 @@ -// @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 ecbb003dfe2a4..3ef01e09c8474 100644 --- a/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithValidOperands.ts +++ b/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithValidOperands.ts @@ -1,4 +1,3 @@ -// @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 8892f103c484f..2fb6ceda7747e 100644 --- a/tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithEveryType.ts +++ b/tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithEveryType.ts @@ -1,4 +1,3 @@ -// @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 5de7f9244f441..5ad0fe3fc7059 100644 --- a/tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithEveryType.ts +++ b/tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithEveryType.ts @@ -1,4 +1,3 @@ -// @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 d981976c6c4f9..be245dbd6bbe6 100644 --- a/tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandAnyType.ts +++ b/tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandAnyType.ts @@ -1,4 +1,3 @@ -// @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 bc97fa0a538ef..5900614debb4e 100644 --- a/tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts +++ b/tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts @@ -1,4 +1,3 @@ -// @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 429fc4a268a60..49dfe75ccc60e 100644 --- a/tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts +++ b/tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts @@ -1,4 +1,3 @@ -// @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 6e1bda6d6916a..accb6df135d25 100644 --- a/tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts +++ b/tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts @@ -1,4 +1,3 @@ -// @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 ce433fb8ac5e9..02440a6b1ca4d 100644 --- a/tests/cases/conformance/expressions/functionCalls/grammarAmbiguities.ts +++ b/tests/cases/conformance/expressions/functionCalls/grammarAmbiguities.ts @@ -1,4 +1,3 @@ -// @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 6695e747b2066..d17919a703625 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpread.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpread.ts @@ -1,4 +1,3 @@ -// @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 a4a90e67a717c..25ef34446699c 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts @@ -1,4 +1,3 @@ -// @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 9b013116ab8db..0068b6cf80e41 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES6.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES6.ts @@ -1,4 +1,3 @@ -// @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 b8b02af31b159..08d45a7fc4ad0 100644 --- a/tests/cases/conformance/expressions/functionCalls/overloadResolution.ts +++ b/tests/cases/conformance/expressions/functionCalls/overloadResolution.ts @@ -1,4 +1,3 @@ -// @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 976878007bd30..68384a294680d 100644 --- a/tests/cases/conformance/expressions/functionCalls/overloadResolutionClassConstructors.ts +++ b/tests/cases/conformance/expressions/functionCalls/overloadResolutionClassConstructors.ts @@ -1,4 +1,3 @@ -// @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 65f9d7c057004..b674d7358fa1b 100644 --- a/tests/cases/conformance/expressions/functionCalls/overloadResolutionConstructors.ts +++ b/tests/cases/conformance/expressions/functionCalls/overloadResolutionConstructors.ts @@ -1,4 +1,3 @@ -// @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 0e5d9ad984040..a05e6a946d67e 100644 --- a/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts +++ b/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts @@ -1,4 +1,3 @@ -// @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 4d3e3645d6179..df78d7a542167 100644 --- a/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts +++ b/tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts @@ -1,4 +1,3 @@ -// @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 ab02098a5350b..a3aa4eafc0723 100644 --- a/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts +++ b/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts @@ -1,4 +1,3 @@ -// @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 ef1723458962b..707ef02de822a 100644 --- a/tests/cases/conformance/expressions/functions/arrowFunctionExpressions.ts +++ b/tests/cases/conformance/expressions/functions/arrowFunctionExpressions.ts @@ -1,4 +1,3 @@ -// @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 c03d2fcb0ec6e..0a1aceaf376a3 100644 --- a/tests/cases/conformance/expressions/functions/contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts +++ b/tests/cases/conformance/expressions/functions/contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts @@ -1,4 +1,3 @@ -// @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 2e27ffce9eb53..ca0d6e6771151 100644 --- a/tests/cases/conformance/expressions/functions/contextuallyTypedIife.ts +++ b/tests/cases/conformance/expressions/functions/contextuallyTypedIife.ts @@ -1,4 +1,3 @@ -// @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 bf376cc235ef5..b50751c7ae0f6 100644 --- a/tests/cases/conformance/expressions/newOperator/newOperatorConformance.ts +++ b/tests/cases/conformance/expressions/newOperator/newOperatorConformance.ts @@ -1,4 +1,3 @@ -// @strict: false class C0 { diff --git a/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts b/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts index 92125d0b2b3fa..3279a42a137ab 100644 --- a/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts +++ b/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts @@ -1,4 +1,3 @@ -// @strict: false class C0 { diff --git a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts index e72ec1910de1e..54f6923c3e66c 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInAsyncGenerator.ts @@ -1,4 +1,3 @@ -// @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 1ccd8375b133f..5925fe4d86327 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.2.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.2.ts @@ -1,4 +1,3 @@ -// @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 315e66e5fa64c..1231cb5d0fea5 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterBindingPattern.ts @@ -1,4 +1,3 @@ -// @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 580cd038dbfca..c3da31aa20300 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.2.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.2.ts @@ -1,4 +1,3 @@ -// @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 96a04c03a594e..f8c5da3042582 100644 --- a/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.ts +++ b/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperatorInParameterInitializer.ts @@ -1,4 +1,3 @@ -// @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 b8784e5d1d721..af0622179ac7f 100644 --- a/tests/cases/conformance/expressions/objectLiterals/objectLiteralGettersAndSetters.ts +++ b/tests/cases/conformance/expressions/objectLiterals/objectLiteralGettersAndSetters.ts @@ -1,4 +1,3 @@ -// @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 3255b3df4b73c..423e8a465139d 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.2.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.2.ts @@ -1,4 +1,3 @@ -// @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 38f05fec38d8f..38cabea7aeef2 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterBindingPattern.ts @@ -1,4 +1,3 @@ -// @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 11226d13084b4..707be27f114c1 100644 --- a/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterInitializer.2.ts +++ b/tests/cases/conformance/expressions/optionalChaining/optionalChainingInParameterInitializer.2.ts @@ -1,4 +1,3 @@ -// @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 3f5595cb32734..c5df48cc118e9 100644 --- a/tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts +++ b/tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts @@ -1,4 +1,3 @@ -// @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 c44fde6a19e79..11feb1932b46d 100644 --- a/tests/cases/conformance/expressions/propertyAccess/propertyAccessNumericLiterals.ts +++ b/tests/cases/conformance/expressions/propertyAccess/propertyAccessNumericLiterals.ts @@ -1,4 +1,3 @@ -// @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 952ca1562136a..996bde4f9240c 100644 --- a/tests/cases/conformance/expressions/superCalls/errorSuperCalls.ts +++ b/tests/cases/conformance/expressions/superCalls/errorSuperCalls.ts @@ -1,4 +1,3 @@ -// @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 a15541ad8ff86..252a707821dc0 100644 --- a/tests/cases/conformance/expressions/superPropertyAccess/errorSuperPropertyAccess.ts +++ b/tests/cases/conformance/expressions/superPropertyAccess/errorSuperPropertyAccess.ts @@ -1,4 +1,3 @@ -// @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 fa183689cd940..dcc167f2aef5c 100644 --- a/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts +++ b/tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts @@ -1,4 +1,3 @@ -// @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 fdc2400ee4272..3d408c1af3378 100644 --- a/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContexts.ts +++ b/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContexts.ts @@ -1,4 +1,3 @@ -// @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 5dca8287eb7da..bf017ea70843f 100644 --- a/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts +++ b/tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts @@ -1,4 +1,3 @@ -// @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 db8f2a5c562ae..cd651f54867e6 100644 --- a/tests/cases/conformance/expressions/thisKeyword/typeOfThisGeneral.ts +++ b/tests/cases/conformance/expressions/thisKeyword/typeOfThisGeneral.ts @@ -1,4 +1,3 @@ -// @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 63c8e9a5f1b2a..7b2c75757bec9 100644 --- a/tests/cases/conformance/expressions/typeAssertions/typeAssertions.ts +++ b/tests/cases/conformance/expressions/typeAssertions/typeAssertions.ts @@ -1,4 +1,3 @@ -// @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 d5c6c860ebce7..57d56ccc3b68d 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunction.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunction.ts @@ -1,4 +1,3 @@ -// @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 e36c28a925b6d..d0e108b5735b7 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionGenerics.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionGenerics.ts @@ -1,4 +1,3 @@ -// @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 ae594be9d2c4f..12f6687c4015a 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts @@ -1,4 +1,3 @@ -// @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 08f9b77f2a044..68d2713e17a1b 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts @@ -1,4 +1,3 @@ -// @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 cea7eec58f77f..1ed8e6ebb04ba 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts @@ -1,4 +1,3 @@ -// @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 9a75076c2643b..1d72f35828471 100644 --- a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts @@ -1,4 +1,3 @@ -// @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 a45486260d05f..29d3f1932e5aa 100644 --- a/tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts @@ -1,4 +1,3 @@ -// @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 e7f28b2c3d439..b6562299cb7de 100644 --- a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherType.ts @@ -1,4 +1,3 @@ -// @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 7847102411f51..cbcbd14b5fcb5 100644 --- a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts @@ -1,4 +1,3 @@ -// @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 1faae5c4fb80f..fca19d38daa45 100644 --- a/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts @@ -1,4 +1,3 @@ -// @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 2b3569db3e0d5..91fdec9e5337e 100644 --- a/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithAnyOtherType.ts @@ -1,4 +1,3 @@ -// @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 85a99657b894d..c36cd5ca480b0 100644 --- a/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherType.ts @@ -1,4 +1,3 @@ -// @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 8bd7a659f81a5..e8ef25e450345 100644 --- a/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts @@ -1,4 +1,3 @@ -// @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 a5e675e575230..4d564fa7b0830 100644 --- a/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts @@ -1,4 +1,3 @@ -// @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 fa41f0af0a8b4..63cb2f2c05be3 100644 --- a/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts @@ -1,4 +1,3 @@ -// @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 6cd35588b22b6..7eb4b20abe828 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts @@ -1,4 +1,3 @@ -// @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 6a4f2b8c4445b..ffbe615132f41 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithBooleanType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithBooleanType.ts @@ -1,4 +1,3 @@ -// @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 007f146446895..038aaed648353 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithEnumType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithEnumType.ts @@ -1,4 +1,3 @@ -// @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 e1a6062bd4431..aad5daf7586f1 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithNumberType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithNumberType.ts @@ -1,4 +1,3 @@ -// @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 7ed383d669085..fe4d83149a735 100644 --- a/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithStringType.ts +++ b/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithStringType.ts @@ -1,4 +1,3 @@ -// @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 432f2a3e8d234..5746716b10665 100644 --- a/tests/cases/conformance/expressions/valuesAndReferences/assignments.ts +++ b/tests/cases/conformance/expressions/valuesAndReferences/assignments.ts @@ -1,4 +1,3 @@ -// @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 3b8e36d70d701..713cfe7a9f937 100644 --- a/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts +++ b/tests/cases/conformance/externalModules/es6/es6modulekindWithES5Target6.ts @@ -1,4 +1,3 @@ -// @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 fe0e5e337fccc..2c53a8a9254af 100644 --- a/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts +++ b/tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target6.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: es5 // @module: esnext diff --git a/tests/cases/conformance/externalModules/exportAssignTypes.ts b/tests/cases/conformance/externalModules/exportAssignTypes.ts index 14b5d1af2dfb7..767aef93a7d6b 100644 --- a/tests/cases/conformance/externalModules/exportAssignTypes.ts +++ b/tests/cases/conformance/externalModules/exportAssignTypes.ts @@ -1,4 +1,3 @@ -// @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 1b3d19f4a6ac6..025e4f93c9886 100644 --- a/tests/cases/conformance/externalModules/exportAssignmentCircularModules.ts +++ b/tests/cases/conformance/externalModules/exportAssignmentCircularModules.ts @@ -1,4 +1,3 @@ -// @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 dc72652eb61b0..4875a90842487 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: amd var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts index 420cce6234c79..a4a9bbc997d83 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: commonjs var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts index 396ef500d9242..0daf3e422d70c 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts @@ -1,4 +1,3 @@ -// @strict: false //@target: ES6 var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts index 3d767964d26d6..a10175975e56a 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: system var; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts index 030bbd189e05a..c92632defd812 100644 --- a/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts @@ -1,4 +1,3 @@ -// @strict: false //@module: umd var; diff --git a/tests/cases/conformance/externalModules/initializersInDeclarations.ts b/tests/cases/conformance/externalModules/initializersInDeclarations.ts index 77bb4a510bdd2..b1b5ed6d7c438 100644 --- a/tests/cases/conformance/externalModules/initializersInDeclarations.ts +++ b/tests/cases/conformance/externalModules/initializersInDeclarations.ts @@ -1,4 +1,3 @@ -// @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 9a664184e040d..cab2b9827a989 100644 --- a/tests/cases/conformance/externalModules/topLevelAmbientModule.ts +++ b/tests/cases/conformance/externalModules/topLevelAmbientModule.ts @@ -1,4 +1,3 @@ -// @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 185aff68775a2..5a93880a5abda 100644 --- a/tests/cases/conformance/externalModules/topLevelAwait.1.ts +++ b/tests/cases/conformance/externalModules/topLevelAwait.1.ts @@ -1,4 +1,3 @@ -// @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 8b652343dcdf5..7fd2c1782a7f2 100644 --- a/tests/cases/conformance/externalModules/topLevelAwait.2.ts +++ b/tests/cases/conformance/externalModules/topLevelAwait.2.ts @@ -1,4 +1,3 @@ -// @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 0a9c0bdbbfe49..6deeb59afe385 100644 --- a/tests/cases/conformance/externalModules/topLevelAwait.3.ts +++ b/tests/cases/conformance/externalModules/topLevelAwait.3.ts @@ -1,4 +1,3 @@ -// @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 d63287dd4a464..7ff5f4f5c892a 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts @@ -1,4 +1,3 @@ -// @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 703d3e995cffb..af60e3db79005 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.10.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.10.ts @@ -1,4 +1,3 @@ -// @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 b8465398597f1..c200b17ef3598 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.11.ts @@ -1,4 +1,3 @@ -// @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 122ad32c5eeb1..73c126628bf64 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.12.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.12.ts @@ -1,4 +1,3 @@ -// @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 a33140f42311e..609e374c2cc7e 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts @@ -1,4 +1,3 @@ -// @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 5c70c272b5bb4..2841a03e0d70a 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts @@ -1,4 +1,3 @@ -// @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 bea8f377988d2..d2216b95ad032 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts @@ -1,4 +1,3 @@ -// @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 16e1ae47dd88a..aa76902829906 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts @@ -1,4 +1,3 @@ -// @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 abf1d73a08fbd..ebee5efe3ed39 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts @@ -1,4 +1,3 @@ -// @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 8f9bca530a3a8..10058cc2d8d41 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts @@ -1,4 +1,3 @@ -// @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 4210e1f51fd96..7f6dcb8e134a7 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts @@ -1,4 +1,3 @@ -// @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 bf9a52327cf89..7b8d4866927d4 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: esnext // @module: es2022,esnext diff --git a/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts b/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts index 09a2b1bedcf87..97d4b3b624134 100644 --- a/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts +++ b/tests/cases/conformance/externalModules/topLevelAwaitNonModule.ts @@ -1,4 +1,3 @@ -// @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 fb6001496a2e6..e6680889d2604 100644 --- a/tests/cases/conformance/externalModules/topLevelFileModule.ts +++ b/tests/cases/conformance/externalModules/topLevelFileModule.ts @@ -1,4 +1,3 @@ -// @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 d917df62fd3c2..860c4fe8294f4 100644 --- a/tests/cases/conformance/externalModules/topLevelFileModuleMissing.ts +++ b/tests/cases/conformance/externalModules/topLevelFileModuleMissing.ts @@ -1,4 +1,3 @@ -// @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 f393f65a68c00..456527acfaeda 100644 --- a/tests/cases/conformance/externalModules/topLevelModuleDeclarationAndFile.ts +++ b/tests/cases/conformance/externalModules/topLevelModuleDeclarationAndFile.ts @@ -1,4 +1,3 @@ -// @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 2d052fb11a8af..95e6cb7c7a451 100644 --- a/tests/cases/conformance/externalModules/umd-errors.ts +++ b/tests/cases/conformance/externalModules/umd-errors.ts @@ -1,4 +1,3 @@ -// @strict: false // @module: commonjs // @filename: err1.d.ts diff --git a/tests/cases/conformance/fixSignatureCaching.ts b/tests/cases/conformance/fixSignatureCaching.ts index 1f388dce98877..bfc37919f7823 100644 --- a/tests/cases/conformance/fixSignatureCaching.ts +++ b/tests/cases/conformance/fixSignatureCaching.ts @@ -1,4 +1,3 @@ -// @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 d880d2c3de764..edae8bd2b5aa9 100644 --- a/tests/cases/conformance/functions/functionImplementationErrors.ts +++ b/tests/cases/conformance/functions/functionImplementationErrors.ts @@ -1,4 +1,3 @@ -// @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 e13088f7aa13d..3c5adefd2e40a 100644 --- a/tests/cases/conformance/functions/functionImplementations.ts +++ b/tests/cases/conformance/functions/functionImplementations.ts @@ -1,4 +1,3 @@ -// @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 d48d3019548a9..0b12a231fb7ea 100644 --- a/tests/cases/conformance/functions/functionNameConflicts.ts +++ b/tests/cases/conformance/functions/functionNameConflicts.ts @@ -1,4 +1,3 @@ -// @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 d05d7962fb210..1f917b17fa215 100644 --- a/tests/cases/conformance/functions/functionOverloadErrors.ts +++ b/tests/cases/conformance/functions/functionOverloadErrors.ts @@ -1,4 +1,3 @@ -// @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 803ad40af2d4a..6c482fb70fcf3 100644 --- a/tests/cases/conformance/functions/functionOverloadErrorsSyntax.ts +++ b/tests/cases/conformance/functions/functionOverloadErrorsSyntax.ts @@ -1,4 +1,3 @@ -// @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 7c8ac7addd246..41c6af41b9513 100644 --- a/tests/cases/conformance/functions/functionParameterObjectRestAndInitializers.ts +++ b/tests/cases/conformance/functions/functionParameterObjectRestAndInitializers.ts @@ -1,4 +1,3 @@ -// @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 2863f3ad6165c..d4b8ced9b42a5 100644 --- a/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList.ts +++ b/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList.ts @@ -1,4 +1,3 @@ -// @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 3daeecc0900c5..6c9fadd1ac1e7 100644 --- a/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList_es2016.ts +++ b/tests/cases/conformance/functions/functionWithUseStrictAndSimpleParameterList_es2016.ts @@ -1,4 +1,3 @@ -// @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 b721ca502940a..dce4818a5094e 100644 --- a/tests/cases/conformance/functions/parameterInitializersBackwardReferencing.ts +++ b/tests/cases/conformance/functions/parameterInitializersBackwardReferencing.ts @@ -1,4 +1,3 @@ -// @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 c2fc0788c2660..7aa08e2dbf03d 100644 --- a/tests/cases/conformance/functions/parameterInitializersForwardReferencing.2.ts +++ b/tests/cases/conformance/functions/parameterInitializersForwardReferencing.2.ts @@ -1,4 +1,3 @@ -// @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 31320e24828ae..fa3549ea2c5bd 100644 --- a/tests/cases/conformance/functions/parameterInitializersForwardReferencing.ts +++ b/tests/cases/conformance/functions/parameterInitializersForwardReferencing.ts @@ -1,4 +1,3 @@ -// @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 dbe389eb21119..f83eb2dd34ec6 100644 --- a/tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts +++ b/tests/cases/conformance/functions/parameterInitializersForwardReferencing1_es6.ts @@ -1,4 +1,3 @@ -// @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 4e18948b3f502..0bac9af2ce139 100644 --- a/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts +++ b/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts @@ -1,4 +1,3 @@ -// @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 7fa49691c1753..7f37fe232ce6d 100644 --- a/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts +++ b/tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts @@ -1,4 +1,3 @@ -// @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 748212d654981..7cd7cf2315b52 100644 --- a/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts +++ b/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts @@ -1,4 +1,3 @@ -// @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 ed9a0636c5434..f6c4feb4c3c17 100644 --- a/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts +++ b/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts @@ -1,4 +1,3 @@ -// @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 4ed7f1b59830d..73e29590d63ed 100644 --- a/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts +++ b/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts @@ -1,4 +1,3 @@ -// @strict: false namespace Inner { var; diff --git a/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts b/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts index 93c3063d35643..213b66908d907 100644 --- a/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts +++ b/tests/cases/conformance/jsdoc/callOfPropertylessConstructorFunction.ts @@ -1,4 +1,3 @@ -// @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 e353e82aaa956..34e71b55bcd71 100644 --- a/tests/cases/conformance/jsdoc/callbackTag2.ts +++ b/tests/cases/conformance/jsdoc/callbackTag2.ts @@ -1,4 +1,3 @@ -// @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 a4e4ab5ff3c3b..09ea30c0cc013 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts @@ -1,4 +1,3 @@ -// @strict: false // @allowJS: true // @suppressOutputPathCheck: true diff --git a/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts b/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts index ef523a6524c70..e8e6ad971fb3c 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts @@ -1,4 +1,3 @@ -// @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 c762dd3707f61..ecd597c6eb5da 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts @@ -1,4 +1,3 @@ -// @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 31ac22ce59757..73b387c203e7e 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts @@ -1,4 +1,3 @@ -// @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 131bffc892e95..2981292ba7e58 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts @@ -1,4 +1,3 @@ -// @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 39f1ec9e1bc03..d991d2f6e1660 100644 --- a/tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts +++ b/tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts @@ -1,4 +1,3 @@ -// @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 e01d7ebbc9adc..2e5717ed05b10 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassAccessor.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassAccessor.ts @@ -1,4 +1,3 @@ -// @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 e1a8c071a6475..b3b27f096e9a9 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts @@ -1,4 +1,3 @@ -// @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 82c288f390d76..f8732cb41479b 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts @@ -1,4 +1,3 @@ -// @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 b172d8026df79..fb4749e50868b 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts @@ -1,4 +1,3 @@ -// @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 3f56466132731..37f092d07726b 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportedClassAliases.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportedClassAliases.ts @@ -1,4 +1,3 @@ -// @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 224f06d9a94be..cfa747d48c8b6 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts @@ -1,4 +1,3 @@ -// @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 741395cff39f3..dc58d1e05b4ca 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts @@ -1,4 +1,3 @@ -// @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 80fc4200d200c..aacd499707485 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts @@ -1,4 +1,3 @@ -// @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 e8d5d0d79b253..ff9396ac90479 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingGenerics.ts @@ -1,4 +1,3 @@ -// @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 89d782095b38c..c924ef7455282 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts @@ -1,4 +1,3 @@ -// @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 3c1c90db4f069..6872741c16baa 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts @@ -1,4 +1,3 @@ -// @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 214c3267dd4a0..a857d4eccce93 100644 --- a/tests/cases/conformance/jsdoc/enumTag.ts +++ b/tests/cases/conformance/jsdoc/enumTag.ts @@ -1,4 +1,3 @@ -// @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 6d9ebcc10affe..c4015b7098566 100644 --- a/tests/cases/conformance/jsdoc/enumTagCircularReference.ts +++ b/tests/cases/conformance/jsdoc/enumTagCircularReference.ts @@ -1,4 +1,3 @@ -// @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 a660632f49926..84ce46aa1a317 100644 --- a/tests/cases/conformance/jsdoc/enumTagImported.ts +++ b/tests/cases/conformance/jsdoc/enumTagImported.ts @@ -1,4 +1,3 @@ -// @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 9ee015274a742..ce8bd0b1237d3 100644 --- a/tests/cases/conformance/jsdoc/enumTagOnExports.ts +++ b/tests/cases/conformance/jsdoc/enumTagOnExports.ts @@ -1,4 +1,3 @@ -// @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 0f0318cd2c1fc..3a4633138375d 100644 --- a/tests/cases/conformance/jsdoc/enumTagOnExports2.ts +++ b/tests/cases/conformance/jsdoc/enumTagOnExports2.ts @@ -1,4 +1,3 @@ -// @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 afcc357b47a1f..f8f92b7bcc1bf 100644 --- a/tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts +++ b/tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts @@ -1,4 +1,3 @@ -// @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 dd9fbb92a33b6..d06d76dcac86a 100644 --- a/tests/cases/conformance/jsdoc/errorIsolation.ts +++ b/tests/cases/conformance/jsdoc/errorIsolation.ts @@ -1,4 +1,3 @@ -// @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 a0c0350634e98..1db1fe46b9e26 100644 --- a/tests/cases/conformance/jsdoc/importTag24.ts +++ b/tests/cases/conformance/jsdoc/importTag24.ts @@ -1,4 +1,3 @@ -// @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 ece26491d8017..b49f732c1bb1c 100644 --- a/tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts +++ b/tests/cases/conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts @@ -1,4 +1,3 @@ -// @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 b5eb6ff929826..ac817f70f1175 100644 --- a/tests/cases/conformance/jsdoc/jsdocLinkTag8.ts +++ b/tests/cases/conformance/jsdoc/jsdocLinkTag8.ts @@ -1,4 +1,3 @@ -// @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 2d5d261a1b7f6..c16a87a57fc34 100644 --- a/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts +++ b/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts @@ -1,4 +1,3 @@ -// @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 6c652888f3277..ed814d315ca21 100644 --- a/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts +++ b/tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts @@ -1,4 +1,3 @@ -// @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 d607371be9a5d..0d34ee5496a69 100644 --- a/tests/cases/conformance/jsdoc/jsdocParamTag2.ts +++ b/tests/cases/conformance/jsdoc/jsdocParamTag2.ts @@ -1,4 +1,3 @@ -// @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 bbe2ff6ffe862..1036c2eb7a855 100644 --- a/tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts +++ b/tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts @@ -1,4 +1,3 @@ -// @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 51b9eb5099a12..e69756c094101 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTag.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTag.ts @@ -1,4 +1,3 @@ -// @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 578e69a615a4c..b7e706f124aa4 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts @@ -1,4 +1,3 @@ -// @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 dd603593747d8..e05438d304de7 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts @@ -1,4 +1,3 @@ -// @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 d9c615bc1b950..c93359a7a6eb3 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts @@ -1,4 +1,3 @@ -// @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 047ba1bc9a92e..a5b4d052ad2de 100644 --- a/tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts +++ b/tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts @@ -1,4 +1,3 @@ -// @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 b7f72c2f30f8b..4eb66b596df44 100644 --- a/tests/cases/conformance/jsdoc/overloadTag1.ts +++ b/tests/cases/conformance/jsdoc/overloadTag1.ts @@ -1,4 +1,3 @@ -// @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 f79e7ed4ada6a..03c79ce9e1cb4 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts @@ -1,4 +1,3 @@ -// @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 ff703fc07a58b..a6a68aa0861ed 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts @@ -1,4 +1,3 @@ -// @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 309666dceb0c0..8307688a0cdbd 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts @@ -1,4 +1,3 @@ -// @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 d82d2e478c5d6..5840308fa0dac 100644 --- a/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts +++ b/tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts @@ -1,4 +1,3 @@ -// @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 8b3b182b36869..c58548cd9b471 100644 --- a/tests/cases/conformance/jsdoc/parseLinkTag.ts +++ b/tests/cases/conformance/jsdoc/parseLinkTag.ts @@ -1,4 +1,3 @@ -// @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 2514fa4f5768b..e8a3641cde2d8 100644 --- a/tests/cases/conformance/jsdoc/syntaxErrors.ts +++ b/tests/cases/conformance/jsdoc/syntaxErrors.ts @@ -1,4 +1,3 @@ -// @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 cce135344befa..ee71909c2edd9 100644 --- a/tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts +++ b/tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts @@ -1,4 +1,3 @@ -// @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 a0cd1adbb8aa0..95e4c66820531 100644 --- a/tests/cases/conformance/jsx/jsxAttributeInitializer.ts +++ b/tests/cases/conformance/jsx/jsxAttributeInitializer.ts @@ -1,4 +1,3 @@ -// @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 40de9c2b5101b..08b6149d37d91 100644 --- a/tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts +++ b/tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts @@ -1,4 +1,3 @@ -// @strict: false // @Filename: jsxParserRecovery.tsx // @jsx: preserve diff --git a/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts b/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts index 4b1f0b6a26507..1c5103442a6bb 100644 --- a/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts +++ b/tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts @@ -1,4 +1,3 @@ -// @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 3d46f1b1fff21..9ddb1dcec8e33 100644 --- a/tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts +++ b/tests/cases/conformance/moduleResolution/extensionLoadingPriority.ts @@ -1,4 +1,3 @@ -// @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 9e60250fb65b6..6bf21cfaa3a82 100644 --- a/tests/cases/conformance/moduleResolution/packageJsonMain.ts +++ b/tests/cases/conformance/moduleResolution/packageJsonMain.ts @@ -1,4 +1,3 @@ -// @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 c495a87ad2cfb..c6e684b3fe1ba 100644 --- a/tests/cases/conformance/moduleResolution/packageJsonMain_isNonRecursive.ts +++ b/tests/cases/conformance/moduleResolution/packageJsonMain_isNonRecursive.ts @@ -1,4 +1,3 @@ -// @strict: false // @noImplicitReferences: true // @currentDirectory: / // @traceResolution: true diff --git a/tests/cases/conformance/moduleResolution/untypedModuleImport.ts b/tests/cases/conformance/moduleResolution/untypedModuleImport.ts index cb335181e4607..2ea07db3ee496 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport.ts @@ -1,4 +1,3 @@ -// @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 bf4704f73033b..fe509189d9667 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport_allowJs.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport_allowJs.ts @@ -1,4 +1,3 @@ -// @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 2f27b67f0e535..e157772a5edad 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts @@ -1,4 +1,3 @@ -// @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 b62fc6a7245e3..e27c1232d2587 100644 --- a/tests/cases/conformance/moduleResolution/untypedModuleImport_withAugmentation.ts +++ b/tests/cases/conformance/moduleResolution/untypedModuleImport_withAugmentation.ts @@ -1,4 +1,3 @@ -// @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 9cc719adac682..7e16936af2a1d 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportAssignment.ts @@ -1,4 +1,3 @@ -// @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 9bef9ae71b79c..4443169375e7e 100644 --- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts +++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts @@ -1,4 +1,3 @@ -// @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 88bd450c5f5b0..2e702fe5b2a23 100644 --- a/tests/cases/conformance/node/nodeModulesImportAssignments.ts +++ b/tests/cases/conformance/node/nodeModulesImportAssignments.ts @@ -1,4 +1,3 @@ -// @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 6b4e070a98fae..8829c0fcdfd70 100644 --- a/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts +++ b/tests/cases/conformance/node/nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts @@ -1,4 +1,3 @@ -// @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 bc412a1729510..455cc038bd691 100644 --- a/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts +++ b/tests/cases/conformance/node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts @@ -1,4 +1,3 @@ -// @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 e4ea126385260..fd796367e694a 100644 --- a/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts +++ b/tests/cases/conformance/node/nodeModulesTopLevelAwait.ts @@ -1,4 +1,3 @@ -// @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 c48ae80a0bfc6..2de6b1662712e 100644 --- a/tests/cases/conformance/override/override_js2.ts +++ b/tests/cases/conformance/override/override_js2.ts @@ -1,4 +1,3 @@ -// @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 110359c01475d..f36a29e37796d 100644 --- a/tests/cases/conformance/override/override_js3.ts +++ b/tests/cases/conformance/override/override_js3.ts @@ -1,4 +1,3 @@ -// @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 5ba5c2f9a662b..719d373983b54 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,4 +1,3 @@ -// @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 1b52bac20c9e7..10cbc2204bb15 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,4 +1,3 @@ -// @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 20bb2d7900ed3..92bbcf50c5983 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,4 +1,3 @@ -// @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 8f7699ace8e26..dc9ffb4dddb12 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,4 +1,3 @@ -// @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 4921161305155..99fab6497f30d 100644 --- a/tests/cases/conformance/parser/ecmascript3/Accessors/parserES3Accessors2.ts +++ b/tests/cases/conformance/parser/ecmascript3/Accessors/parserES3Accessors2.ts @@ -1,4 +1,3 @@ -// @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 d4a19bf73ea75..a2ba74bdb14eb 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts @@ -1,4 +1,3 @@ -// @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 8b501afda3ec1..5fc896002d7d5 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts @@ -1,3 +1,2 @@ -// @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 2a0a0773fc61e..4d2aa80828be6 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors6.ts @@ -1,4 +1,3 @@ -// @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 f3240641c58b4..2d8af279224dd 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors8.ts @@ -1,3 +1,2 @@ -// @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 9c88ffc54e054..7f61bd2d4d636 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors9.ts @@ -1,3 +1,2 @@ -// @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 b4e3165652b27..8b3d11292780d 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeAnnotation1.ts @@ -1,4 +1,3 @@ -// @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 77f42555cecfc..16a09906d76d9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Accessors/parserSetAccessorWithTypeParameters1.ts @@ -1,4 +1,3 @@ -// @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 0ae4ac42cf9e7..66fb0382581fc 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts @@ -1,4 +1,3 @@ -// @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 117a0a1ac61f9..1009993375376 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression11.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression11.ts @@ -1,4 +1,3 @@ -// @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 7aa2de1787c27..fd06ce651c6bf 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts @@ -1,4 +1,3 @@ -// @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 882f87fff7944..7eae203ea576f 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression15.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression15.ts @@ -1,4 +1,3 @@ -// @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 86151af372d12..27a7591865c82 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression16.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression16.ts @@ -1,4 +1,3 @@ -// @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 92e8f14f636db..94a4f59b5c3be 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression17.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression17.ts @@ -1,4 +1,3 @@ -// @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 d88d00e033c21..6590f0dac984f 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression8.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression8.ts @@ -1,4 +1,3 @@ -// @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 03548b7b82cb0..504425234039c 100644 --- a/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression9.ts +++ b/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression9.ts @@ -1,4 +1,3 @@ -// @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 8aa2e7918068e..5dbbdbaca85c3 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration10.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration10.ts @@ -1,4 +1,3 @@ -// @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 5248d023f6e9b..86d64905d5c3d 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration12.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration12.ts @@ -1,4 +1,3 @@ -// @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 bbc057e4bb478..f58340bc491da 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration13.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration13.ts @@ -1,4 +1,3 @@ -// @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 ad7333d9bb42a..a91f34253fa11 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration14.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration14.ts @@ -1,4 +1,3 @@ -// @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 78caec37b2f4d..6b28c5200893b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration15.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration15.ts @@ -1,4 +1,3 @@ -// @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 46af221520b3c..b345892ec2e11 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration16.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration16.ts @@ -1,4 +1,3 @@ -// @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 d9a9c5aa1e553..a709f7d7bcca0 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration17.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration17.ts @@ -1,4 +1,3 @@ -// @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 3bf18835e3276..65d9bd0a57c6a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration19.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration19.ts @@ -1,4 +1,3 @@ -// @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 f65a2e85274d0..6c8540e833d71 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration20.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration20.ts @@ -1,4 +1,3 @@ -// @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 eeff13aebe850..c9a54f97ef598 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration21.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration21.ts @@ -1,4 +1,3 @@ -// @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 ba9c8ab0552f1..ec6da6d269c7c 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration22.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration22.ts @@ -1,4 +1,3 @@ -// @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 92be5906ff2d9..4d5395733a774 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration26.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration26.ts @@ -1,4 +1,3 @@ -// @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 84d4d63da65c3..620dc45a4df52 100644 --- a/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration9.ts +++ b/tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration9.ts @@ -1,4 +1,3 @@ -// @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 8d5c2dd8b0b65..b5e27ecc71b38 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts @@ -1,4 +1,3 @@ -// @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 43117e32fb72b..280dc1a5a0ddd 100644 --- a/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts +++ b/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts @@ -1,4 +1,3 @@ -// @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 18a0b86e396d3..30045cf9f056e 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts @@ -1,4 +1,3 @@ -// @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 777c4eb3881d5..49db39132c623 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts @@ -1,4 +1,3 @@ -// @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 78e9a9fb4c236..75f4e7105fcbb 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts @@ -1,4 +1,3 @@ -// @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 a008321d28cc7..a63e70a4ac15b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts @@ -1,4 +1,3 @@ -// @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 a008321d28cc7..a63e70a4ac15b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts @@ -1,4 +1,3 @@ -// @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 971b62177d5a5..7399b78df859f 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts @@ -1,4 +1,3 @@ -// @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 f77b6342d271e..05ad1d455a6df 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts @@ -1,3 +1,2 @@ -// @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 fac3459cbea16..1d42033558839 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts @@ -1,3 +1,2 @@ -// @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 cd105b4afd572..57e008de50736 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts @@ -1,2 +1 @@ -// @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 ad51a67dc153a..a63016987d328 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts @@ -1,4 +1,3 @@ -// @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 e53e5cac1fcc7..1ea7f809eadd9 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts @@ -1,4 +1,3 @@ -// @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 844b7603426c0..ffd28ee38320b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature1.ts @@ -1,4 +1,3 @@ -// @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 0059be4dd720f..97230c998999e 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature2.ts @@ -1,4 +1,3 @@ -// @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 6fece13180a39..c029cbf8b12dc 100644 --- a/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts @@ -1,4 +1,3 @@ -// @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 d86483408693d..e6360d755c2f8 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration1.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration1.ts @@ -1,4 +1,3 @@ -// @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 7117d66d34eba..07ca5a5cd92a1 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration4.ts @@ -1,3 +1,2 @@ -// @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 afea76ed86fbb..971b7757ba9d1 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration5.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration5.ts @@ -1,3 +1,2 @@ -// @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 6f19f19b93d2d..4f656130ae1bb 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration6.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration6.ts @@ -1,4 +1,3 @@ -// @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 a74836f3639a3..3684110c82ca0 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration7.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration7.ts @@ -1,4 +1,3 @@ -// @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 70f8e590a44ab..f1b8f0efc027d 100644 --- a/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration8.ts +++ b/tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration8.ts @@ -1,4 +1,3 @@ -// @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 918af917d257d..de73aaa7d73d9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts +++ b/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts @@ -1,4 +1,3 @@ -// @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 bf20c3ca7accc..1f19bd2b39da9 100644 --- a/tests/cases/conformance/parser/ecmascript5/Generics/parserCastVersusArrowFunction1.ts +++ b/tests/cases/conformance/parser/ecmascript5/Generics/parserCastVersusArrowFunction1.ts @@ -1,4 +1,3 @@ -// @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 41288f466d67d..2a99284ab03f6 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts @@ -1,4 +1,3 @@ -// @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 a3abdcdde2e5d..853817d41c5e6 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts @@ -1,4 +1,3 @@ -// @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 c1956c8960023..06b9ce8393d51 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts @@ -1,4 +1,3 @@ -// @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 e2a14b1de0682..1c78f24a213b3 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts @@ -1,4 +1,3 @@ -// @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 f7aa09975a572..58cd613071434 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts @@ -1,4 +1,3 @@ -// @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 bd9fccda234cc..fe072303e1211 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts @@ -1,4 +1,3 @@ -// @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 d5e54619ebf2e..a6cf3a720a9cf 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts @@ -1,4 +1,3 @@ -// @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 93d927d88b529..e77c8fe9bb08d 100644 --- a/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts +++ b/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts @@ -1,4 +1,3 @@ -// @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 c84e7864a81f8..935f70c1c907e 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts @@ -1,4 +1,3 @@ -// @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 2ed7d3b077e28..1bb0a7c7ebcb7 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration16.ts @@ -1,4 +1,3 @@ -// @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 cb9a38201b84e..94a7a62295ec7 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts @@ -1,4 +1,3 @@ -// @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 3de5bf8e3ee27..e27e000ef2026 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts @@ -1,4 +1,3 @@ -// @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 cc0173de8d22b..4e71fad535b0f 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts @@ -1,4 +1,3 @@ -// @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 db71579f82ee1..1ef5cb83fbd96 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts @@ -1,4 +1,3 @@ -// @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 f1d099e1ea1c6..f95d5f109308c 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration8.ts @@ -1,4 +1,3 @@ -// @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 30eb9fef1db70..5bde3b5913acb 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration2.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration2.ts @@ -1,4 +1,3 @@ -// @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 776ae1b30227c..9bf32173ca1b0 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration1.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration1.ts @@ -1,4 +1,3 @@ -// @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 7e67163a11898..17edcab37be77 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration2.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration2.ts @@ -1,4 +1,3 @@ -// @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 3d5916ae9c1c9..bb77460191af2 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration3.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration3.ts @@ -1,4 +1,3 @@ -// @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 00b86bfe6a042..7f647ffb3bf8d 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts @@ -1,4 +1,3 @@ -// @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 6470b2935eea0..98c4f9a75bbf3 100644 --- a/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration5.ts +++ b/tests/cases/conformance/parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration5.ts @@ -1,4 +1,3 @@ -// @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 87b8bd74cea5c..070155319e87d 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature1.ts @@ -1,4 +1,3 @@ -// @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 31397cca82ef1..a58885e8489a1 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature10.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature10.ts @@ -1,4 +1,3 @@ -// @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 f1b07b30bcdcb..864121a7e5fdd 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature11.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature11.ts @@ -1,4 +1,3 @@ -// @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 75c2de1554ce8..c051e41cec6c1 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature12.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature12.ts @@ -1,4 +1,3 @@ -// @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 1f06aa8d0a8a4..b20ebadc1ff05 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature2.ts @@ -1,4 +1,3 @@ -// @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 e2582b30388fb..da0ec4e395b6f 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature3.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature3.ts @@ -1,4 +1,3 @@ -// @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 ce21c60d9a28c..daa26cb933b0b 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts @@ -1,4 +1,3 @@ -// @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 8cdae039cd923..1f0688a37f4b8 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature5.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature5.ts @@ -1,4 +1,3 @@ -// @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 9e8bd6797a889..601f48a2f3211 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature6.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature6.ts @@ -1,4 +1,3 @@ -// @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 aeae8a0e12c0b..ff9df7bffe599 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature7.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature7.ts @@ -1,4 +1,3 @@ -// @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 42cb46b04cb2b..7af4b0bf93b59 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature8.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature8.ts @@ -1,4 +1,3 @@ -// @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 6b5c3984a6a5b..a54321bbec453 100644 --- a/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature9.ts +++ b/tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature9.ts @@ -1,4 +1,3 @@ -// @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 ea167f26c4e0f..e0045fc9f9e9a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts +++ b/tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts @@ -1,4 +1,3 @@ -// @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 2494b1c0d8a11..b154600fb0982 100644 --- a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType3.ts +++ b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType3.ts @@ -1,4 +1,3 @@ -// @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 c2116f9639913..e0b986e88bf34 100644 --- a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType4.ts @@ -1,4 +1,3 @@ -// @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 c86b1a9590b6a..0687805280beb 100644 --- a/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType5.ts +++ b/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType5.ts @@ -1,4 +1,3 @@ -// @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 8a92b2c448e3b..7d3efaab39d8f 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts @@ -1,4 +1,3 @@ -// @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 b22b8b09522e9..0f9d35c39046b 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList10.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList10.ts @@ -1,4 +1,3 @@ -// @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 caa7adaddbe03..83756bdfa69dd 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList12.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList12.ts @@ -1,3 +1,2 @@ -// @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 3733f417b4776..1e0e09b84f576 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList13.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList13.ts @@ -1,4 +1,3 @@ -// @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 6cdcb6aa41dbd..41a3ab483579a 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList14.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList14.ts @@ -1,4 +1,3 @@ -// @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 6745ee6d9ed8b..02f258e24598e 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList15.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList15.ts @@ -1,3 +1,2 @@ -// @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 61262507ea982..08a64f51b1604 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts @@ -1,4 +1,3 @@ -// @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 b926a94e3fdf9..27ada9c2c76b9 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts @@ -1,4 +1,3 @@ -// @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 8ec5c7eddc07f..2e5a617fb08a1 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList3.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList3.ts @@ -1,4 +1,3 @@ -// @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 2ad3af4d4c94a..71e4fe05f5bce 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts @@ -1,3 +1,2 @@ -// @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 70b8f80822cfe..667875b36d8d6 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts @@ -1,3 +1,2 @@ -// @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 e36ac5d9ac5b2..3e81cd934a1f5 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList6.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList6.ts @@ -1,4 +1,3 @@ -// @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 d77bc5ed6ab02..be93e72f12938 100644 --- a/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts +++ b/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList9.ts @@ -1,4 +1,3 @@ -// @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 223403620d3ae..ae94fdfc67158 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature1.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature1.ts @@ -1,4 +1,3 @@ -// @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 53c395b340cd7..f43b28d14e22b 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature10.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature10.ts @@ -1,4 +1,3 @@ -// @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 295b10e03a80c..97066c891696a 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature11.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature11.ts @@ -1,4 +1,3 @@ -// @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 7b1f967c9d80f..2adf46d49928c 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature12.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature12.ts @@ -1,4 +1,3 @@ -// @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 e00309c71402a..ecf5feacb5ef3 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature2.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature2.ts @@ -1,4 +1,3 @@ -// @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 056d174930af3..b20b6918b55d2 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature5.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature5.ts @@ -1,4 +1,3 @@ -// @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 a39694926d907..059de959e2f6b 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature6.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature6.ts @@ -1,4 +1,3 @@ -// @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 b7bf2d8660056..685fff45b85c9 100644 --- a/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature9.ts +++ b/tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature9.ts @@ -1,4 +1,3 @@ -// @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 12294a7534ab2..5337751fb1e3c 100644 --- a/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts +++ b/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts @@ -1,4 +1,3 @@ -// @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 962d4e6208fd9..4e24e28ec1a76 100644 --- a/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts +++ b/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts @@ -1,4 +1,3 @@ -// @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 1ba81956186af..3183bebe93a43 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts @@ -1,4 +1,3 @@ -// @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 e3516c0efd144..bfb48ee0e303b 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts @@ -1,4 +1,3 @@ -// @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 e3516c0efd144..bfb48ee0e303b 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts @@ -1,4 +1,3 @@ -// @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 327009cf50ebb..ca1a460120445 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts @@ -1,4 +1,3 @@ -// @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 2dc54cfcd1333..65a4bf7522e2c 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509630.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509630.ts @@ -1,4 +1,3 @@ -// @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 09b2e296d956e..52fbbb38c443c 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts @@ -1,4 +1,3 @@ -// @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 5a103888509d7..5152a182c7c16 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts @@ -1,4 +1,3 @@ -// @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 d60d751e3521d..e0fa488500d72 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser643728.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser643728.ts @@ -1,4 +1,3 @@ -// @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 d7effca46b22f..7180a2f6540a4 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression6.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression6.ts @@ -1,4 +1,3 @@ -// @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 d43674f4b795a..e2e742fd6bf9e 100644 --- a/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity6.ts +++ b/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity6.ts @@ -1,4 +1,3 @@ -// @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 759cc1a505eb9..a7dff6f225bd7 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts @@ -1,3 +1,2 @@ -// @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 944aa894881a5..730f574be33ea 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts @@ -1,3 +1,2 @@ -// @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 226342f484fb0..edffb88a1e367 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement20.ts @@ -1,3 +1,2 @@ -// @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 1e6bc2d015ab9..387d2cbe88fdb 100644 --- a/tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement2.ts +++ b/tests/cases/conformance/parser/ecmascript5/Statements/parserForStatement2.ts @@ -1,4 +1,3 @@ -// @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 a7cb8588b130d..623418abc1721 100644 --- a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts +++ b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts @@ -1,4 +1,3 @@ -// @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 d7456bbda0673..58c6e0ef7b5d8 100644 --- a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts +++ b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts @@ -1,4 +1,3 @@ -// @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 d18966e8fdcf6..e83743471968f 100644 --- a/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts +++ b/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts @@ -1,4 +1,3 @@ -// @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 202f2af208467..14b003f4f9369 100644 --- a/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts +++ b/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts @@ -1,4 +1,3 @@ -// @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 aa5fb320c4383..69499c512c2b7 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts @@ -1,4 +1,3 @@ -// @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 55ae0a8df9858..9e0016bd99e35 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts @@ -1,4 +1,3 @@ -// @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 e3d085b835bca..e4aff55ca36e1 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts @@ -1,4 +1,3 @@ -// @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 3108bdee2a0fb..3a50638c3d205 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts @@ -1,4 +1,3 @@ -// @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 78cd98eab4275..22966321e9b9d 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts @@ -1,4 +1,3 @@ -// @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 8e8623060269a..49bb0ad75a3ab 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts @@ -1,4 +1,3 @@ -// @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 4b4854e868c61..a961fceb518e6 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts @@ -1,4 +1,3 @@ -// @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 472113ccb6f84..e2c93f08e17db 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts @@ -1,4 +1,3 @@ -// @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 2c6b6ada72440..c1546dc54e144 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts @@ -1,4 +1,3 @@ -// @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 56412e17fcea1..ae26f557656e7 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts @@ -1,4 +1,3 @@ -// @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 cdac07097671b..00def2926f002 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts @@ -1,4 +1,3 @@ -// @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 74d2f43b1f113..130fee103af10 100644 --- a/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts +++ b/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts @@ -1,4 +1,3 @@ -// @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 180b5a7ebc43b..17af42fcca36a 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts @@ -1,4 +1,3 @@ -// @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 fc2284dd2fdff..6e6485ea85f31 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts @@ -1,3 +1,2 @@ -// @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 38a686bb2427a..f190dadb92c9e 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts @@ -1,3 +1,2 @@ -// @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 62b7194212589..8ff0f753e1fa5 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts @@ -1,4 +1,3 @@ -// @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 f246ef43f92e6..3bf29e66baeb0 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts @@ -1,4 +1,3 @@ -// @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 5ffdb26021252..e6eaa682b5922 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts @@ -1,4 +1,3 @@ -// @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 9b1f43147e01f..d52b7d43cfc94 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts @@ -1,4 +1,3 @@ -// @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 1d8211c7627bd..2ca7ac84af70d 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts @@ -1,4 +1,3 @@ -// @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 322e0acd43d5c..8f918c6116049 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts @@ -1,4 +1,3 @@ -// @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 44887f508dda3..6e55c04b7a17c 100644 --- a/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts +++ b/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts @@ -1,4 +1,3 @@ -// @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 1ff351dc4a58b..268dc163dde25 100644 --- a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts +++ b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts @@ -1,3 +1,2 @@ -// @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 16352bafe4951..4dff469112b74 100644 --- a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts +++ b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts @@ -1,3 +1,2 @@ -// @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 ea05df9e8555c..d0b7b75175da9 100644 --- a/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts +++ b/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts @@ -1,3 +1,2 @@ -// @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 b75daaffd967e..ef3ef213d3608 100644 --- a/tests/cases/conformance/salsa/binderUninitializedModuleExportsAssignment.ts +++ b/tests/cases/conformance/salsa/binderUninitializedModuleExportsAssignment.ts @@ -1,4 +1,3 @@ -// @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 21e45070a9c7e..bc2c992dafcc8 100644 --- a/tests/cases/conformance/salsa/circularMultipleAssignmentDeclaration.ts +++ b/tests/cases/conformance/salsa/circularMultipleAssignmentDeclaration.ts @@ -1,4 +1,3 @@ -// @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 b42ba3f383b0c..08eda40909058 100644 --- a/tests/cases/conformance/salsa/commonJSAliasedExport.ts +++ b/tests/cases/conformance/salsa/commonJSAliasedExport.ts @@ -1,4 +1,3 @@ -// @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 32ab91dcd3d6c..35acd416e79b1 100644 --- a/tests/cases/conformance/salsa/conflictingCommonJSES2015Exports.ts +++ b/tests/cases/conformance/salsa/conflictingCommonJSES2015Exports.ts @@ -1,4 +1,3 @@ -// @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 28b9b5720b26f..35eae4b0e2891 100644 --- a/tests/cases/conformance/salsa/constructorFunctions.ts +++ b/tests/cases/conformance/salsa/constructorFunctions.ts @@ -1,4 +1,3 @@ -// @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 73de94a16940f..439fe5e49113c 100644 --- a/tests/cases/conformance/salsa/constructorFunctions2.ts +++ b/tests/cases/conformance/salsa/constructorFunctions2.ts @@ -1,4 +1,3 @@ -// @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 0c592d030cfb8..1a2ecb09f8170 100644 --- a/tests/cases/conformance/salsa/expandoOnAlias.ts +++ b/tests/cases/conformance/salsa/expandoOnAlias.ts @@ -1,4 +1,3 @@ -// @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 6ab567f50da04..3745d3bd2c402 100644 --- a/tests/cases/conformance/salsa/exportNestedNamespaces2.ts +++ b/tests/cases/conformance/salsa/exportNestedNamespaces2.ts @@ -1,4 +1,3 @@ -// @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 8d57ec12f6de9..2126bd17ff1c7 100644 --- a/tests/cases/conformance/salsa/inferringClassMembersFromAssignments8.ts +++ b/tests/cases/conformance/salsa/inferringClassMembersFromAssignments8.ts @@ -1,4 +1,3 @@ -// @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 c5acf58763f99..4991d674d5e75 100644 --- a/tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts +++ b/tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts @@ -1,4 +1,3 @@ -// @strict: false // @outFile: output.js // @allowJs: true diff --git a/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts b/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts index 723e06254cbb4..8dd13383df00c 100644 --- a/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts +++ b/tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts @@ -1,4 +1,3 @@ -// @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 76b9494b5a180..027cc83e6f1e2 100644 --- a/tests/cases/conformance/salsa/moduleExportAlias2.ts +++ b/tests/cases/conformance/salsa/moduleExportAlias2.ts @@ -1,4 +1,3 @@ -// @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 ad5cba5229441..decb27392126c 100644 --- a/tests/cases/conformance/salsa/moduleExportAssignment2.ts +++ b/tests/cases/conformance/salsa/moduleExportAssignment2.ts @@ -1,4 +1,3 @@ -// @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 46458ff364b81..979c423b6ddac 100644 --- a/tests/cases/conformance/salsa/moduleExportAssignment4.ts +++ b/tests/cases/conformance/salsa/moduleExportAssignment4.ts @@ -1,4 +1,3 @@ -// @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 048141ddd81e8..2f31c3a369982 100644 --- a/tests/cases/conformance/salsa/privateIdentifierExpando.ts +++ b/tests/cases/conformance/salsa/privateIdentifierExpando.ts @@ -1,4 +1,3 @@ -// @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 77637f760014d..083cf23baac06 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentOnImportedSymbol.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentOnImportedSymbol.ts @@ -1,4 +1,3 @@ -// @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 2fdb6150c2383..7bfd76959a01a 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts @@ -1,4 +1,3 @@ -// @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 c279603da69cb..a879367e06f2a 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts @@ -1,4 +1,3 @@ -// @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 0719ba037aa0b..500ae6f2fe377 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentUseParentType1.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentUseParentType1.ts @@ -1,4 +1,3 @@ -// @strict: false interface N { (): boolean num: 123; diff --git a/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts b/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts index 7f2a22a54dc33..53696abbf8110 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentUseParentType2.ts @@ -1,4 +1,3 @@ -// @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 e8924a5bc132f..9a1357fd52bee 100644 --- a/tests/cases/conformance/salsa/propertyAssignmentUseParentType3.ts +++ b/tests/cases/conformance/salsa/propertyAssignmentUseParentType3.ts @@ -1,4 +1,3 @@ -// @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 51750fc37b42c..7cf806450a0ef 100644 --- a/tests/cases/conformance/salsa/topLevelThisAssignment.ts +++ b/tests/cases/conformance/salsa/topLevelThisAssignment.ts @@ -1,4 +1,3 @@ -// @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 cef975fe3e727..d8b9a28c56953 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts @@ -1,4 +1,3 @@ -// @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 fe454857fc9c4..aa700b2800262 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts @@ -1,4 +1,3 @@ -// @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 cf76bc6993e25..5e5228874d223 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts @@ -1,4 +1,3 @@ -// @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 90624bd19751f..308da40f3c46b 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts @@ -1,4 +1,3 @@ -// @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 4fd632a0ec59e..9724da7198246 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts @@ -1,4 +1,3 @@ -// @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 bd629bccc54e0..201560d5055ef 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts @@ -1,4 +1,3 @@ -// @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 28472ca2583ae..b3aaaf1702b80 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts @@ -1,4 +1,3 @@ -// @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 2e8ae589f1189..c8099a033953c 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts @@ -1,4 +1,3 @@ -// @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 2816e4c74ea32..534e3bcc4c3aa 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts @@ -1,4 +1,3 @@ -// @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 d82c879de184d..14358c8a725dd 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts @@ -1,4 +1,3 @@ -// @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 9cb6d0167c0cf..40525ef019179 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts @@ -1,4 +1,3 @@ -// @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 7cae0bfc73df3..985dd5714ef82 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts @@ -1,4 +1,3 @@ -// @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 f60f42d09964c..5931a9960fdc4 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts @@ -1,4 +1,3 @@ -// @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 146c1fd591976..13214cbf4480e 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts @@ -1,4 +1,3 @@ -// @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 da9906d145f06..968a8206c195e 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts @@ -1,4 +1,3 @@ -// @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 a6081940e44a1..18923e0a5a8f6 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts @@ -1,4 +1,3 @@ -// @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 35bca77d21d2e..e11d9c7ac5523 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts @@ -1,4 +1,3 @@ -// @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 47f7a1c077dab..37c24366da9eb 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts @@ -1,4 +1,3 @@ -// @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 1489a87f1df48..71963749f1a1b 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts @@ -1,4 +1,3 @@ -// @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 53142852cb0aa..5a9ffd3e415ce 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts @@ -1,4 +1,3 @@ -// @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 fd5f7e8b4a2c8..1882731c8f106 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts @@ -1,4 +1,3 @@ -// @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 4ead372ce20ad..1ae7f06f5b2c3 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts @@ -1,4 +1,3 @@ -// @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 35fb35a1d85e9..e24c8ec2b944a 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts @@ -1,4 +1,3 @@ -// @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 33bbdee513fd6..7c11a2a64bbec 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts @@ -1,4 +1,3 @@ -// @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 97ea9a2c9b296..498aa151e7306 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts @@ -1,4 +1,3 @@ -// @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 22d62e807028e..d98f689329dd3 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts @@ -1,4 +1,3 @@ -// @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 768e48bfa6a84..1c6be8f01718d 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts @@ -1,4 +1,3 @@ -// @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 e0a2cd5e55073..952fdd7c9c02d 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts @@ -1,4 +1,3 @@ -// @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 abadd6fc0953e..0e60c78621ead 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts @@ -1,4 +1,3 @@ -// @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 a744914afce93..14e84ad556817 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts @@ -1,4 +1,3 @@ -// @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 7b6a8b15d0771..43600eac441ad 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts @@ -1,4 +1,3 @@ -// @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 cfa3f0edd8717..844f308f9b888 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts @@ -1,4 +1,3 @@ -// @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 a86e315806a49..fb66f9399729b 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts @@ -1,4 +1,3 @@ -// @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 43e34c7cea01b..7e42915ddcb41 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts @@ -1,4 +1,3 @@ -// @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 687438b1b5b9e..798ede6a0c59a 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts @@ -1,4 +1,3 @@ -// @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 fc2fd66dd8954..2d6040e319dba 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts @@ -1,4 +1,3 @@ -// @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 aea087753ad1f..cdb2a0e2af3f2 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts @@ -1,4 +1,3 @@ -// @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 30dfc536cdc0b..61f6de98abbae 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts @@ -1,4 +1,3 @@ -// @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 515dca1e21e96..f0d861a6a29d3 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts @@ -1,4 +1,3 @@ -// @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 5a3c9991a88eb..ed4ca168bf7cf 100644 --- a/tests/cases/conformance/salsa/typeFromPropertyAssignmentWithExport.ts +++ b/tests/cases/conformance/salsa/typeFromPropertyAssignmentWithExport.ts @@ -1,4 +1,3 @@ -// @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 6c728b1d98522..426e327981c6e 100644 --- a/tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts +++ b/tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts @@ -1,4 +1,3 @@ -// @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 50240a42abfa9..d64261a572eef 100644 --- a/tests/cases/conformance/salsa/unannotatedParametersAreOptional.ts +++ b/tests/cases/conformance/salsa/unannotatedParametersAreOptional.ts @@ -1,4 +1,3 @@ -// @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 234edfebf6c1d..dda7d3b6c6064 100644 --- a/tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts +++ b/tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts @@ -1,4 +1,3 @@ -// @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 34a71a14a78bb..ddfba652201fe 100644 --- a/tests/cases/conformance/statements/VariableStatements/recursiveInitializer.ts +++ b/tests/cases/conformance/statements/VariableStatements/recursiveInitializer.ts @@ -1,4 +1,3 @@ -// @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 eb9bc5f0ef6a8..71ab320393561 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts @@ -1,4 +1,3 @@ -// @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 952eb3609ffbd..1f132c396407c 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.10.ts @@ -1,4 +1,3 @@ -// @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 15cb3adb39a72..d22e7abcc7086 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts @@ -1,4 +1,3 @@ -// @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 e376ffbac2501..6013970105c30 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts @@ -1,4 +1,3 @@ -// @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 b3354d67e05f7..c1a88f304148d 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts @@ -1,4 +1,3 @@ -// @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 b18fa19085070..9a32c0614ee45 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts @@ -1,4 +1,3 @@ -// @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 ea3fd765b2534..f92136565435d 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts @@ -1,4 +1,3 @@ -// @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 7bf67b4d8f597..867d58ae3ffde 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.16.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.16.ts @@ -1,4 +1,3 @@ -// @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 8c4fc694f6248..21b021fb1ddb4 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.17.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.17.ts @@ -1,4 +1,3 @@ -// @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 8a76e1d0481f8..cf1eee443b6bc 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts @@ -1,4 +1,3 @@ -// @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 a2c2990f336e1..b172bdab826f5 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts @@ -1,4 +1,3 @@ -// @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 5f9c6198e3b79..f246cd1aaab41 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts @@ -1,4 +1,3 @@ -// @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 0b7e0d469fc07..1dfa88ce88b6f 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.8.ts @@ -1,4 +1,3 @@ -// @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 0a686d3414b9e..b9fba2635669e 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.9.ts @@ -1,4 +1,3 @@ -// @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 e702087171535..0f075d4a752b8 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts @@ -1,4 +1,3 @@ -// @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 5d290c678e7f1..77f00d6463624 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts @@ -1,4 +1,3 @@ -// @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 f60e2bdd16d81..bf52c85e25aa3 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts @@ -1,4 +1,3 @@ -// @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 210cc162be3ce..8f488313a91d9 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts @@ -1,4 +1,3 @@ -// @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 71186e858a34a..12621f830853e 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForIn.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForIn.ts @@ -1,4 +1,3 @@ -// @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 28542ff4d1e65..cd26c931d2acd 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts @@ -1,4 +1,3 @@ -// @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 5202438a73a2c..4d6ac155a9c46 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.2.ts @@ -1,4 +1,3 @@ -// @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 d13bd315e303f..e686baa1120c7 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.3.ts @@ -1,4 +1,3 @@ -// @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 9ea33f0e27c77..6edaa895a3bc7 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts @@ -1,4 +1,3 @@ -// @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 a3f38ef64ace4..2838da346d2f8 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts @@ -1,4 +1,3 @@ -// @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 a9a1bcae83c3b..2dd393031dffb 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts @@ -1,4 +1,3 @@ -// @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 05a979365dcad..de8fdd378da79 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithIteratorObject.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithIteratorObject.ts @@ -1,4 +1,3 @@ -// @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 84ea08b65ccd9..9cc4228a349f7 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts @@ -1,4 +1,3 @@ -// @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 f72a70d9a2662..13a77b4379a94 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.10.ts @@ -1,4 +1,3 @@ -// @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 d7cdd5a6b24e6..603e25901b9bd 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.11.ts @@ -1,4 +1,3 @@ -// @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 d8b80703fae64..fd24eff921836 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts @@ -1,4 +1,3 @@ -// @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 f3b0819e562e0..164c1fae81852 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts @@ -1,4 +1,3 @@ -// @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 2f517ff29af41..7489f99a03d60 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.14.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.14.ts @@ -1,4 +1,3 @@ -// @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 042912b97e641..79b0032da9003 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.15.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.15.ts @@ -1,4 +1,3 @@ -// @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 596fac8b2cf34..570d8c22990ce 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.16.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.16.ts @@ -1,4 +1,3 @@ -// @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 7e4cae4904bf9..6b3eef52e2e9b 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.17.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.17.ts @@ -1,4 +1,3 @@ -// @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 aaf51c860419e..90991a578edce 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts @@ -1,4 +1,3 @@ -// @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 3cd6fa06aceba..c328e3e9914d1 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts @@ -1,4 +1,3 @@ -// @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 ee3aad12129cc..4f0a3620529d3 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts @@ -1,4 +1,3 @@ -// @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 fd38283c95968..70859a4313708 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.8.ts @@ -1,4 +1,3 @@ -// @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 a317447a87d33..cec1bd79ee30c 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.9.ts @@ -1,4 +1,3 @@ -// @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 6eec19e39511f..a7209fa70ceba 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInFor.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInFor.ts @@ -1,4 +1,3 @@ -// @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 d0bad2154c1b0..807e2acce50d1 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForAwaitOf.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForAwaitOf.ts @@ -1,4 +1,3 @@ -// @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 dc9b62f7df5e6..ea9c191edd4a5 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts @@ -1,4 +1,3 @@ -// @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 64c2a7dd71c96..be2412cb1b24f 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts @@ -1,4 +1,3 @@ -// @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 983199ac6b208..50ffa8ec3555d 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.2.ts @@ -1,4 +1,3 @@ -// @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 9ce3cd28ecd7b..a897bf1961330 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts @@ -1,4 +1,3 @@ -// @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 bc2b809bd12e3..359a01d2b06fd 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.4.ts @@ -1,4 +1,3 @@ -// @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 c94abd98e798a..e6da37efd08f2 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.1.ts @@ -1,4 +1,3 @@ -// @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 20a5a6ddc25e3..09228bd94e081 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts @@ -1,4 +1,3 @@ -// @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 0fd95a1e53c75..e3b426e0669e2 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.11.ts @@ -1,4 +1,3 @@ -// @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 640ec5f3bd688..e925063f9d346 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts @@ -1,4 +1,3 @@ -// @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 f56b769d92b9b..d34b1d21e54b6 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts @@ -1,4 +1,3 @@ -// @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 d408a100d180a..f3fdfea70b31a 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts @@ -1,4 +1,3 @@ -// @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 b2b5274080baf..9ef4a5802bac2 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts @@ -1,4 +1,3 @@ -// @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 9a6a93bd53b8a..4062f99c9b062 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts @@ -1,4 +1,3 @@ -// @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 38f9d89dad2a5..334e1a3a21d12 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts @@ -1,4 +1,3 @@ -// @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 42311c685dd7d..8e24ea3bd5c9e 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts @@ -1,4 +1,3 @@ -// @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 80c1f30368d35..fad68539c46cf 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts @@ -1,4 +1,3 @@ -// @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 79728432e8c57..cc26af1c70bf2 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts @@ -1,4 +1,3 @@ -// @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 525ca7ce67373..5a96faa75f873 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithImportHelpers.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithImportHelpers.ts @@ -1,4 +1,3 @@ -// @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 51829b00ae823..59ba2516fea27 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithIteratorObject.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithIteratorObject.ts @@ -1,4 +1,3 @@ -// @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 8bab888b9129e..72d1e56f2d204 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.1.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.1.ts @@ -1,4 +1,3 @@ -// @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 66ae56daff785..be1f669030e1b 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts @@ -1,4 +1,3 @@ -// @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 68734242536f7..b7a7e36341113 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts @@ -1,4 +1,3 @@ -// @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 48025f27a56c1..d650e4a248952 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts @@ -1,4 +1,3 @@ -// @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 82f53984a7116..58d5a73ca3f33 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts @@ -1,4 +1,3 @@ -// @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 655addbfada33..680afb945a8e3 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts @@ -1,4 +1,3 @@ -// @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 fc271fffb46cd..61a67f91fe984 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts @@ -1,4 +1,3 @@ -// @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 950ce59e8dca8..f3fb2c4980159 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts @@ -1,4 +1,3 @@ -// @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 11d81f432452b..27d3c78e46e7b 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts @@ -1,4 +1,3 @@ -// @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 a20996720eab4..972810f29da56 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts @@ -1,4 +1,3 @@ -// @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 e4890799bce42..9ea6a419e8750 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts @@ -1,4 +1,3 @@ -// @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 71446fad573de..48dc496c5e325 100644 --- a/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts +++ b/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts @@ -1,4 +1,3 @@ -// @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 b83bec4725bde..ffc99ee904bf3 100644 --- a/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts +++ b/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts @@ -1,4 +1,3 @@ -// @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 377a16c63bdaa..b5ccd8189ca1b 100644 --- a/tests/cases/conformance/statements/continueStatements/forInContinueStatements.ts +++ b/tests/cases/conformance/statements/continueStatements/forInContinueStatements.ts @@ -1,4 +1,3 @@ -// @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 48d838bdbae67..daaeeee0c1494 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatements.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatements.ts @@ -1,4 +1,3 @@ -// @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 213aba60de795..6acf8d4b35515 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsArray.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsArray.ts @@ -1,4 +1,3 @@ -// @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 71b053ced4d35..ae63dd31362ab 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsAsyncIdentifier.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsAsyncIdentifier.ts @@ -1,4 +1,3 @@ -// @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 69cb50b0d049e..411261dee43a0 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring3.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring3.ts @@ -1,3 +1,2 @@ -// @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 21f320eddf053..816dd564b6a1b 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring4.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsDestructuring4.ts @@ -1,3 +1,2 @@ -// @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 8d7f216e7adcb..664a68b8172cf 100644 --- a/tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts +++ b/tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts @@ -1,4 +1,3 @@ -// @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 0ebaef0e46656..26dcea71a0eef 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of14.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of14.ts @@ -1,4 +1,3 @@ -// @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 23ce008a9d996..2124870d7e39a 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of15.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of15.ts @@ -1,4 +1,3 @@ -// @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 48020436de103..d1354999340af 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of16.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of16.ts @@ -1,4 +1,3 @@ -// @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 8fc00c02d73ba..e7de82d278587 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of18.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of18.ts @@ -1,4 +1,3 @@ -// @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 fff8fef1633dc..447048c374b07 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of19.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of19.ts @@ -1,4 +1,3 @@ -// @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 882c9d86b2fac..5015082a4a954 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of2.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of2.ts @@ -1,4 +1,3 @@ -// @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 010164a7aaa6c..6a1a77d82ae7f 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts @@ -1,4 +1,3 @@ -// @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 87338239529fc..cb0c3cf2329e1 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of21.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of21.ts @@ -1,4 +1,3 @@ -// @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 fa74f83a195fb..ef35b6efd9c23 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts @@ -1,4 +1,3 @@ -// @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 76c90c718c5df..7d93246f2bbe3 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts @@ -1,4 +1,3 @@ -// @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 82c6ade7dabe5..7e025183f5fed 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of24.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of24.ts @@ -1,4 +1,3 @@ -// @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 1ca3f8dbb4a80..7017991c7f2fb 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of25.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of25.ts @@ -1,4 +1,3 @@ -// @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 376e979d3ad12..13a386309bb64 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of26.ts @@ -1,4 +1,3 @@ -// @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 356bdc0d863ee..4a56779b68db4 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts @@ -1,4 +1,3 @@ -// @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 d43be28ce6b3c..00f36f7d5d231 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of28.ts @@ -1,4 +1,3 @@ -// @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 2354253f9a842..5b5e52e75c5f2 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of29.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of29.ts @@ -1,4 +1,3 @@ -// @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 2d01d97abeff2..42fb4c01bdcd6 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts @@ -1,4 +1,3 @@ -// @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 a32ecb13c06c3..ee968515d6545 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of5.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of5.ts @@ -1,4 +1,3 @@ -// @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 9afd8ac36b3c3..a04ee2d6177bf 100644 --- a/tests/cases/conformance/statements/for-ofStatements/ES5For-of6.ts +++ b/tests/cases/conformance/statements/for-ofStatements/ES5For-of6.ts @@ -1,4 +1,3 @@ -// @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 ba4b438609eaa..c5875327b50af 100644 --- a/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts +++ b/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts @@ -1,4 +1,3 @@ -// @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 0a350061f834a..5825ed6c2e0df 100644 --- a/tests/cases/conformance/statements/throwStatements/throwStatements.ts +++ b/tests/cases/conformance/statements/throwStatements/throwStatements.ts @@ -1,4 +1,3 @@ -// @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 7915a9168ad8c..dfa60a415f91a 100644 --- a/tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts +++ b/tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts @@ -1,4 +1,3 @@ -// @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 64b313f9babf4..473bd349b5f91 100644 --- a/tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts +++ b/tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts @@ -1,4 +1,3 @@ -// @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 2c8dd74d59f81..6d39be9cef75e 100644 --- a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts +++ b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts @@ -1,4 +1,3 @@ -// @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 f17847f022502..0053f71b98679 100644 --- a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts +++ b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts @@ -1,4 +1,3 @@ -// @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 0a05c1c353f95..867b6526c1277 100644 --- a/tests/cases/conformance/types/contextualTypes/partiallyAnnotatedFunction/partiallyAnnotatedFunctionInferenceError.ts +++ b/tests/cases/conformance/types/contextualTypes/partiallyAnnotatedFunction/partiallyAnnotatedFunctionInferenceError.ts @@ -1,4 +1,3 @@ -// @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 fc451895739d8..5689d2218401a 100644 --- a/tests/cases/conformance/types/intersection/operatorsAndIntersectionTypes.ts +++ b/tests/cases/conformance/types/intersection/operatorsAndIntersectionTypes.ts @@ -1,4 +1,3 @@ -// @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 422782c6f669f..388d5efb637d4 100644 --- a/tests/cases/conformance/types/localTypes/localTypes4.ts +++ b/tests/cases/conformance/types/localTypes/localTypes4.ts @@ -1,4 +1,3 @@ -// @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 67adc2c75c220..407e0eaf56da7 100644 --- a/tests/cases/conformance/types/mapped/mappedTypeProperties.ts +++ b/tests/cases/conformance/types/mapped/mappedTypeProperties.ts @@ -1,4 +1,3 @@ -// @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 d72c0ea809d1c..2997cec1734ee 100644 --- a/tests/cases/conformance/types/members/augmentedTypeAssignmentCompatIndexSignature.ts +++ b/tests/cases/conformance/types/members/augmentedTypeAssignmentCompatIndexSignature.ts @@ -1,4 +1,3 @@ -// @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 0154918e0a1fc..0efb6c2a19c8d 100644 --- a/tests/cases/conformance/types/members/augmentedTypeBracketAccessIndexSignature.ts +++ b/tests/cases/conformance/types/members/augmentedTypeBracketAccessIndexSignature.ts @@ -1,4 +1,3 @@ -// @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 d833fbc141d9e..bdc9a5356ac10 100644 --- a/tests/cases/conformance/types/members/classWithPrivateProperty.ts +++ b/tests/cases/conformance/types/members/classWithPrivateProperty.ts @@ -1,4 +1,3 @@ -// @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 6ef87e1dfc44b..96bc615c020f1 100644 --- a/tests/cases/conformance/types/members/classWithProtectedProperty.ts +++ b/tests/cases/conformance/types/members/classWithProtectedProperty.ts @@ -1,4 +1,3 @@ -// @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 a850c24e9ebea..804e4991fe4a2 100644 --- a/tests/cases/conformance/types/members/classWithPublicProperty.ts +++ b/tests/cases/conformance/types/members/classWithPublicProperty.ts @@ -1,4 +1,3 @@ -// @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 822d7a8b235f1..15335b7c5f129 100644 --- a/tests/cases/conformance/types/members/duplicatePropertyNames.ts +++ b/tests/cases/conformance/types/members/duplicatePropertyNames.ts @@ -1,4 +1,3 @@ -// @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 ba2f68e12cc86..dfa7c9c52207b 100644 --- a/tests/cases/conformance/types/members/objectTypeHidingMembersOfExtendedObject.ts +++ b/tests/cases/conformance/types/members/objectTypeHidingMembersOfExtendedObject.ts @@ -1,4 +1,3 @@ -// @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 db3cf5bc5e77a..4361d082e30ec 100644 --- a/tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts +++ b/tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts @@ -1,4 +1,3 @@ -// @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 4d78c2c947e8d..b9fb469940287 100644 --- a/tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts +++ b/tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts @@ -1,4 +1,3 @@ -// @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 3fa36deaa0b3b..a3fc549b7a035 100644 --- a/tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts +++ b/tests/cases/conformance/types/members/objectTypeWithDuplicateNumericProperty.ts @@ -1,4 +1,3 @@ -// @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 3ef2800bd4cfa..d5c6a4a395477 100644 --- a/tests/cases/conformance/types/members/objectTypeWithStringIndexerHidingObjectIndexer.ts +++ b/tests/cases/conformance/types/members/objectTypeWithStringIndexerHidingObjectIndexer.ts @@ -1,4 +1,3 @@ -// @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 a34f2b679e64a..766f56bdd2681 100644 --- a/tests/cases/conformance/types/members/objectTypeWithStringNamedPropertyOfIllegalCharacters.ts +++ b/tests/cases/conformance/types/members/objectTypeWithStringNamedPropertyOfIllegalCharacters.ts @@ -1,4 +1,3 @@ -// @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 5b424461d4b50..9eef3476f2da1 100644 --- a/tests/cases/conformance/types/members/typesWithSpecializedCallSignatures.ts +++ b/tests/cases/conformance/types/members/typesWithSpecializedCallSignatures.ts @@ -1,4 +1,3 @@ -// @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 d55fdb12f1453..7c84e76f14e3b 100644 --- a/tests/cases/conformance/types/members/typesWithSpecializedConstructSignatures.ts +++ b/tests/cases/conformance/types/members/typesWithSpecializedConstructSignatures.ts @@ -1,4 +1,3 @@ -// @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 b1a21aeefd202..a6686f0ae3524 100644 --- a/tests/cases/conformance/types/namedTypes/genericInstantiationEquivalentToObjectLiteral.ts +++ b/tests/cases/conformance/types/namedTypes/genericInstantiationEquivalentToObjectLiteral.ts @@ -1,4 +1,3 @@ -// @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 930d3ecb07da4..2ec8cf83cb740 100644 --- a/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts +++ b/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts @@ -1,4 +1,3 @@ -// @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 7e5b781642a98..36c860133c290 100644 --- a/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts +++ b/tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts @@ -1,4 +1,3 @@ -// @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 ccfb5d1505596..3f1fcbb6f1bc3 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithOptionalParameterAndInitializer.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithOptionalParameterAndInitializer.ts @@ -1,4 +1,3 @@ -// @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 ef42d00e9bb17..a73e224112eae 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutAnnotationsOrBody.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutAnnotationsOrBody.ts @@ -1,4 +1,3 @@ -// @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 0390d0b68cf89..fa3de3127291a 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutReturnTypeAnnotationInference.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignatureWithoutReturnTypeAnnotationInference.ts @@ -1,4 +1,3 @@ -// @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 4190b2677783d..84b63bf8dee36 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType.ts @@ -1,4 +1,3 @@ -// @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 c212c6bb6791b..c131052a73633 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts @@ -1,4 +1,3 @@ -// @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 3fa12759ff1ce..3b5cef704445e 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts @@ -1,4 +1,3 @@ -// @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 a2f8853e12123..82489f6e4c460 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithAccessibilityModifiersOnParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithAccessibilityModifiersOnParameters.ts @@ -1,4 +1,3 @@ -// @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 0b72aa8ab4106..d5ff0c1f56fe2 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithDuplicateParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithDuplicateParameters.ts @@ -1,4 +1,3 @@ -// @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 69034b7e6a6fd..34edfba671d80 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters.ts @@ -1,4 +1,3 @@ -// @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 c93c4c8a2b1b7..4f31726f8299a 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithOptionalParameters2.ts @@ -1,4 +1,3 @@ -// @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 33ca662118c34..6baa9f5ffd180 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers.ts @@ -1,4 +1,3 @@ -// @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 4a49fe35f76cb..ff27018c7eb11 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers2.ts @@ -1,4 +1,3 @@ -// @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 eb9b12e44a6dd..e2f9dbce983cb 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters.ts @@ -1,4 +1,3 @@ -// @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 9869db0261903..bebaa03276122 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/constructSignatureWithAccessibilityModifiersOnParameters2.ts @@ -1,4 +1,3 @@ -// @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 a47383bdac2ae..0bbedcc253135 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures.ts @@ -1,4 +1,3 @@ -// @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 abb6b97923c93..1d9bb8443560e 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures2.ts @@ -1,4 +1,3 @@ -// @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 5c95b74a84030..2c47993fbe53c 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts @@ -1,4 +1,3 @@ -// @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 d39cd000621bf..432c905765443 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts @@ -1,4 +1,3 @@ -// @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 c6a94dfa17c7f..9dd2960a7a11f 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParameterWithoutAnnotationIsAnyArray.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParameterWithoutAnnotationIsAnyArray.ts @@ -1,4 +1,3 @@ -// @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 5edf17ea4acfa..8b816f42ee5fa 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes.ts @@ -1,4 +1,3 @@ -// @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 5f5e07260a576..2b5cfec1bb364 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersOfNonArrayTypes2.ts @@ -1,4 +1,3 @@ -// @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 51393c27a02e1..4f37f4ce1cbd4 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersWithArrayTypeAnnotations.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/restParametersWithArrayTypeAnnotations.ts @@ -1,4 +1,3 @@ -// @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 f5f4b98738d6c..01f33fbd7bb50 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts @@ -1,4 +1,3 @@ -// @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 32ce43d7e3c36..70735b8edd78d 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsSubtypeOfNonSpecializedSignature.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsSubtypeOfNonSpecializedSignature.ts @@ -1,4 +1,3 @@ -// @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 3a267792e19a1..a8bf323850b2f 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures.ts @@ -1,4 +1,3 @@ -// @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 21fd1b682f5e9..baaea8ee750a5 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures2.ts @@ -1,4 +1,3 @@ -// @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 f0cb8bdaafa2c..44f6ed27bbf9e 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations.ts @@ -1,4 +1,3 @@ -// @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 44ac9a67e80fb..e9dd1e9ec3038 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations2.ts @@ -1,4 +1,3 @@ -// @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 6aa24a0d2db60..83e56cb037915 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations.ts @@ -1,4 +1,3 @@ -// @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 d2bd70e8e0d2f..d38850a6ae203 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations2.ts @@ -1,4 +1,3 @@ -// @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 1a2663252225f..4f1c79d0268e1 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/objectTypesWithOptionalProperties2.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/objectTypesWithOptionalProperties2.ts @@ -1,4 +1,3 @@ -// @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 714b9eb6edd9e..42f42eb3127c2 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts @@ -1,4 +1,3 @@ -// @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 ac849df89c397..6673465381f50 100644 --- a/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNamesOfReservedWords.ts +++ b/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNamesOfReservedWords.ts @@ -1,4 +1,3 @@ -// @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 89b379effd225..7082bcccb440e 100644 --- a/tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts +++ b/tests/cases/conformance/types/primitives/stringLiteral/stringLiteralType.ts @@ -1,4 +1,3 @@ -// @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 48aca913bfd52..e3eebf0d011e3 100644 --- a/tests/cases/conformance/types/rest/objectRest.ts +++ b/tests/cases/conformance/types/rest/objectRest.ts @@ -1,4 +1,3 @@ -// @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 221900907519e..4a38123f1ac15 100644 --- a/tests/cases/conformance/types/rest/objectRest2.ts +++ b/tests/cases/conformance/types/rest/objectRest2.ts @@ -1,4 +1,3 @@ -// @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 6063cc26b9ec2..dedc99b1f713a 100644 --- a/tests/cases/conformance/types/rest/objectRestAssignment.ts +++ b/tests/cases/conformance/types/rest/objectRestAssignment.ts @@ -1,4 +1,3 @@ -// @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 330489b3144eb..ec7e5b950206f 100644 --- a/tests/cases/conformance/types/rest/objectRestCatchES5.ts +++ b/tests/cases/conformance/types/rest/objectRestCatchES5.ts @@ -1,4 +1,3 @@ -// @strict: false // @useUnknownInCatchVariables: false let a = 1, b = 2; diff --git a/tests/cases/conformance/types/rest/objectRestForOf.ts b/tests/cases/conformance/types/rest/objectRestForOf.ts index 59351ffa1e5cd..4f675b1f15b91 100644 --- a/tests/cases/conformance/types/rest/objectRestForOf.ts +++ b/tests/cases/conformance/types/rest/objectRestForOf.ts @@ -1,4 +1,3 @@ -// @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 abdf0d0b6b571..5b6faeb797829 100644 --- a/tests/cases/conformance/types/rest/objectRestParameter.ts +++ b/tests/cases/conformance/types/rest/objectRestParameter.ts @@ -1,4 +1,3 @@ -// @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 a7388b68bd1d1..07a15ffbd4415 100644 --- a/tests/cases/conformance/types/rest/objectRestParameterES5.ts +++ b/tests/cases/conformance/types/rest/objectRestParameterES5.ts @@ -1,4 +1,3 @@ -// @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 b4865e3ed97b9..2e4e17dc302ce 100644 --- a/tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts +++ b/tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts @@ -1,4 +1,3 @@ -// @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 8e819edd57a95..be6006203481b 100644 --- a/tests/cases/conformance/types/rest/objectRestReadonly.ts +++ b/tests/cases/conformance/types/rest/objectRestReadonly.ts @@ -1,4 +1,3 @@ -// @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 3015596580a18..bed9753b5f9fa 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts @@ -1,4 +1,3 @@ -// @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 728d399c9f334..48397b90a820a 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts @@ -1,4 +1,3 @@ -// @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 c141070943f40..d3ffdbe56a3d0 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads.ts @@ -1,4 +1,3 @@ -// @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 5f40d9c85caaa..4ba6a76000f18 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts @@ -1,4 +1,3 @@ -// @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 eb4f22d1e83de..92959698885c5 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeLiterals/parenthesizedTypes.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeLiterals/parenthesizedTypes.ts @@ -1,4 +1,3 @@ -// @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 2e72559acbce8..d80f16458f04d 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts @@ -1,4 +1,3 @@ -// @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 ad0fb1169273c..3e8ee82c74924 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryOnClass.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryOnClass.ts @@ -1,4 +1,3 @@ -// @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 5afbe5ab57daf..df1898a5436a4 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts @@ -1,4 +1,3 @@ -// @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 b6db5a13ac18f..5099887a7491c 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts @@ -1,4 +1,3 @@ -// @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 b6db5a13ac18f..5099887a7491c 100644 --- a/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts +++ b/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts @@ -1,4 +1,3 @@ -// @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 41fb04f247102..388f4567ed72a 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAndTuples01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAndTuples01.ts @@ -1,4 +1,3 @@ -// @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 b766ad6b5d85b..ba1894065339d 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts @@ -1,4 +1,3 @@ -// @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 509ac4e41c462..9fdc942a3f25a 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags02.ts @@ -1,4 +1,3 @@ -// @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 d8b439bbf9890..96011d27255d9 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags03.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags03.ts @@ -1,4 +1,3 @@ -// @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 57f983b3ef079..05f8c5111180b 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes01.ts @@ -1,4 +1,3 @@ -// @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 004553c8a3d7b..ee61efc37cac5 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes02.ts @@ -1,4 +1,3 @@ -// @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 356b3455f25e9..96a4f035c4baa 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes03.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes03.ts @@ -1,4 +1,3 @@ -// @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 d3ddb1fb3b6ce..9f37e272b460c 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes04.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInUnionTypes04.ts @@ -1,4 +1,3 @@ -// @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 d253cdc04b36a..4f0063876876a 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInVariableDeclarations01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesInVariableDeclarations01.ts @@ -1,4 +1,3 @@ -// @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 660dc62ac91af..0044113440561 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads01.ts @@ -1,4 +1,3 @@ -// @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 a0634cceb2d04..9e142702026d5 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads02.ts @@ -1,4 +1,3 @@ -// @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 1876c5742cc06..2199ff3a7c782 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralTypesTypePredicates01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralTypesTypePredicates01.ts @@ -1,4 +1,3 @@ -// @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 5d4620dcd2994..53e6c1bae7ebf 100644 --- a/tests/cases/conformance/types/thisType/contextualThisTypeInJavascript.ts +++ b/tests/cases/conformance/types/thisType/contextualThisTypeInJavascript.ts @@ -1,4 +1,3 @@ -// @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 ca7d3c7f44a6e..f4a2eb19e2e5e 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctions.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctions.ts @@ -1,4 +1,3 @@ -// @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 660c691bde1b6..01d7fd0430bfa 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts @@ -1,4 +1,3 @@ -// @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 c8e268a60f7a2..ade3e65e02902 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts @@ -1,4 +1,3 @@ -// @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 d21c22b9a4bcb..62db5f28c0e8f 100644 --- a/tests/cases/conformance/types/thisType/thisTypeInFunctionsNegative.ts +++ b/tests/cases/conformance/types/thisType/thisTypeInFunctionsNegative.ts @@ -1,4 +1,3 @@ -// @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 510a08c4b061a..9846c4f5b0f98 100644 --- a/tests/cases/conformance/types/tuple/named/namedTupleMembers.ts +++ b/tests/cases/conformance/types/tuple/named/namedTupleMembers.ts @@ -1,4 +1,3 @@ -// @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 2c4fddcdf7a2d..ecd90aebd7ddd 100644 --- a/tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts +++ b/tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts @@ -1,4 +1,3 @@ -// @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 609f77330f2a0..9357dbbfe09b7 100644 --- a/tests/cases/conformance/types/typeAliases/asiPreventsParsingAsTypeAlias02.ts +++ b/tests/cases/conformance/types/typeAliases/asiPreventsParsingAsTypeAlias02.ts @@ -1,4 +1,3 @@ -// @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 5540f0e1973ca..00ae809df851d 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts @@ -1,4 +1,3 @@ -// @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 daa34e6945e1e..ba1c5b003f703 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction.ts @@ -1,4 +1,3 @@ -// @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 5ef8fcce82557..7094d67c8a6b4 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts @@ -1,4 +1,3 @@ -// @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 04ff6c0b5b423..6c32014789621 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction3.ts @@ -1,4 +1,3 @@ -// @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 1bb94fe4c354d..1d916beddd23e 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/instantiateNonGenericTypeWithTypeArguments.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/instantiateNonGenericTypeWithTypeArguments.ts @@ -1,4 +1,3 @@ -// @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 7152a2968f8d1..0a4e70a2890b0 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively.ts @@ -1,4 +1,3 @@ -// @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 66fcf669f82c9..f1e074aa9f7a0 100644 --- a/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively2.ts +++ b/tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraintTransitively2.ts @@ -1,4 +1,3 @@ -// @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 ff7372615a667..b89016ecff50d 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints.ts @@ -1,4 +1,3 @@ -// @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 33ffdde834cf4..10f3a498848f8 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints2.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints2.ts @@ -1,4 +1,3 @@ -// @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 d33e2c5a17874..6167485f1be3a 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts @@ -1,4 +1,3 @@ -// @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 7d1989a9339c0..221970c3e8c25 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints4.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints4.ts @@ -1,4 +1,3 @@ -// @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 d9a36e843268a..61804660045da 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts @@ -1,4 +1,3 @@ -// @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 656d2e472c95f..1660d67a4e2ed 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts @@ -1,4 +1,3 @@ -// @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 7af0408fdd736..ae927567cce1d 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignabilityInInheritance.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignabilityInInheritance.ts @@ -1,4 +1,3 @@ -// @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 7ce16225bae76..2f3831196ddf8 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts @@ -1,4 +1,3 @@ -// @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 a0ae57dc67b34..4d7240b9ae3fc 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts @@ -1,4 +1,3 @@ -// @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 10d9652615f7a..74a2c2e941088 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers.ts @@ -1,4 +1,3 @@ -// @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 4572f93998e10..a45da064822a6 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers2.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers2.ts @@ -1,4 +1,3 @@ -// @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 2e239afdc1cbf..6e9a210db4b1c 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers3.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers3.ts @@ -1,4 +1,3 @@ -// @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 27b35033718dd..1d4011d9ed5f3 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers4.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers4.ts @@ -1,4 +1,3 @@ -// @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 3c901625b61c7..ca2457e65867c 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts @@ -1,4 +1,3 @@ -// @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 649c124b2f884..eec029faeb61d 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersAccessibility.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersAccessibility.ts @@ -1,4 +1,3 @@ -// @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 0a4a44e5adebb..b25c949f42626 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersNumericNames.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersNumericNames.ts @@ -1,4 +1,3 @@ -// @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 54ea1f3871c96..d86d7015d694b 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality.ts @@ -1,4 +1,3 @@ -// @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 22298bfaa6986..fa1fa745a776a 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersOptionality2.ts @@ -1,4 +1,3 @@ -// @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 32e1ec0bb2ee8..7f1d24bd5dcc3 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembersStringNumericNames.ts @@ -1,4 +1,3 @@ -// @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 af0f6dffc1ca4..c04673b29fc67 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignabilityInInheritance.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignabilityInInheritance.ts @@ -1,4 +1,3 @@ -// @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 3b26b385b660c..b0f55331d7033 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignableToEveryType.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignableToEveryType.ts @@ -1,4 +1,3 @@ -// @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 b923cb8250003..9c3cd92571a34 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts @@ -1,3 +1,2 @@ -// @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 a49055f337a1b..e9a0121e45536 100644 --- a/tests/cases/conformance/types/typeRelationships/bestCommonType/heterogeneousArrayLiterals.ts +++ b/tests/cases/conformance/types/typeRelationships/bestCommonType/heterogeneousArrayLiterals.ts @@ -1,4 +1,3 @@ -// @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 398903b5400ac..1afc760ef851a 100644 --- a/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithIntersectionTypes01.ts +++ b/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithIntersectionTypes01.ts @@ -1,4 +1,3 @@ -// @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 784f052b7f517..3010c5f159a76 100644 --- a/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithUnionTypes01.ts +++ b/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithUnionTypes01.ts @@ -1,4 +1,3 @@ -// @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 e2162c923ee2d..e7260831a432f 100644 --- a/tests/cases/conformance/types/typeRelationships/recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts +++ b/tests/cases/conformance/types/typeRelationships/recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts @@ -1,4 +1,3 @@ -// @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 80ea279e1d648..6eba1f2836aa4 100644 --- a/tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts +++ b/tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts @@ -1,4 +1,3 @@ -// @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 c480ec2117804..8d312791b649b 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts @@ -1,4 +1,3 @@ -// @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 1e24417d6071a..ec976b6227016 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/nullIsSubtypeOfEverythingButUndefined.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/nullIsSubtypeOfEverythingButUndefined.ts @@ -1,4 +1,3 @@ -// @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 5369064f03d1c..01e0c7ba067a6 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts @@ -1,4 +1,3 @@ -// @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 6409c57290210..fc24f4120deaf 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts @@ -1,4 +1,3 @@ -// @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 badb7cfc1bb8f..188cc9142bb87 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts @@ -1,4 +1,3 @@ -// @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 ebdcce2b2a920..e86fc51d443ee 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts @@ -1,4 +1,3 @@ -// @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 689834cf6639d..830139d3fafd2 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts @@ -1,4 +1,3 @@ -// @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 a42120749d1a2..1004d557cc418 100644 --- a/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/unionSubtypeIfEveryConstituentTypeIsSubtype.ts +++ b/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/unionSubtypeIfEveryConstituentTypeIsSubtype.ts @@ -1,4 +1,3 @@ -// @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 aec2eb15fad0d..225a974181478 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity.ts @@ -1,4 +1,3 @@ -// @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 6573636412789..fefde23a69416 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentity2.ts @@ -1,4 +1,3 @@ -// @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 34c60a4c6475c..94038f6df9de3 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures.ts @@ -1,4 +1,3 @@ -// @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 873a3cd8dea6d..699f0f73f7a02 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures2.ts @@ -1,4 +1,3 @@ -// @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 c4087f7a11fa3..e054c29a2f16f 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures3.ts @@ -1,4 +1,3 @@ -// @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 4d333face5b86..b62b558d06533 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts @@ -1,4 +1,3 @@ -// @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 7a0fc6d79f295..0e8ba5340a15e 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts @@ -1,4 +1,3 @@ -// @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 c5b729ae184cd..0aaf7c30f20ed 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesWithOverloads.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesWithOverloads.ts @@ -1,4 +1,3 @@ -// @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 be4745e51e1f1..d31e756e9ccb7 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts @@ -1,4 +1,3 @@ -// @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 4e18f23eebb01..efec6a715b3da 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures.ts @@ -1,4 +1,3 @@ -// @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 7ee4838fc6727..63e5167a4c924 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignatures2.ts @@ -1,4 +1,3 @@ -// @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 cdb7c572fa223..b8fc424b21b6b 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts @@ -1,4 +1,3 @@ -// @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 cf3409181ce56..d95bc486dfc4d 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures.ts @@ -1,4 +1,3 @@ -// @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 f49a0300961c5..5c009926a09d6 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignatures2.ts @@ -1,4 +1,3 @@ -// @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 004375a62d765..ede6da40400a9 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts @@ -1,4 +1,3 @@ -// @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 89314d01c95a9..5fb315c4da98f 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts @@ -1,4 +1,3 @@ -// @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 d8a8ddaec0610..aaae2cbf33330 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts @@ -1,4 +1,3 @@ -// @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 5b76b5425cdc5..97a657606e2bd 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts @@ -1,4 +1,3 @@ -// @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 08810f4422a04..df7533d9063f6 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts @@ -1,4 +1,3 @@ -// @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 4536033bda8b5..e3bd868941608 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts @@ -1,4 +1,3 @@ -// @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 da26115e20e32..95239269b9a07 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts @@ -1,4 +1,3 @@ -// @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 32d51862afd64..9e01aaec49fe4 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts @@ -1,4 +1,3 @@ -// @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 91b4cdaee0c13..c5454cc41e181 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts @@ -1,4 +1,3 @@ -// @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 b6bff8bb3d57e..b8620f04d1dc7 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts @@ -1,4 +1,3 @@ -// @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 97642263acd84..f39d23637acc0 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts @@ -1,4 +1,3 @@ -// @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 3460bf9e10383..974f53cb9c222 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts @@ -1,4 +1,3 @@ -// @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 9384c6b35f40d..47bab5dab815d 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts @@ -1,4 +1,3 @@ -// @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 ad681a20e77a0..14f4933a154ba 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts @@ -1,4 +1,3 @@ -// @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 9ec72b56e46b6..9c072e8936abf 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts @@ -1,4 +1,3 @@ -// @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 b5a22b535222a..2e0a98d557681 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts @@ -1,4 +1,3 @@ -// @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 bc79ca5ac6674..fe01df25646b6 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts @@ -1,4 +1,3 @@ -// @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 10343aa044157..20d7dbab13ffe 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts @@ -1,4 +1,3 @@ -// @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 70fecca5edeee..56dc5a051cd8b 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts @@ -1,4 +1,3 @@ -// @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 d40f8fa075373..6c4a282228d93 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts @@ -1,4 +1,3 @@ -// @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 9b181400cacd6..8c9a08137f7ee 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts @@ -1,4 +1,3 @@ -// @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 4a4a5d03d9ab0..867199d9051e0 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers1.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers1.ts @@ -1,4 +1,3 @@ -// @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 66ea74752f8d9..ea9d7d04ee227 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers2.ts @@ -1,4 +1,3 @@ -// @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 5217c6abae488..d3f22604c4477 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers3.ts @@ -1,4 +1,3 @@ -// @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 2bf8d68664520..7c241951050e3 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts @@ -1,4 +1,3 @@ -// @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 c407e3364cfa6..b9e390158cc45 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts @@ -1,4 +1,3 @@ -// @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 35e9aae1785f7..769e59f06d1fd 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts @@ -1,4 +1,3 @@ -// @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 5b9d1428e3fe6..813a8333e5fb4 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPublics.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPublics.ts @@ -1,4 +1,3 @@ -// @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 2534d9a2dbe67..f511e56bc30f2 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers.ts @@ -1,4 +1,3 @@ -// @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 a544c47721281..d8af511910d96 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers2.ts @@ -1,4 +1,3 @@ -// @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 b43fd1cb7f297..d560122724a98 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/primtiveTypesAreIdentical.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/primtiveTypesAreIdentical.ts @@ -1,4 +1,3 @@ -// @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 64f146a8058b3..0495789326402 100644 --- a/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/typeParametersAreIdenticalToThemselves.ts +++ b/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/typeParametersAreIdenticalToThemselves.ts @@ -1,4 +1,3 @@ -// @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 4f1dce9061fe5..15b0c1cb9c96e 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallTypeArgumentInference.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallTypeArgumentInference.ts @@ -1,4 +1,3 @@ -// @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 ff79f725c8ef9..601f79066777b 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference.ts @@ -1,4 +1,3 @@ -// @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 9814537f996dd..a05aa1ae502cd 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts @@ -1,4 +1,3 @@ -// @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 5a4aec289fcb5..f685d27d60d32 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments.ts @@ -1,4 +1,3 @@ -// @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 00345af384705..3e0bf3d188f23 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts @@ -1,4 +1,3 @@ -// @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 0d5ffda296639..78c1b8b94e705 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments3.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments3.ts @@ -1,4 +1,3 @@ -// @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 f75391451f9c5..ebe561b60b42f 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments.ts @@ -1,4 +1,3 @@ -// @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 91bab0fc2dd45..62a3d5e7b5e65 100644 --- a/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments2.ts +++ b/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments2.ts @@ -1,4 +1,3 @@ -// @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 1f03b2c0eb25c..05428422129c6 100644 --- a/tests/cases/conformance/types/typeRelationships/widenedTypes/arrayLiteralWidened.ts +++ b/tests/cases/conformance/types/typeRelationships/widenedTypes/arrayLiteralWidened.ts @@ -1,4 +1,3 @@ -// @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 27bcec7276562..8b51e526882e7 100644 --- a/tests/cases/conformance/types/typeRelationships/widenedTypes/objectLiteralWidened.ts +++ b/tests/cases/conformance/types/typeRelationships/widenedTypes/objectLiteralWidened.ts @@ -1,4 +1,3 @@ -// @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 c4f6453391abb..8bc3d1cdc8cea 100644 --- a/tests/cases/conformance/types/union/unionTypeReduction.ts +++ b/tests/cases/conformance/types/union/unionTypeReduction.ts @@ -1,4 +1,3 @@ -// @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 1e75ba25384a3..2c6bcf9d6ccd7 100644 --- a/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts +++ b/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts @@ -1,4 +1,3 @@ -// @strict: false // @target: esnext // @useDefineForClassFields: false diff --git a/tests/cases/fourslash/commentsInterfaceFourslash.ts b/tests/cases/fourslash/commentsInterfaceFourslash.ts index e8e14072d6395..9501e9ba28723 100644 --- a/tests/cases/fourslash/commentsInterfaceFourslash.ts +++ b/tests/cases/fourslash/commentsInterfaceFourslash.ts @@ -1,4 +1,3 @@ -// @strict: false /// /////** this is interface 1*/ diff --git a/tests/cases/fourslash/commentsOverloadsFourslash.ts b/tests/cases/fourslash/commentsOverloadsFourslash.ts index db1b7d9cb571b..51fbf0dfe9a46 100644 --- a/tests/cases/fourslash/commentsOverloadsFourslash.ts +++ b/tests/cases/fourslash/commentsOverloadsFourslash.ts @@ -1,4 +1,3 @@ -// @strict: false /// /////** this is signature 1*/ diff --git a/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts b/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts index 9065a17080c64..1389a31ed3cf2 100644 --- a/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts +++ b/tests/cases/fourslash/contextualTypingFromTypeAssertion1.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////var f3 = <(x: string) => string> function (/**/x) { return x.toLowerCase(); }; diff --git a/tests/cases/fourslash/contextualTypingGenericFunction1.ts b/tests/cases/fourslash/contextualTypingGenericFunction1.ts index 73f086fbb8c26..9fa6b92da237a 100644 --- a/tests/cases/fourslash/contextualTypingGenericFunction1.ts +++ b/tests/cases/fourslash/contextualTypingGenericFunction1.ts @@ -1,4 +1,3 @@ -// @strict: false /// // should not contextually type the RHS because it introduces type parameters diff --git a/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts b/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts index 35d20b89a12c6..7318eeee6cb33 100644 --- a/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts +++ b/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////class C { diff --git a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts index 0417c61b6bf2a..d750d257d521c 100644 --- a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts +++ b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures1.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////var f24: { diff --git a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts index df35832d978d1..efb26cb3af1a4 100644 --- a/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts +++ b/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////interface I { diff --git a/tests/cases/fourslash/contextualTypingReturnExpressions.ts b/tests/cases/fourslash/contextualTypingReturnExpressions.ts index 8af17c818fd28..a0480defdc4e9 100644 --- a/tests/cases/fourslash/contextualTypingReturnExpressions.ts +++ b/tests/cases/fourslash/contextualTypingReturnExpressions.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////interface A { } diff --git a/tests/cases/fourslash/extendArrayInterface.ts b/tests/cases/fourslash/extendArrayInterface.ts index fbd813fb288f1..09add80a685de 100644 --- a/tests/cases/fourslash/extendArrayInterface.ts +++ b/tests/cases/fourslash/extendArrayInterface.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////var x = [1, 2, 3]; diff --git a/tests/cases/fourslash/extendArrayInterfaceMember.ts b/tests/cases/fourslash/extendArrayInterfaceMember.ts index c02c99e54481e..cc1460b126e54 100644 --- a/tests/cases/fourslash/extendArrayInterfaceMember.ts +++ b/tests/cases/fourslash/extendArrayInterfaceMember.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////var x = [1, 2, 3]; diff --git a/tests/cases/fourslash/jsdocTemplateTagCompletion.ts b/tests/cases/fourslash/jsdocTemplateTagCompletion.ts index aa1d05177c3b1..bca1287fd6a33 100644 --- a/tests/cases/fourslash/jsdocTemplateTagCompletion.ts +++ b/tests/cases/fourslash/jsdocTemplateTagCompletion.ts @@ -1,4 +1,3 @@ -// @strict: false /// /////** diff --git a/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts b/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts index feb8f9a4b8256..bb13973cc8234 100644 --- a/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts +++ b/tests/cases/fourslash/multipleExportAssignmentsErrorList0.ts @@ -1,4 +1,3 @@ -// @strict: false /// //// interface connectModule { diff --git a/tests/cases/fourslash/optionalPropertyFormatting.ts b/tests/cases/fourslash/optionalPropertyFormatting.ts index 766b7a2b3aa41..141e691b14de6 100644 --- a/tests/cases/fourslash/optionalPropertyFormatting.ts +++ b/tests/cases/fourslash/optionalPropertyFormatting.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////export class C extends Error { diff --git a/tests/cases/fourslash/qualifyModuleTypeNames.ts b/tests/cases/fourslash/qualifyModuleTypeNames.ts index f6197ca147a06..13bf8d40d85e4 100644 --- a/tests/cases/fourslash/qualifyModuleTypeNames.ts +++ b/tests/cases/fourslash/qualifyModuleTypeNames.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////namespace m { export class c { } }; diff --git a/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts b/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts index 2715b951fc059..ba3447a28c4ff 100644 --- a/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts +++ b/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts @@ -1,4 +1,3 @@ -// @strict: false /// // @Filename: index.ts ////export class Foo { diff --git a/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts b/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts index ec2f9d5c98ec2..89345b2316a5b 100644 --- a/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts @@ -1,4 +1,3 @@ -// @strict: false /// // @Filename: /home/src/workspaces/project/node_modules/a/dist/index.d.ts diff --git a/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts b/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts index 243b0a4fe3359..7c1a11889a682 100644 --- a/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts +++ b/tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////interface Foo {} diff --git a/tests/cases/fourslash/thisBindingInLambda.ts b/tests/cases/fourslash/thisBindingInLambda.ts index 635e288420a77..8997f6438a771 100644 --- a/tests/cases/fourslash/thisBindingInLambda.ts +++ b/tests/cases/fourslash/thisBindingInLambda.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////class Greeter { diff --git a/tests/cases/fourslash/typeAssertionsFormatting.ts b/tests/cases/fourslash/typeAssertionsFormatting.ts index 50db6466ef5cd..3f3ab070fec08 100644 --- a/tests/cases/fourslash/typeAssertionsFormatting.ts +++ b/tests/cases/fourslash/typeAssertionsFormatting.ts @@ -1,4 +1,3 @@ -// @strict: false /// ////( < any > publisher);/*1*/ diff --git a/tests/cases/fourslash/unusedImports13FS.ts b/tests/cases/fourslash/unusedImports13FS.ts index 5906d3ac228c5..4e19f4d7f1a74 100644 --- a/tests/cases/fourslash/unusedImports13FS.ts +++ b/tests/cases/fourslash/unusedImports13FS.ts @@ -1,4 +1,3 @@ -// @strict: false /// // @noUnusedLocals: true diff --git a/tests/cases/fourslash/unusedImports14FS.ts b/tests/cases/fourslash/unusedImports14FS.ts index cdb9d4af0975f..75124802d3592 100644 --- a/tests/cases/fourslash/unusedImports14FS.ts +++ b/tests/cases/fourslash/unusedImports14FS.ts @@ -1,4 +1,3 @@ -// @strict: false /// // @noUnusedLocals: true diff --git a/tests/cases/projects/PrologueEmit/globalThisCapture.ts b/tests/cases/projects/PrologueEmit/globalThisCapture.ts index ac49ce91a32a4..ee4015477dd2d 100644 --- a/tests/cases/projects/PrologueEmit/globalThisCapture.ts +++ b/tests/cases/projects/PrologueEmit/globalThisCapture.ts @@ -1,3 +1,2 @@ -// @strict: false // Add a lambda to ensure global 'this' capture is triggered (()=>this.window); From 2a7a45ea63a5ddc918d5fe82570ce9f01c265f82 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 15 Jan 2026 00:44:32 +0000 Subject: [PATCH 20/21] Add `@strict: false` to most tests that have changes in `.errors.txt` (again) --- .../ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts | 1 + tests/cases/compiler/accessorDeclarationEmitJs.ts | 1 + tests/cases/compiler/accessorParameterAccessibilityModifier.ts | 1 + tests/cases/compiler/accessorWithInitializer.ts | 1 + tests/cases/compiler/accessorWithRestParam.ts | 1 + tests/cases/compiler/accessorWithoutBody1.ts | 1 + tests/cases/compiler/accessorWithoutBody2.ts | 1 + tests/cases/compiler/accessorsEmit.ts | 1 + tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports10.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports7.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports8.ts | 1 + tests/cases/compiler/allowSyntheticDefaultImports9.ts | 1 + tests/cases/compiler/ambientClassDeclarationWithExtends.ts | 1 + tests/cases/compiler/ambientClassOverloadForFunction.ts | 1 + tests/cases/compiler/ambientFundule.ts | 1 + tests/cases/compiler/ambientWithStatements.ts | 1 + tests/cases/compiler/ambiguousGenericAssertion1.ts | 1 + tests/cases/compiler/ambiguousOverload.ts | 1 + tests/cases/compiler/ambiguousOverloadResolution.ts | 1 + tests/cases/compiler/amdLikeInputDeclarationEmit.ts | 1 + tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts | 1 + tests/cases/compiler/anyIdenticalToItself.ts | 1 + tests/cases/compiler/argumentsAsPropertyName.ts | 1 + tests/cases/compiler/argumentsAsPropertyName2.ts | 1 + .../cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts | 1 + tests/cases/compiler/argumentsObjectCreatesRestForJs.ts | 1 + tests/cases/compiler/argumentsPropertyNameInJsMode1.ts | 1 + tests/cases/compiler/argumentsPropertyNameInJsMode2.ts | 1 + tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts | 1 + tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts | 1 + tests/cases/compiler/arrayAssignmentTest2.ts | 1 + tests/cases/compiler/arrayAssignmentTest4.ts | 1 + tests/cases/compiler/arrayFromAsync.ts | 1 + tests/cases/compiler/arrayIndexWithArrayFails.ts | 1 + .../cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts | 1 + tests/cases/compiler/arrowFunctionErrorSpan.ts | 1 + tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts | 1 + tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts | 1 + tests/cases/compiler/arrowFunctionsMissingTokens.ts | 1 + tests/cases/compiler/asiAbstract.ts | 1 + tests/cases/compiler/asiPublicPrivateProtected.ts | 1 + tests/cases/compiler/assertInWrapSomeTypeParameter.ts | 1 + tests/cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts | 1 + tests/cases/compiler/assignmentCompatForEnums.ts | 1 + .../assignmentCompatInterfaceWithStringIndexSignature.ts | 1 + tests/cases/compiler/assignmentCompatability37.ts | 1 + tests/cases/compiler/assignmentCompatability38.ts | 1 + ...patability_checking-apply-member-off-of-function-interface.ts | 1 + ...mpatability_checking-call-member-off-of-function-interface.ts | 1 + tests/cases/compiler/assignmentNonObjectTypeConstraints.ts | 1 + tests/cases/compiler/assignmentToObjectAndFunction.ts | 1 + tests/cases/compiler/assignmentToReferenceTypes.ts | 1 + tests/cases/compiler/asyncFunctionTempVariableScoping.ts | 1 + tests/cases/compiler/augmentExportEquals1.ts | 1 + tests/cases/compiler/augmentExportEquals1_1.ts | 1 + tests/cases/compiler/augmentExportEquals2.ts | 1 + tests/cases/compiler/augmentExportEquals2_1.ts | 1 + tests/cases/compiler/augmentExportEquals3.ts | 1 + tests/cases/compiler/augmentExportEquals3_1.ts | 1 + tests/cases/compiler/augmentExportEquals4.ts | 1 + tests/cases/compiler/augmentExportEquals4_1.ts | 1 + tests/cases/compiler/augmentExportEquals6.ts | 1 + tests/cases/compiler/augmentExportEquals6_1.ts | 1 + .../compiler/augmentedClassWithPrototypePropertyOnModule.ts | 1 + tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts | 1 + tests/cases/compiler/avoid.ts | 1 + ...ListingPropertiesForTypesWithOnlyCallOrConstructSignatures.ts | 1 + tests/cases/compiler/awaitInNonAsyncFunction.ts | 1 + tests/cases/compiler/awaitedTypeCrash.ts | 1 + tests/cases/compiler/awaitedTypeJQuery.ts | 1 + tests/cases/compiler/badArraySyntax.ts | 1 + tests/cases/compiler/baseConstraintOfDecorator.ts | 1 + tests/cases/compiler/bases.ts | 1 + tests/cases/compiler/bestCommonTypeWithContextualTyping.ts | 1 + tests/cases/compiler/bigintIndex.ts | 1 + tests/cases/compiler/bigintWithLib.ts | 1 + tests/cases/compiler/binopAssignmentShouldHaveType.ts | 1 + tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts | 1 + tests/cases/compiler/blockScopedNamespaceDifferentFile.ts | 1 + tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts | 1 + tests/cases/compiler/callOverloads1.ts | 1 + tests/cases/compiler/callOverloads2.ts | 1 + tests/cases/compiler/callOverloads5.ts | 1 + tests/cases/compiler/callbackArgsDifferByOptionality.ts | 1 + tests/cases/compiler/capturedLetConstInLoop1.ts | 1 + tests/cases/compiler/capturedLetConstInLoop10.ts | 1 + tests/cases/compiler/capturedLetConstInLoop10_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop11.ts | 1 + tests/cases/compiler/capturedLetConstInLoop11_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop12.ts | 1 + tests/cases/compiler/capturedLetConstInLoop13.ts | 1 + tests/cases/compiler/capturedLetConstInLoop1_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop2.ts | 1 + tests/cases/compiler/capturedLetConstInLoop2_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop3.ts | 1 + tests/cases/compiler/capturedLetConstInLoop3_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop4.ts | 1 + tests/cases/compiler/capturedLetConstInLoop4_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop5.ts | 1 + tests/cases/compiler/capturedLetConstInLoop5_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop6_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop7.ts | 1 + tests/cases/compiler/capturedLetConstInLoop7_ES6.ts | 1 + tests/cases/compiler/capturedLetConstInLoop9.ts | 1 + tests/cases/compiler/capturedLetConstInLoop9_ES6.ts | 1 + tests/cases/compiler/capturedParametersInInitializers1.ts | 1 + tests/cases/compiler/capturedVarInLoop.ts | 1 + tests/cases/compiler/castExpressionParentheses.ts | 1 + tests/cases/compiler/chainedAssignment1.ts | 1 + tests/cases/compiler/chainedAssignmentChecking.ts | 1 + ...ainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts | 1 + ...inedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts | 1 + tests/cases/compiler/checkInfiniteExpansionTermination.ts | 1 + tests/cases/compiler/checkInfiniteExpansionTermination2.ts | 1 + tests/cases/compiler/checkJsxNotSetError.ts | 1 + ...gObjectDefinePropertyOnFunctionNonexistentPropertyNoCrash1.ts | 1 + tests/cases/compiler/classExpressionWithStaticProperties2.ts | 1 + tests/cases/compiler/classExpressionWithStaticPropertiesES62.ts | 1 + tests/cases/compiler/classImplementingInterfaceIndexer.ts | 1 + tests/cases/compiler/classImplementsImportedInterface.ts | 1 + tests/cases/compiler/classMemberInitializerScoping.ts | 1 + tests/cases/compiler/classMemberInitializerScoping2.ts | 1 + tests/cases/compiler/classMemberWithMissingIdentifier.ts | 1 + tests/cases/compiler/classMemberWithMissingIdentifier2.ts | 1 + tests/cases/compiler/classUpdateTests.ts | 1 + tests/cases/compiler/classWithMultipleBaseClasses.ts | 1 + .../cases/compiler/classWithOverloadImplementationOfWrongName.ts | 1 + .../compiler/classWithOverloadImplementationOfWrongName2.ts | 1 + tests/cases/compiler/classdecl.ts | 1 + tests/cases/compiler/cloduleTest2.ts | 1 + tests/cases/compiler/cloduleWithDuplicateMember2.ts | 1 + tests/cases/compiler/collisionArgumentsArrowFunctions.ts | 1 + tests/cases/compiler/collisionArgumentsClassConstructor.ts | 1 + tests/cases/compiler/collisionArgumentsClassMethod.ts | 1 + tests/cases/compiler/collisionArgumentsFunction.ts | 1 + tests/cases/compiler/collisionArgumentsFunctionExpressions.ts | 1 + tests/cases/compiler/collisionArgumentsInType.ts | 1 + tests/cases/compiler/collisionArgumentsInterfaceMembers.ts | 1 + .../cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts | 1 + .../compiler/collisionCodeGenModuleWithConstructorChildren.ts | 1 + .../cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts | 1 + tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts | 1 + tests/cases/compiler/collisionRestParameterArrowFunctions.ts | 1 + tests/cases/compiler/collisionRestParameterClassConstructor.ts | 1 + tests/cases/compiler/collisionRestParameterClassMethod.ts | 1 + tests/cases/compiler/collisionRestParameterFunction.ts | 1 + .../cases/compiler/collisionRestParameterFunctionExpressions.ts | 1 + tests/cases/compiler/collisionRestParameterInType.ts | 1 + tests/cases/compiler/collisionRestParameterInterfaceMembers.ts | 1 + tests/cases/compiler/collisionSuperAndNameResolution.ts | 1 + tests/cases/compiler/collisionSuperAndParameter.ts | 1 + tests/cases/compiler/collisionSuperAndParameter1.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInAccessors.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInConstructor.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInFunction.ts | 1 + .../cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts | 1 + .../cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts | 1 + .../compiler/collisionThisExpressionAndLocalVarInProperty.ts | 1 + tests/cases/compiler/collisionThisExpressionAndNameResolution.ts | 1 + tests/cases/compiler/collisionThisExpressionAndParameter.ts | 1 + ...ollisionThisExpressionAndPropertyNameAsConstuctorParameter.ts | 1 + tests/cases/compiler/commentOnAmbientModule.ts | 1 + tests/cases/compiler/commentOnAmbientfunction.ts | 1 + tests/cases/compiler/commentOnSignature1.ts | 1 + tests/cases/compiler/commentsAfterFunctionExpression1.ts | 1 + tests/cases/compiler/commentsAfterSpread.ts | 1 + tests/cases/compiler/commentsBeforeFunctionExpression1.ts | 1 + tests/cases/compiler/commentsCommentParsing.ts | 1 + tests/cases/compiler/commentsInterface.ts | 1 + tests/cases/compiler/commentsOnObjectLiteral2.ts | 1 + tests/cases/compiler/commentsOverloads.ts | 1 + tests/cases/compiler/commentsdoNotEmitComments.ts | 1 + tests/cases/compiler/commentsemitComments.ts | 1 + tests/cases/compiler/commonMissingSemicolons.ts | 1 + tests/cases/compiler/complexNarrowingWithAny.ts | 1 + tests/cases/compiler/complicatedPrivacy.ts | 1 + .../cases/compiler/computerPropertiesInES5ShouldBeTransformed.ts | 1 + tests/cases/compiler/conditionalExpressions2.ts | 1 + tests/cases/compiler/constDeclarations-access.ts | 1 + tests/cases/compiler/constDeclarations-access2.ts | 1 + tests/cases/compiler/constDeclarations-access3.ts | 1 + tests/cases/compiler/constDeclarations-access4.ts | 1 + tests/cases/compiler/constDeclarations-access5.ts | 1 + tests/cases/compiler/constDeclarations-ambient-errors.ts | 1 + tests/cases/compiler/constDeclarations-ambient.ts | 1 + tests/cases/compiler/constDeclarations-errors.ts | 1 + tests/cases/compiler/constDeclarations-es5.ts | 1 + tests/cases/compiler/constDeclarations-invalidContexts.ts | 1 + tests/cases/compiler/constDeclarations-scopes.ts | 1 + tests/cases/compiler/constDeclarations-scopes2.ts | 1 + tests/cases/compiler/constDeclarations-useBeforeDefinition.ts | 1 + tests/cases/compiler/constDeclarations-useBeforeDefinition2.ts | 1 + tests/cases/compiler/constDeclarations-validContexts.ts | 1 + tests/cases/compiler/constDeclarations.ts | 1 + tests/cases/compiler/constDeclarations2.ts | 1 + ...onstraintReferencingTypeParameterFromSameTypeParameterList.ts | 1 + tests/cases/compiler/constructorOverloads7.ts | 1 + tests/cases/compiler/constructorOverloads8.ts | 1 + tests/cases/compiler/constructorStaticParamName.ts | 1 + tests/cases/compiler/constructorStaticParamNameErrors.ts | 1 + tests/cases/compiler/constructorsWithSpecializedSignatures.ts | 1 + .../compiler/contextualSignatureInstatiationContravariance.ts | 1 + .../cases/compiler/contextualSignatureInstatiationCovariance.ts | 1 + tests/cases/compiler/contextualTyping.ts | 1 + .../compiler/contextualTypingArrayDestructuringWithDefaults.ts | 1 + tests/cases/compiler/contextualTypingArrayOfLambdas.ts | 1 + .../cases/compiler/contextualTypingFunctionReturningFunction.ts | 1 + .../cases/compiler/contextualTypingFunctionReturningFunction2.ts | 1 + tests/cases/compiler/contextualTypingOfAccessors.ts | 1 + tests/cases/compiler/contextualTypingOfArrayLiterals1.ts | 1 + tests/cases/compiler/contextualTypingOfConditionalExpression.ts | 1 + tests/cases/compiler/contextualTypingOfConditionalExpression2.ts | 1 + .../compiler/contextualTypingOfGenericFunctionTypedArguments1.ts | 1 + tests/cases/compiler/contextualTypingOfLambdaReturnExpression.ts | 1 + .../compiler/contextualTypingOfLambdaWithMultipleSignatures.ts | 1 + .../compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts | 1 + tests/cases/compiler/contextualTypingOfObjectLiterals.ts | 1 + tests/cases/compiler/contextualTypingOfObjectLiterals2.ts | 1 + tests/cases/compiler/contextualTypingOfTooShortOverloads.ts | 1 + .../compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts | 1 + tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts | 1 + tests/cases/compiler/contextuallyTypingOrOperator.ts | 1 + tests/cases/compiler/contextuallyTypingOrOperator2.ts | 1 + tests/cases/compiler/contextuallyTypingOrOperator3.ts | 1 + tests/cases/compiler/controlFlowPropertyDeclarations.ts | 1 + tests/cases/compiler/convertKeywordsYes.ts | 1 + tests/cases/compiler/crashInEmitTokenWithComment.ts | 1 + tests/cases/compiler/crashInresolveReturnStatement.ts | 1 + tests/cases/compiler/crashIntypeCheckInvocationExpression.ts | 1 + tests/cases/compiler/createArray.ts | 1 + tests/cases/compiler/declFileConstructSignatures.ts | 1 + .../compiler/declFileExportAssignmentImportInternalModule.ts | 1 + tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts | 1 + .../compiler/declFileForClassWithPrivateOverloadedFunction.ts | 1 + tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts | 1 + tests/cases/compiler/declFileForInterfaceWithRestParams.ts | 1 + tests/cases/compiler/declFileFunctions.ts | 1 + tests/cases/compiler/declFileImportModuleWithExportAssignment.ts | 1 + tests/cases/compiler/declFileOptionalInterfaceMethod.ts | 1 + tests/cases/compiler/declFilePrivateMethodOverloads.ts | 1 + tests/cases/compiler/declFilePrivateStatic.ts | 1 + tests/cases/compiler/declFileRegressionTests.ts | 1 + .../compiler/declFileRestParametersOfFunctionAndFunctionType.ts | 1 + tests/cases/compiler/declFileTypeAnnotationBuiltInType.ts | 1 + tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts | 1 + .../compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts | 1 + tests/cases/compiler/declFileTypeofFunction.ts | 1 + tests/cases/compiler/declFileWithErrorsInInputDeclarationFile.ts | 1 + .../compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts | 1 + tests/cases/compiler/declInput-2.ts | 1 + tests/cases/compiler/declInput.ts | 1 + tests/cases/compiler/declInput3.ts | 1 + tests/cases/compiler/declInput4.ts | 1 + tests/cases/compiler/declarationEmitAliasExportStar.ts | 1 + tests/cases/compiler/declarationEmitBindingPatterns.ts | 1 + .../cases/compiler/declarationEmitBindingPatternsFunctionExpr.ts | 1 + tests/cases/compiler/declarationEmitBindingPatternsUnused.ts | 1 + tests/cases/compiler/declarationEmitClassMemberNameConflict.ts | 1 + tests/cases/compiler/declarationEmitClassMemberNameConflict2.ts | 1 + .../compiler/declarationEmitDefaultExportWithStaticAssignment.ts | 1 + tests/cases/compiler/declarationEmitDestructuring2.ts | 1 + tests/cases/compiler/declarationEmitDestructuring3.ts | 1 + tests/cases/compiler/declarationEmitNameConflicts2.ts | 1 + tests/cases/compiler/declarationEmitProtectedMembers.ts | 1 + tests/cases/compiler/declarationMaps.ts | 1 + tests/cases/compiler/declarationMapsMultifile.ts | 1 + tests/cases/compiler/declarationMapsOutFile.ts | 1 + tests/cases/compiler/declarationMapsOutFile2.ts | 1 + tests/cases/compiler/declarationMapsWithSourceMap.ts | 1 + tests/cases/compiler/declarationMapsWithoutDeclaration.ts | 1 + tests/cases/compiler/declarationMerging1.ts | 1 + tests/cases/compiler/declarationMerging2.ts | 1 + tests/cases/compiler/declareAlreadySeen.ts | 1 + tests/cases/compiler/declareFileExportAssignment.ts | 1 + .../declareFileExportAssignmentWithVarFromVariableStatement.ts | 1 + tests/cases/compiler/declaredExternalModule.ts | 1 + .../cases/compiler/declaredExternalModuleWithExportAssignment.ts | 1 + tests/cases/compiler/decoratorMetadataNoStrictNull.ts | 1 + tests/cases/compiler/decoratorMetadataTypeOnlyExport.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision2.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision3.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision4.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision5.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision6.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision7.ts | 1 + .../decoratorMetadataWithImportDeclarationNameCollision8.ts | 1 + tests/cases/compiler/decoratorReferenceOnOtherProperty.ts | 1 + tests/cases/compiler/decoratorReferences.ts | 1 + tests/cases/compiler/decrementAndIncrementOperators.ts | 1 + tests/cases/compiler/deeplyDependentLargeArrayMutation2.ts | 1 + tests/cases/compiler/defaultArgsInFunctionExpressions.ts | 1 + tests/cases/compiler/defaultArgsInOverloads.ts | 1 + tests/cases/compiler/defaultBestCommonTypesHaveDecls.ts | 1 + tests/cases/compiler/defaultIndexProps2.ts | 1 + tests/cases/compiler/defaultValueInFunctionOverload1.ts | 1 + tests/cases/compiler/defineVariables_useDefineForClassFields.ts | 1 + tests/cases/compiler/definiteAssignmentWithErrorStillStripped.ts | 1 + tests/cases/compiler/deleteReadonly.ts | 1 + .../compiler/derivedTypeCallingBaseImplWithOptionalParams.ts | 1 + tests/cases/compiler/destructuringControlFlowNoCrash.ts | 1 + tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts | 1 + .../compiler/doYouNeedToChangeYourTargetLibraryES2016Plus.ts | 1 + tests/cases/compiler/dontShowCompilerGeneratedMembers.ts | 1 + tests/cases/compiler/dottedModuleName.ts | 1 + tests/cases/compiler/dottedModuleName2.ts | 1 + tests/cases/compiler/downlevelLetConst14.ts | 1 + tests/cases/compiler/downlevelLetConst15.ts | 1 + tests/cases/compiler/downlevelLetConst16.ts | 1 + tests/cases/compiler/downlevelLetConst17.ts | 1 + tests/cases/compiler/downlevelLetConst18.ts | 1 + tests/cases/compiler/downlevelLetConst19.ts | 1 + tests/cases/compiler/duplicateClassElements.ts | 1 + tests/cases/compiler/duplicateIdentifierDifferentModifiers.ts | 1 + .../compiler/duplicateIdentifiersAcrossContainerBoundaries.ts | 1 + tests/cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts | 1 + .../compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts | 1 + tests/cases/compiler/emitDecoratorMetadata_restArgs.ts | 1 + tests/cases/compiler/emitThisInObjectLiteralGetter.ts | 1 + tests/cases/compiler/emptyArgumentsListComment.ts | 1 + tests/cases/compiler/enumBasics1.ts | 1 + tests/cases/compiler/enumBasics2.ts | 1 + tests/cases/compiler/enumBasics3.ts | 1 + tests/cases/compiler/enumIndexer.ts | 1 + tests/cases/compiler/errorElaboration.ts | 1 + .../errorElaborationDivesIntoApparentlyPresentPropsOnly.ts | 1 + tests/cases/compiler/errorForConflictingExportEqualsValue.ts | 1 + tests/cases/compiler/errorMessagesIntersectionTypes03.ts | 1 + tests/cases/compiler/errorMessagesIntersectionTypes04.ts | 1 + tests/cases/compiler/errorsInGenericTypeReference.ts | 1 + tests/cases/compiler/es5-asyncFunction.ts | 1 + tests/cases/compiler/es5-asyncFunctionArrayLiterals.ts | 1 + tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts | 1 + tests/cases/compiler/es5-asyncFunctionCallExpressions.ts | 1 + tests/cases/compiler/es5-asyncFunctionConditionals.ts | 1 + tests/cases/compiler/es5-asyncFunctionDoStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionElementAccess.ts | 1 + tests/cases/compiler/es5-asyncFunctionForInStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionForOfStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionForStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionHoisting.ts | 1 + tests/cases/compiler/es5-asyncFunctionIfStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionLongObjectLiteral.ts | 1 + tests/cases/compiler/es5-asyncFunctionNestedLoops.ts | 1 + tests/cases/compiler/es5-asyncFunctionNewExpressions.ts | 1 + tests/cases/compiler/es5-asyncFunctionObjectLiterals.ts | 1 + tests/cases/compiler/es5-asyncFunctionPropertyAccess.ts | 1 + tests/cases/compiler/es5-asyncFunctionReturnStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionSwitchStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionTryStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionWhileStatements.ts | 1 + tests/cases/compiler/es5-asyncFunctionWithStatements.ts | 1 + tests/cases/compiler/es5-commonjs7.ts | 1 + tests/cases/compiler/es5-yieldFunctionObjectLiterals.ts | 1 + tests/cases/compiler/es6ClassTest.ts | 1 + tests/cases/compiler/es6ClassTest2.ts | 1 + tests/cases/compiler/es6ClassTest3.ts | 1 + tests/cases/compiler/es6ClassTest4.ts | 1 + tests/cases/compiler/es6ClassTest5.ts | 1 + tests/cases/compiler/es6ClassTest7.ts | 1 + tests/cases/compiler/es6ClassTest8.ts | 1 + tests/cases/compiler/es6ClassTest9.ts | 1 + tests/cases/compiler/es6ExportEqualsInterop.ts | 1 + tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts | 1 + tests/cases/compiler/evalAfter0.ts | 1 + tests/cases/compiler/excessPropertyCheckWithSpread.ts | 1 + tests/cases/compiler/expandoFunctionContextualTypesJs.ts | 1 + tests/cases/compiler/expandoFunctionNestedAssigments.ts | 1 + tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts | 1 + tests/cases/compiler/exportAlreadySeen.ts | 1 + tests/cases/compiler/exportAsNamespace.d.ts | 1 + tests/cases/compiler/exportAssignmentError.ts | 1 + tests/cases/compiler/exportAssignmentImportMergeNoCrash.ts | 1 + tests/cases/compiler/exportAssignmentInternalModule.ts | 1 + .../compiler/exportAssignmentWithImportStatementPrivacyError.ts | 1 + tests/cases/compiler/exportAssignmentWithPrivacyError.ts | 1 + tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts | 1 + tests/cases/compiler/exportDeclareClass1.ts | 1 + tests/cases/compiler/exportEqualErrorType.ts | 1 + tests/cases/compiler/exportEqualMemberMissing.ts | 1 + tests/cases/compiler/exportImportMultipleFiles.ts | 1 + .../compiler/exportSpecifierAndExportedMemberDeclaration.ts | 1 + tests/cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts | 1 + tests/cases/compiler/exportStarForValues.ts | 1 + tests/cases/compiler/exportStarForValues10.ts | 1 + tests/cases/compiler/exportStarForValues2.ts | 1 + tests/cases/compiler/exportStarForValues3.ts | 1 + tests/cases/compiler/exportStarForValues4.ts | 1 + tests/cases/compiler/exportStarForValues5.ts | 1 + tests/cases/compiler/exportStarForValues6.ts | 1 + tests/cases/compiler/exportStarForValues7.ts | 1 + tests/cases/compiler/exportStarForValues8.ts | 1 + tests/cases/compiler/exportStarForValues9.ts | 1 + tests/cases/compiler/exportStarForValuesInSystem.ts | 1 + tests/cases/compiler/exportStarFromEmptyModule.ts | 1 + tests/cases/compiler/exportedBlockScopedDeclarations.ts | 1 + tests/cases/compiler/expressionTypeNodeShouldError.ts | 1 + .../compiler/expressionsForbiddenInParameterInitializers.ts | 1 + tests/cases/compiler/extendArray.ts | 1 + tests/cases/compiler/extendGlobalThis.ts | 1 + tests/cases/compiler/extendGlobalThis2.ts | 1 + tests/cases/compiler/extendNonClassSymbol2.ts | 1 + tests/cases/compiler/extendsUntypedModule.ts | 1 + tests/cases/compiler/extension.ts | 1 + tests/cases/compiler/externSemantics.ts | 1 + tests/cases/compiler/externSyntax.ts | 1 + tests/cases/compiler/externalModuleImmutableBindings.ts | 1 + .../externalModuleRefernceResolutionOrderInImportDeclaration.ts | 1 + tests/cases/compiler/fallFromLastCase1.ts | 1 + tests/cases/compiler/fallFromLastCase2.ts | 1 + tests/cases/compiler/fatarrowfunctions.ts | 1 + tests/cases/compiler/fatarrowfunctionsErrors.ts | 1 + .../compiler/fatarrowfunctionsInFunctionParameterDefaults.ts | 1 + tests/cases/compiler/fatarrowfunctionsInFunctions.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts | 1 + tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts | 1 + tests/cases/compiler/fillInMissingTypeArgsOnJSConstructCalls.ts | 1 + tests/cases/compiler/findLast.ts | 1 + tests/cases/compiler/fixingTypeParametersRepeatedly1.ts | 1 + tests/cases/compiler/fixingTypeParametersRepeatedly2.ts | 1 + tests/cases/compiler/fixingTypeParametersRepeatedly3.ts | 1 + tests/cases/compiler/forIn.ts | 1 + tests/cases/compiler/forIn2.ts | 1 + tests/cases/compiler/forInModule.ts | 1 + tests/cases/compiler/forInStatement1.ts | 1 + tests/cases/compiler/forInStatement2.ts | 1 + tests/cases/compiler/forInStatement3.ts | 1 + tests/cases/compiler/forInStatement4.ts | 1 + tests/cases/compiler/forInStatement5.ts | 1 + tests/cases/compiler/forInStatement6.ts | 1 + tests/cases/compiler/forInStatement7.ts | 1 + tests/cases/compiler/forStatementInnerComments.ts | 1 + tests/cases/compiler/funClodule.ts | 1 + tests/cases/compiler/funcdecl.ts | 1 + tests/cases/compiler/functionAssignment.ts | 1 + tests/cases/compiler/functionAssignmentError.ts | 1 + tests/cases/compiler/functionCall18.ts | 1 + tests/cases/compiler/functionCall5.ts | 1 + tests/cases/compiler/functionCall7.ts | 1 + .../functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts | 1 + .../cases/compiler/functionExpressionAndLambdaMatchesFunction.ts | 1 + tests/cases/compiler/functionExpressionNames.ts | 1 + tests/cases/compiler/functionInIfStatementInModule.ts | 1 + tests/cases/compiler/functionOverloadAmbiguity1.ts | 1 + .../cases/compiler/functionOverloadImplementationOfWrongName.ts | 1 + .../cases/compiler/functionOverloadImplementationOfWrongName2.ts | 1 + tests/cases/compiler/functionOverloads1.ts | 1 + tests/cases/compiler/functionOverloads10.ts | 1 + tests/cases/compiler/functionOverloads11.ts | 1 + tests/cases/compiler/functionOverloads12.ts | 1 + tests/cases/compiler/functionOverloads13.ts | 1 + tests/cases/compiler/functionOverloads14.ts | 1 + tests/cases/compiler/functionOverloads15.ts | 1 + tests/cases/compiler/functionOverloads16.ts | 1 + tests/cases/compiler/functionOverloads17.ts | 1 + tests/cases/compiler/functionOverloads18.ts | 1 + tests/cases/compiler/functionOverloads19.ts | 1 + tests/cases/compiler/functionOverloads21.ts | 1 + tests/cases/compiler/functionOverloads23.ts | 1 + tests/cases/compiler/functionOverloads24.ts | 1 + tests/cases/compiler/functionOverloads44.ts | 1 + tests/cases/compiler/functionOverloads45.ts | 1 + tests/cases/compiler/functionOverloads5.ts | 1 + tests/cases/compiler/functionOverloads6.ts | 1 + tests/cases/compiler/functionOverloads7.ts | 1 + tests/cases/compiler/functionOverloads8.ts | 1 + tests/cases/compiler/functionOverloads9.ts | 1 + tests/cases/compiler/functionParameterArityMismatch.ts | 1 + tests/cases/compiler/functionSubtypingOfVarArgs.ts | 1 + tests/cases/compiler/functionSubtypingOfVarArgs2.ts | 1 + tests/cases/compiler/functionTypeArgumentArityErrors.ts | 1 + tests/cases/compiler/functionTypesLackingReturnTypes.ts | 1 + .../compiler/functionWithDefaultParameterWithNoStatements8.ts | 1 + tests/cases/compiler/generatorES6InAMDModule.ts | 1 + tests/cases/compiler/generatorES6_1.ts | 1 + tests/cases/compiler/generatorES6_6.ts | 1 + tests/cases/compiler/genericCallWithFixedArguments.ts | 1 + .../compiler/genericClassPropertyInheritanceSpecialization.ts | 1 + .../cases/compiler/genericClassWithStaticsUsingTypeArguments.ts | 1 + tests/cases/compiler/genericClassesInModule2.ts | 1 + tests/cases/compiler/genericConstraint2.ts | 1 + tests/cases/compiler/genericConstructSignatureInInterface.ts | 1 + tests/cases/compiler/genericDefaultsJs.ts | 1 + tests/cases/compiler/genericFunctionSpecializations1.ts | 1 + tests/cases/compiler/genericImplements.ts | 1 + tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts | 1 + tests/cases/compiler/genericOverloadSignatures.ts | 1 + tests/cases/compiler/genericPrototypeProperty2.ts | 1 + tests/cases/compiler/genericTypeAssertions3.ts | 1 + tests/cases/compiler/genericTypeAssertions6.ts | 1 + tests/cases/compiler/genericTypeParameterEquivalence2.ts | 1 + tests/cases/compiler/genericsWithDuplicateTypeParameters1.ts | 1 + tests/cases/compiler/getAndSetAsMemberNames.ts | 1 + tests/cases/compiler/getterSetterNonAccessor.ts | 1 + tests/cases/compiler/giant.ts | 1 + tests/cases/compiler/globalThisCapture.ts | 1 + tests/cases/compiler/grammarAmbiguities1.ts | 1 + tests/cases/compiler/heterogeneousArrayAndOverloads.ts | 1 + tests/cases/compiler/icomparable.ts | 1 + tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts | 1 + tests/cases/compiler/importHelpersES6.ts | 1 + tests/cases/compiler/inOperator.ts | 1 + tests/cases/compiler/inOperatorWithFunction.ts | 1 + tests/cases/compiler/inOperatorWithGeneric.ts | 1 + tests/cases/compiler/incompatibleTypes.ts | 1 + tests/cases/compiler/incorrectClassOverloadChain.ts | 1 + tests/cases/compiler/indexClassByNumber.ts | 1 + tests/cases/compiler/indexTypeCheck.ts | 1 + tests/cases/compiler/indexerSignatureWithRestParam.ts | 1 + tests/cases/compiler/indirectTypeParameterReferences.ts | 1 + tests/cases/compiler/inferObjectTypeFromStringLiteralToKeyof.ts | 1 + tests/cases/compiler/inferSecondaryParameter.ts | 1 + .../compiler/inferTypeArgumentsInSignatureWithRestParameters.ts | 1 + tests/cases/compiler/inferenceLimit.ts | 1 + tests/cases/compiler/inferentialTypingObjectLiteralMethod1.ts | 1 + tests/cases/compiler/inferentialTypingObjectLiteralMethod2.ts | 1 + tests/cases/compiler/inheritance.ts | 1 + tests/cases/compiler/inheritance1.ts | 1 + .../compiler/inheritanceGrandParentPrivateMemberCollision.ts | 1 + ...heritanceGrandParentPrivateMemberCollisionWithPublicMember.ts | 1 + ...heritanceGrandParentPublicMemberCollisionWithPrivateMember.ts | 1 + .../compiler/inheritanceMemberAccessorOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceMemberAccessorOverridingMethod.ts | 1 + .../compiler/inheritanceMemberAccessorOverridingProperty.ts | 1 + tests/cases/compiler/inheritanceMemberFuncOverridingAccessor.ts | 1 + tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts | 1 + tests/cases/compiler/inheritanceMemberFuncOverridingProperty.ts | 1 + .../compiler/inheritanceMemberPropertyOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceMemberPropertyOverridingMethod.ts | 1 + .../compiler/inheritanceMemberPropertyOverridingProperty.ts | 1 + tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts | 1 + tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts | 1 + .../compiler/inheritanceStaticAccessorOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceStaticAccessorOverridingMethod.ts | 1 + .../compiler/inheritanceStaticAccessorOverridingProperty.ts | 1 + tests/cases/compiler/inheritanceStaticFuncOverridingAccessor.ts | 1 + .../inheritanceStaticFuncOverridingAccessorOfFuncType.ts | 1 + tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts | 1 + tests/cases/compiler/inheritanceStaticFuncOverridingProperty.ts | 1 + .../inheritanceStaticFuncOverridingPropertyOfFuncType.ts | 1 + .../inheritanceStaticFunctionOverridingInstanceProperty.ts | 1 + tests/cases/compiler/inheritanceStaticMembersCompatible.ts | 1 + tests/cases/compiler/inheritanceStaticMembersIncompatible.ts | 1 + .../compiler/inheritanceStaticPropertyOverridingAccessor.ts | 1 + .../cases/compiler/inheritanceStaticPropertyOverridingMethod.ts | 1 + .../compiler/inheritanceStaticPropertyOverridingProperty.ts | 1 + tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts | 1 + .../inheritedMembersAndIndexSignaturesFromDifferentBases.ts | 1 + .../inheritedMembersAndIndexSignaturesFromDifferentBases2.ts | 1 + .../compiler/inheritedStringIndexersFromDifferentBaseTypes2.ts | 1 + tests/cases/compiler/innerExtern.ts | 1 + tests/cases/compiler/innerOverloads.ts | 1 + tests/cases/compiler/innerTypeCheckOfLambdaArgument.ts | 1 + tests/cases/compiler/instanceOfAssignability.ts | 1 + tests/cases/compiler/intTypeCheck.ts | 1 + tests/cases/compiler/interfaceImplementation1.ts | 1 + tests/cases/compiler/interfaceOnly.ts | 1 + tests/cases/compiler/interfaceWithCommaSeparators.ts | 1 + tests/cases/compiler/interfacedecl.ts | 1 + tests/cases/compiler/interfacedeclWithIndexerErrors.ts | 1 + tests/cases/compiler/internalAliasUninitializedModule.ts | 1 + ...nternalAliasUninitializedModuleInsideLocalModuleWithExport.ts | 1 + ...rnalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts | 1 + ...initializedModuleInsideLocalModuleWithoutExportAccessError.ts | 1 + ...rnalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts | 1 + ...lAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts | 1 + tests/cases/compiler/internalAliasWithDottedNameEmit.ts | 1 + tests/cases/compiler/intrinsics.ts | 1 + tests/cases/compiler/invalidConstraint1.ts | 1 + .../compiler/isolatedDeclarationErrorsFunctionDeclarations.ts | 1 + tests/cases/compiler/isolatedDeclarationLazySymbols.ts | 1 + tests/cases/compiler/isolatedDeclarationsAllowJs.ts | 1 + tests/cases/compiler/isolatedModulesDeclaration.ts | 1 + tests/cases/compiler/isolatedModulesES6.ts | 1 + tests/cases/compiler/isolatedModulesNonAmbientConstEnum.ts | 1 + tests/cases/compiler/isolatedModulesOut.ts | 1 + tests/cases/compiler/isolatedModulesSpecifiedModule.ts | 1 + tests/cases/compiler/isolatedModulesUnspecifiedModule.ts | 1 + tests/cases/compiler/isolatedModulesWithDeclarationFile.ts | 1 + tests/cases/compiler/javascriptThisAssignmentInStaticBlock.ts | 1 + tests/cases/compiler/jsEnumFunctionLocalNoCrash.ts | 1 + tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts | 1 + tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts | 1 + tests/cases/compiler/jsFileESModuleWithEnumTag.ts | 1 + tests/cases/compiler/jsNegativeElementAccessNotBound.ts | 1 + tests/cases/compiler/jsdocInTypeScript.ts | 1 + tests/cases/compiler/jsdocParamTagInvalid.ts | 1 + tests/cases/compiler/jsdocParameterParsingInvalidName.ts | 1 + tests/cases/compiler/jsdocTypedef_propertyWithNoType.ts | 1 + tests/cases/compiler/jsxEmitWithAttributes.ts | 1 + tests/cases/compiler/jsxFactoryAndReactNamespace.ts | 1 + tests/cases/compiler/jsxFactoryIdentifier.ts | 1 + tests/cases/compiler/jsxFactoryIdentifierAsParameter.ts | 1 + tests/cases/compiler/jsxFactoryIdentifierWithAbsentParameter.ts | 1 + tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts | 1 + tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName.ts | 1 + tests/cases/compiler/jsxFactoryNotIdentifierOrQualifiedName2.ts | 1 + tests/cases/compiler/jsxFactoryQualifiedName.ts | 1 + tests/cases/compiler/jsxFactoryQualifiedNameResolutionError.ts | 1 + tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts | 1 + tests/cases/compiler/jsxPreserveWithJsInput.ts | 1 + tests/cases/compiler/jsxSpreadTag.ts | 1 + tests/cases/compiler/lambdaParamTypes.ts | 1 + tests/cases/compiler/letConstMatchingParameterNames.ts | 1 + tests/cases/compiler/libMembers.ts | 1 + tests/cases/compiler/localClassesInLoop.ts | 1 + tests/cases/compiler/localClassesInLoop_ES6.ts | 1 + tests/cases/compiler/mappedTypeNoTypeNoCrash.ts | 1 + tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts | 1 + tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts | 1 + tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts | 1 + tests/cases/compiler/methodContainingLocalFunction.ts | 1 + tests/cases/compiler/missingCloseParenStatements.ts | 1 + tests/cases/compiler/missingFunctionImplementation.ts | 1 + tests/cases/compiler/missingFunctionImplementation2.ts | 1 + tests/cases/compiler/missingTypeArguments3.ts | 1 + tests/cases/compiler/mixedExports.ts | 1 + tests/cases/compiler/mixingFunctionAndAmbientModule1.ts | 1 + tests/cases/compiler/mixingStaticAndInstanceOverloads.ts | 1 + tests/cases/compiler/modFunctionCrash.ts | 1 + tests/cases/compiler/modifierOnParameter1.ts | 1 + ...ularizeLibrary_UsingES5LibES6ArrayLibES6WellknownSymbolLib.ts | 1 + .../compiler/moduleAugmentationCollidingNamesInAugmentation1.ts | 1 + tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal4.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal5.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal6.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal6_1.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal7.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal7_1.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal8.ts | 1 + tests/cases/compiler/moduleAugmentationGlobal8_1.ts | 1 + tests/cases/compiler/moduleAugmentationImportsAndExports2.ts | 1 + tests/cases/compiler/moduleAugmentationImportsAndExports3.ts | 1 + .../compiler/moduleAugmentationWithNonExistentNamedImport.ts | 1 + tests/cases/compiler/moduleAugmentationsBundledOutput1.ts | 1 + tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts | 1 + tests/cases/compiler/modulePreserve3.ts | 1 + tests/cases/compiler/modulePreserveTopLevelAwait1.ts | 1 + tests/cases/compiler/moduleProperty2.ts | 1 + .../compiler/moduleResolutionWithExtensions_notSupported.ts | 1 + .../compiler/moduleResolutionWithExtensions_notSupported2.ts | 1 + .../compiler/moduleResolutionWithExtensions_notSupported3.ts | 1 + .../moduleResolution_explicitNodeModulesImport_implicitAny.ts | 1 + .../compiler/moduleResolution_packageJson_yesAtPackageRoot.ts | 1 + ...eResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.ts | 1 + ...ution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.ts | 1 + tests/cases/compiler/moduleResolution_relativeImportJsFile.ts | 1 + tests/cases/compiler/moduleUnassignedVariable.ts | 1 + tests/cases/compiler/moduleVisibilityTest1.ts | 1 + tests/cases/compiler/moduleVisibilityTest2.ts | 1 + tests/cases/compiler/module_augmentUninstantiatedModule.ts | 1 + tests/cases/compiler/module_augmentUninstantiatedModule2.ts | 1 + tests/cases/compiler/moduledecl.ts | 1 + .../compiler/multiLinePropertyAccessAndArrowFunctionIndent1.ts | 1 + tests/cases/compiler/multiModuleFundule1.ts | 1 + tests/cases/compiler/multipleClassPropertyModifiers.ts | 1 + tests/cases/compiler/multipleClassPropertyModifiersErrors.ts | 1 + tests/cases/compiler/multipleExportAssignments.ts | 1 + .../compiler/multipleExportAssignmentsInAmbientDeclaration.ts | 1 + tests/cases/compiler/multipleExports.ts | 1 + tests/cases/compiler/multipleInheritance.ts | 1 + tests/cases/compiler/multivar.ts | 1 + tests/cases/compiler/namedFunctionExpressionInModule.ts | 1 + tests/cases/compiler/namedImportNonExistentName.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings3.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings4.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings5.ts | 1 + tests/cases/compiler/nestedBlockScopedBindings6.ts | 1 + tests/cases/compiler/nestedIndexer.ts | 1 + tests/cases/compiler/nestedLoopWithOnlyInnerLetCaptured.ts | 1 + tests/cases/compiler/nestedRecursiveLambda.ts | 1 + tests/cases/compiler/newNamesInGlobalAugmentations1.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts | 1 + .../noCollisionThisExpressionAndLocalVarInConstructor.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInFunction.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInLambda.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInMethod.ts | 1 + .../compiler/noCollisionThisExpressionAndLocalVarInProperty.ts | 1 + .../noCollisionThisExpressionInFunctionAndVarInGlobal.ts | 1 + tests/cases/compiler/noCrashOnParameterNamedRequire.ts | 1 + tests/cases/compiler/noImplicitReturnsInAsync2.ts | 1 + tests/cases/compiler/noImplicitReturnsWithoutReturnExpression.ts | 1 + tests/cases/compiler/noImplicitThisFunctions.ts | 1 + tests/cases/compiler/noUnusedLocals_writeOnlyProperty.ts | 1 + .../compiler/noUnusedLocals_writeOnlyProperty_dynamicNames.ts | 1 + tests/cases/compiler/noUsedBeforeDefinedErrorInTypeContext.ts | 1 + tests/cases/compiler/nodeResolution4.ts | 1 + tests/cases/compiler/nodeResolution6.ts | 1 + tests/cases/compiler/nodeResolution8.ts | 1 + tests/cases/compiler/nonArrayRestArgs.ts | 1 + tests/cases/compiler/nonContextuallyTypedLogicalOr.ts | 1 + tests/cases/compiler/nonExportedElementsOfMergedModules.ts | 1 + tests/cases/compiler/nonMergedOverloads.ts | 1 + tests/cases/compiler/null.ts | 1 + .../cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts | 1 + .../cases/compiler/numericLiteralsWithTrailingDecimalPoints02.ts | 1 + tests/cases/compiler/objectLitArrayDeclNoNew.ts | 1 + tests/cases/compiler/objectLitIndexerContextualType.ts | 1 + tests/cases/compiler/objectLiteralArraySpecialization.ts | 1 + tests/cases/compiler/objectLiteralFreshnessWithSpread.ts | 1 + .../cases/compiler/objectLiteralFunctionArgContextualTyping2.ts | 1 + tests/cases/compiler/objectPropertyAsClass.ts | 1 + tests/cases/compiler/objectRestSpread.ts | 1 + tests/cases/compiler/optionalArgsWithDefaultValues.ts | 1 + tests/cases/compiler/optionalConstructorArgInSuper.ts | 1 + tests/cases/compiler/optionalParamReferencingOtherParams3.ts | 1 + tests/cases/compiler/optionalPropertiesSyntax.ts | 1 + tests/cases/compiler/overload2.ts | 1 + tests/cases/compiler/overloadCallTest.ts | 1 + tests/cases/compiler/overloadConsecutiveness.ts | 1 + tests/cases/compiler/overloadCrash.ts | 1 + tests/cases/compiler/overloadModifiersMustAgree.ts | 1 + tests/cases/compiler/overloadOnConstDuplicateOverloads1.ts | 1 + .../overloadOnConstInBaseWithBadImplementationInDerived.ts | 1 + tests/cases/compiler/overloadOnConstInCallback1.ts | 1 + .../overloadOnConstInObjectLiteralImplementingAnInterface.ts | 1 + tests/cases/compiler/overloadOnConstInheritance4.ts | 1 + tests/cases/compiler/overloadOnConstNoAnyImplementation.ts | 1 + tests/cases/compiler/overloadOnConstNoAnyImplementation2.ts | 1 + tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts | 1 + tests/cases/compiler/overloadOnConstNoStringImplementation.ts | 1 + tests/cases/compiler/overloadOnConstNoStringImplementation2.ts | 1 + tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts | 1 + tests/cases/compiler/overloadResolutionOnDefaultConstructor1.ts | 1 + tests/cases/compiler/overloadResolutionOverCTLambda.ts | 1 + tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts | 1 + tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts | 1 + tests/cases/compiler/overloadResolutionTest1.ts | 1 + tests/cases/compiler/overloadResolutionWithAny.ts | 1 + .../overloadWithCallbacksWithDifferingOptionalityOnArgs.ts | 1 + tests/cases/compiler/overloadingOnConstantsInImplementation.ts | 1 + .../compiler/overloadresolutionWithConstraintCheckingDeferred.ts | 1 + tests/cases/compiler/overloadsAndTypeArgumentArity.ts | 1 + tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts | 1 + .../compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts | 1 + tests/cases/compiler/overloadsWithinClasses.ts | 1 + tests/cases/compiler/parameterPropertyOutsideConstructor.ts | 1 + tests/cases/compiler/paramterDestrcuturingDeclaration.ts | 1 + tests/cases/compiler/parenthesizedAsyncArrowFunction.ts | 1 + tests/cases/compiler/parseBigInt.ts | 1 + tests/cases/compiler/parseErrorIncorrectReturnToken.ts | 1 + tests/cases/compiler/parseJsxExtends1.ts | 1 + tests/cases/compiler/parseObjectLiteralsWithoutTypes.ts | 1 + .../cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx1.ts | 1 + .../cases/compiler/parseUnaryExpressionNoTypeAssertionInJsx4.ts | 1 + .../parsingClassRecoversWhenHittingUnexpectedSemicolon.ts | 1 + .../cases/compiler/pathMappingBasedModuleResolution6_classic.ts | 1 + tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts | 1 + .../cases/compiler/pathMappingBasedModuleResolution7_classic.ts | 1 + tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts | 1 + ...pingBasedModuleResolution_withExtension_MapedToNodeModules.ts | 1 + tests/cases/compiler/potentiallyUncalledDecorators.ts | 1 + tests/cases/compiler/predicateSemantics.ts | 1 + tests/cases/compiler/primitiveMembers.ts | 1 + .../privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts | 1 + tests/cases/compiler/privacyGloImport.ts | 1 + tests/cases/compiler/privacyGloImportParseErrors.ts | 1 + tests/cases/compiler/privacyGloInterface.ts | 1 + tests/cases/compiler/privacyImportParseErrors.ts | 1 + tests/cases/compiler/privacyInterface.ts | 1 + tests/cases/compiler/privacyInterfaceExtendsClauseDeclFile.ts | 1 + tests/cases/compiler/privateNameWeakMapCollision.ts | 1 + tests/cases/compiler/promiseEmptyTupleNoException.ts | 1 + tests/cases/compiler/promisePermutations.ts | 1 + tests/cases/compiler/promisePermutations2.ts | 1 + tests/cases/compiler/promisePermutations3.ts | 1 + tests/cases/compiler/promiseType.ts | 1 + tests/cases/compiler/promiseTypeInference.ts | 1 + tests/cases/compiler/promiseTypeInferenceUnion.ts | 1 + tests/cases/compiler/propertyAccess1.ts | 1 + tests/cases/compiler/propertyAccess2.ts | 1 + tests/cases/compiler/propertyAccess3.ts | 1 + tests/cases/compiler/propertyAccess6.ts | 1 + tests/cases/compiler/propertyAccess7.ts | 1 + tests/cases/compiler/propertyAccessExpressionInnerComments.ts | 1 + tests/cases/compiler/propertyAccessOfReadonlyIndexSignature.ts | 1 + tests/cases/compiler/propertyAccessOnObjectLiteral.ts | 1 + tests/cases/compiler/propertyAccessibility1.ts | 1 + tests/cases/compiler/propertyAccessibility2.ts | 1 + tests/cases/compiler/propertyAssignment.ts | 1 + tests/cases/compiler/propertyIdentityWithPrivacyMismatch.ts | 1 + tests/cases/compiler/propertyOrdering2.ts | 1 + tests/cases/compiler/propertyParameterWithQuestionMark.ts | 1 + tests/cases/compiler/propertySignatures.ts | 1 + tests/cases/compiler/propertyWrappedInTry.ts | 1 + tests/cases/compiler/protectedMembers.ts | 1 + tests/cases/compiler/protectedMembersThisParameter.ts | 1 + tests/cases/compiler/protoAsIndexInIndexExpression.ts | 1 + tests/cases/compiler/protoAssignment.ts | 1 + tests/cases/compiler/protoInIndexer.ts | 1 + tests/cases/compiler/prototypeOnConstructorFunctions.ts | 1 + tests/cases/compiler/qualify.ts | 1 + tests/cases/compiler/reExportUndefined2.ts | 1 + tests/cases/compiler/reachabilityChecks1.ts | 1 + tests/cases/compiler/reachabilityChecks11.ts | 1 + tests/cases/compiler/reachabilityChecks4.ts | 1 + tests/cases/compiler/reachabilityChecks5.ts | 1 + tests/cases/compiler/reachabilityChecks6.ts | 1 + tests/cases/compiler/reachabilityChecks7.ts | 1 + tests/cases/compiler/readonlyInNonPropertyParameters.ts | 1 + tests/cases/compiler/recur1.ts | 1 + tests/cases/compiler/recursiveClassReferenceTest.ts | 1 + .../compiler/recursiveExportAssignmentAndFindAliasedType7.ts | 1 + tests/cases/compiler/recursiveGetterAccess.ts | 1 + tests/cases/compiler/recursiveInference1.ts | 1 + tests/cases/compiler/recursiveLetConst.ts | 1 + tests/cases/compiler/recursiveNamedLambdaCall.ts | 1 + tests/cases/compiler/recursiveProperties.ts | 1 + tests/cases/compiler/recursiveSpecializationOfSignatures.ts | 1 + tests/cases/compiler/redeclareParameterInCatchBlock.ts | 1 + tests/cases/compiler/reexportMissingDefault.ts | 1 + tests/cases/compiler/reexportMissingDefault1.ts | 1 + tests/cases/compiler/reexportMissingDefault2.ts | 1 + tests/cases/compiler/reexportMissingDefault3.ts | 1 + tests/cases/compiler/reexportMissingDefault4.ts | 1 + tests/cases/compiler/reexportMissingDefault5.ts | 1 + tests/cases/compiler/reexportMissingDefault6.ts | 1 + tests/cases/compiler/reexportMissingDefault7.ts | 1 + tests/cases/compiler/reexportMissingDefault8.ts | 1 + tests/cases/compiler/reexportNameAliasedAndHoisted.ts | 1 + .../cases/compiler/renamingDestructuredPropertyInFunctionType.ts | 1 + .../compiler/renamingDestructuredPropertyInFunctionType2.ts | 1 + .../compiler/renamingDestructuredPropertyInFunctionType3.ts | 1 + tests/cases/compiler/requiredInitializedParameter1.ts | 1 + tests/cases/compiler/requiredInitializedParameter2.ts | 1 + tests/cases/compiler/requiredInitializedParameter3.ts | 1 + tests/cases/compiler/requiredInitializedParameter4.ts | 1 + tests/cases/compiler/restArgMissingName.ts | 1 + tests/cases/compiler/restParamAsOptional.ts | 1 + tests/cases/compiler/restParamModifier.ts | 1 + tests/cases/compiler/restParamModifier2.ts | 1 + tests/cases/compiler/restParameterNoTypeAnnotation.ts | 1 + tests/cases/compiler/restParameterWithBindingPattern1.ts | 1 + tests/cases/compiler/restParameterWithBindingPattern2.ts | 1 + tests/cases/compiler/returnInfiniteIntersection.ts | 1 + tests/cases/compiler/returnStatement1.ts | 1 + tests/cases/compiler/returnTypeParameterWithModules.ts | 1 + tests/cases/compiler/returnValueInSetter.ts | 1 + .../cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts | 1 + .../cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts | 1 + tests/cases/compiler/scopeCheckInsidePublicMethod1.ts | 1 + tests/cases/compiler/scopeCheckInsideStaticMethod1.ts | 1 + tests/cases/compiler/scopeTests.ts | 1 + tests/cases/compiler/selfReferencesInFunctionParameters.ts | 1 + tests/cases/compiler/setMethods.ts | 1 + tests/cases/compiler/setterWithReturn.ts | 1 + .../compiler/shadowedFunctionScopedVariablesByBlockScopedOnes.ts | 1 + .../compiler/shadowedReservedCompilerDeclarationsWithNoEmit.ts | 1 + tests/cases/compiler/sourceMapValidationExportAssignment.ts | 1 + .../compiler/sourceMapValidationExportAssignmentCommonjs.ts | 1 + tests/cases/compiler/specializationsShouldNotAffectEachOther.ts | 1 + tests/cases/compiler/specializeVarArgs1.ts | 1 + tests/cases/compiler/specializedOverloadWithRestParameters.ts | 1 + tests/cases/compiler/specializedSignatureAsCallbackParameter1.ts | 1 + tests/cases/compiler/staticAsIdentifier.ts | 1 + tests/cases/compiler/staticClassMemberError.ts | 1 + ...staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts | 1 + tests/cases/compiler/staticModifierAlreadySeen.ts | 1 + tests/cases/compiler/structuralTypeInDeclareFileForModule.ts | 1 + tests/cases/compiler/super1.ts | 1 + ...rivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.ts | 1 + ...FromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.ts | 1 + ...allFromClassThatDerivesNonGenericTypeButWithTypeArguments1.ts | 1 + tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts | 1 + tests/cases/compiler/superCallFromFunction1.ts | 1 + tests/cases/compiler/superNewCall1.ts | 1 + tests/cases/compiler/superWithTypeArgument2.ts | 1 + tests/cases/compiler/switchCaseCircularRefeference.ts | 1 + tests/cases/compiler/systemJsForInNoException.ts | 1 + tests/cases/compiler/systemModule11.ts | 1 + tests/cases/compiler/systemModule4.ts | 1 + tests/cases/compiler/systemModule8.ts | 1 + tests/cases/compiler/systemModuleAmbientDeclarations.ts | 1 + tests/cases/compiler/systemModuleConstEnums.ts | 1 + .../cases/compiler/systemModuleConstEnumsSeparateCompilation.ts | 1 + tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts | 1 + tests/cases/compiler/targetTypeCastTest.ts | 1 + tests/cases/compiler/targetTypeTest1.ts | 1 + tests/cases/compiler/testTypings.ts | 1 + tests/cases/compiler/thisBinding.ts | 1 + tests/cases/compiler/thisExpressionInIndexExpression.ts | 1 + tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts | 1 + tests/cases/compiler/thisInConstructorParameter1.ts | 1 + tests/cases/compiler/thisInSuperCall.ts | 1 + tests/cases/compiler/thisInSuperCall1.ts | 1 + tests/cases/compiler/thisInSuperCall2.ts | 1 + tests/cases/compiler/thisInSuperCall3.ts | 1 + .../compiler/thisReferencedInFunctionInsideArrowFunction1.ts | 1 + tests/cases/compiler/topLevel.ts | 1 + tests/cases/compiler/topLevelBlockExpando.ts | 1 + tests/cases/compiler/topLevelExports.ts | 1 + tests/cases/compiler/topLevelLambda.ts | 1 + tests/cases/compiler/topLevelLambda2.ts | 1 + tests/cases/compiler/topLevelLambda4.ts | 1 + tests/cases/compiler/trailingCommasES5.ts | 1 + .../compiler/transformArrowInBlockScopedLoopVarInitializer.ts | 1 + tests/cases/compiler/transformsElideNullUndefinedType.ts | 1 + tests/cases/compiler/typeAliasExport.ts | 1 + tests/cases/compiler/typeArgumentConstraintResolution1.ts | 1 + .../compiler/typeArgumentInferenceWithConstraintAsCommonRoot.ts | 1 + ...eckObjectCreationExpressionWithUndefinedCallResolutionData.ts | 1 + tests/cases/compiler/typeCheckTypeArgument.ts | 1 + tests/cases/compiler/typeMatch1.ts | 1 + tests/cases/compiler/typeMatch2.ts | 1 + tests/cases/compiler/typeName1.ts | 1 + .../compiler/typeParameterConstrainedToOuterTypeParameter.ts | 1 + .../compiler/typeParameterConstrainedToOuterTypeParameter2.ts | 1 + tests/cases/compiler/typeParameterExplicitlyExtendsAny.ts | 1 + tests/cases/compiler/typeParameterExtendingUnion1.ts | 1 + tests/cases/compiler/typeParameterExtendingUnion2.ts | 1 + tests/cases/compiler/typeParameterFixingWithConstraints.ts | 1 + .../compiler/typeParameterFixingWithContextSensitiveArguments.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments2.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments3.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments4.ts | 1 + .../typeParameterFixingWithContextSensitiveArguments5.ts | 1 + tests/cases/compiler/typeParameterWithInvalidConstraintType.ts | 1 + tests/cases/compiler/typeReferenceDirectives1.ts | 1 + tests/cases/compiler/typeReferenceDirectives10.ts | 1 + tests/cases/compiler/typeReferenceDirectives11.ts | 1 + tests/cases/compiler/typeReferenceDirectives12.ts | 1 + tests/cases/compiler/typeReferenceDirectives13.ts | 1 + tests/cases/compiler/typeReferenceDirectives2.ts | 1 + tests/cases/compiler/typeReferenceDirectives3.ts | 1 + tests/cases/compiler/typeReferenceDirectives4.ts | 1 + tests/cases/compiler/typeReferenceDirectives5.ts | 1 + tests/cases/compiler/typeReferenceDirectives6.ts | 1 + tests/cases/compiler/typeReferenceDirectives8.ts | 1 + tests/cases/compiler/typeReferenceDirectives9.ts | 1 + tests/cases/compiler/typeResolution.ts | 1 + tests/cases/compiler/typedArrays-es5.ts | 1 + tests/cases/compiler/typedArrays-es6.ts | 1 + tests/cases/compiler/typedArraysSubarray.ts | 1 + tests/cases/compiler/uncaughtCompilerError1.ts | 1 + tests/cases/compiler/undefinedTypeAssignment2.ts | 1 + tests/cases/compiler/underscoreTest1.ts | 1 + .../unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.ts | 1 + tests/cases/compiler/uniqueSymbolJs.ts | 1 + tests/cases/compiler/uniqueSymbolPropertyDeclarationEmit.ts | 1 + tests/cases/compiler/unknownSymbols1.ts | 1 + tests/cases/compiler/unknownSymbols2.ts | 1 + tests/cases/compiler/unknownTypeArgOnCall.ts | 1 + tests/cases/compiler/untypedArgumentInLambdaExpression.ts | 1 + tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts | 1 + tests/cases/compiler/untypedModuleImport_withAugmentation2.ts | 1 + tests/cases/compiler/unusedDestructuring.ts | 1 + tests/cases/compiler/unusedDestructuringParameters.ts | 1 + tests/cases/compiler/unusedImports13.ts | 1 + tests/cases/compiler/unusedImports14.ts | 1 + tests/cases/compiler/unusedImports15.ts | 1 + tests/cases/compiler/unusedImports16.ts | 1 + tests/cases/compiler/unusedLocalsAndParameters.ts | 1 + tests/cases/compiler/unusedLocalsAndParametersDeferred.ts | 1 + .../compiler/unusedLocalsAndParametersOverloadSignatures.ts | 1 + tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts | 1 + tests/cases/compiler/unusedLocalsAndParametersTypeAliases2.ts | 1 + tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts | 1 + tests/cases/compiler/unusedMethodsInInterface.ts | 1 + tests/cases/compiler/unusedParameterProperty2.ts | 1 + tests/cases/compiler/unusedParametersInLambda1.ts | 1 + tests/cases/compiler/unusedParametersInLambda2.ts | 1 + tests/cases/compiler/unusedParametersWithUnderscore.ts | 1 + tests/cases/compiler/unusedPrivateMembers.ts | 1 + tests/cases/compiler/varArgsOnConstructorTypes.ts | 1 + tests/cases/compiler/varAsID.ts | 1 + tests/cases/compiler/varBlock.ts | 1 + tests/cases/compiler/vardecl.ts | 1 + .../compiler/variableDeclaratorResolvedDuringContextualTyping.ts | 1 + tests/cases/compiler/verbatimModuleSyntaxReactReference.ts | 1 + tests/cases/compiler/voidOperator1.ts | 1 + tests/cases/compiler/voidReturnLambdaValue.ts | 1 + tests/cases/compiler/wellKnownSymbolExpando.ts | 1 + tests/cases/compiler/widenedTypes1.ts | 1 + tests/cases/compiler/withExportDecl.ts | 1 + tests/cases/compiler/withImportDecl.ts | 1 + tests/cases/compiler/wrappedIncovations1.ts | 1 + tests/cases/compiler/wrappedIncovations2.ts | 1 + tests/cases/conformance/Symbols/ES5SymbolProperty2.ts | 1 + tests/cases/conformance/ambient/ambientDeclarations.ts | 1 + tests/cases/conformance/ambient/ambientDeclarationsExternal.ts | 1 + tests/cases/conformance/ambient/ambientDeclarationsPatterns.ts | 1 + .../conformance/ambient/ambientDeclarationsPatterns_merging1.ts | 1 + .../conformance/ambient/ambientDeclarationsPatterns_merging2.ts | 1 + .../conformance/ambient/ambientDeclarationsPatterns_merging3.ts | 1 + .../ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts | 1 + tests/cases/conformance/ambient/ambientErrors.ts | 1 + tests/cases/conformance/ambient/ambientInsideNonAmbient.ts | 1 + .../conformance/ambient/ambientInsideNonAmbientExternalModule.ts | 1 + .../async/asyncFunctionDeclarationParameterEvaluation.ts | 1 + .../arrowFunctionWithParameterNameAsync_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction2_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction3_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts | 1 + .../es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts | 1 + .../asyncUnParenthesizedArrowFunction_es2017.ts | 1 + .../conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration10_es2017.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration2_es2017.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration3_es2017.ts | 1 + .../functionDeclarations/asyncFunctionDeclaration5_es2017.ts | 1 + .../arrowFunctionWithParameterNameAsync_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction2_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction3_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts | 1 + .../async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts | 1 + .../asyncArrowFunction/asyncUnParenthesizedArrowFunction_es5.ts | 1 + tests/cases/conformance/async/es5/asyncSetter_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration2_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration3_es5.ts | 1 + .../es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts | 1 + .../arrowFunctionWithParameterNameAsync_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts | 1 + .../async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts | 1 + .../asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts | 1 + tests/cases/conformance/async/es6/asyncSetter_es6.ts | 1 + tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts | 1 + .../es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts | 1 + .../asyncGenerators/asyncGeneratorParameterEvaluation.ts | 1 + tests/cases/conformance/classes/awaitAndYieldInProperty.ts | 1 + .../classAbstractKeyword/classAbstractAccessor.ts | 1 + .../classAbstractKeyword/classAbstractCrashedOnce.ts | 1 + .../classAbstractKeyword/classAbstractDeclarations.d.ts | 1 + .../classAbstractKeyword/classAbstractExtends.ts | 1 + .../classAbstractKeyword/classAbstractGeneric.ts | 1 + .../classAbstractKeyword/classAbstractInheritance1.ts | 1 + .../classAbstractMethodInNonAbstractClass.ts | 1 + .../classAbstractKeyword/classAbstractMixedWithModifiers.ts | 1 + .../classAbstractKeyword/classAbstractOverloads.ts | 1 + .../classAbstractKeyword/classAbstractOverrideWithAbstract.ts | 1 + .../classAbstractKeyword/classAbstractSuperCalls.ts | 1 + .../classAbstractKeyword/classAbstractUsingAbstractMethods2.ts | 1 + .../classExtendsValidConstructorFunction.ts | 1 + .../classWithStaticFieldInParameterBindingPattern.2.ts | 1 + .../classWithStaticFieldInParameterBindingPattern.3.ts | 1 + .../classWithStaticFieldInParameterBindingPattern.ts | 1 + .../classWithStaticFieldInParameterInitializer.2.ts | 1 + .../conformance/classes/classStaticBlock/classStaticBlock26.ts | 1 + .../classWithTwoConstructorDefinitions.ts | 1 + .../constructorImplementationWithDefaultValues.ts | 1 + .../constructorImplementationWithDefaultValues2.ts | 1 + .../constructorOverloadsWithOptionalParameters.ts | 1 + .../constructorParameters/readonlyInAmbientClass.ts | 1 + .../superCalls/derivedClassSuperCallsWithThisArg.ts | 1 + .../superCalls/derivedClassSuperProperties.ts | 1 + .../classes/indexMemberDeclarations/privateIndexer2.ts | 1 + .../classes/members/accessibility/classPropertyAsPrivate.ts | 1 + .../classes/members/accessibility/classPropertyAsProtected.ts | 1 + .../members/accessibility/classPropertyIsPublicByDefault.ts | 1 + .../accessibility/privateClassPropertyAccessibleWithinClass.ts | 1 + .../members/accessibility/privateInstanceMemberAccessibility.ts | 1 + .../privateProtectedMembersAreNotAccessibleDestructuring.ts | 1 + .../accessibility/protectedClassPropertyAccessibleWithinClass.ts | 1 + .../derivedClassIncludesInheritedMembers.ts | 1 + .../members/instanceAndStaticMembers/superInStaticMembers1.ts | 1 + .../members/privateNames/privateNameAccessorsCallExpression.ts | 1 + .../classes/members/privateNames/privateNameBadSuper.ts | 1 + .../privateNames/privateNameBadSuperUseDefineForClassFields.ts | 1 + .../members/privateNames/privateNameComputedPropertyName3.ts | 1 + .../members/privateNames/privateNameConstructorSignature.ts | 1 + .../members/privateNames/privateNameDeclarationMerging.ts | 1 + .../members/privateNames/privateNameFieldCallExpression.ts | 1 + .../classes/members/privateNames/privateNameFieldInitializer.ts | 1 + .../classes/members/privateNames/privateNameFieldsESNext.ts | 1 + .../classes/members/privateNames/privateNameHashCharName.ts | 1 + .../classes/members/privateNames/privateNameLateSuper.ts | 1 + .../privateNames/privateNameLateSuperUseDefineForClassFields.ts | 1 + .../members/privateNames/privateNameMethodCallExpression.ts | 1 + .../members/privateNames/privateNameNestedClassFieldShadowing.ts | 1 + .../classes/members/privateNames/privateNameSetterNoGetter.ts | 1 + .../privateNames/privateNameStaticAccessorsCallExpression.ts | 1 + .../members/privateNames/privateNameStaticFieldCallExpression.ts | 1 + .../members/privateNames/privateNameStaticFieldInitializer.ts | 1 + .../members/privateNames/privateNameStaticFieldNoInitializer.ts | 1 + .../privateNames/privateNameStaticMethodCallExpression.ts | 1 + .../members/privateNames/privateNamesInterfaceExtendingClass.ts | 1 + .../classes/members/privateNames/privateNamesUnique-2.ts | 1 + .../classes/members/privateNames/privateNamesUseBeforeDef.ts | 1 + .../classes/propertyMemberDeclarations/accessibilityModifiers.ts | 1 + .../classes/propertyMemberDeclarations/autoAccessor11.ts | 1 + .../classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts | 1 + .../classes/propertyMemberDeclarations/defineProperty.ts | 1 + .../initializerReferencingConstructorLocals.ts | 1 + .../initializerReferencingConstructorParameters.ts | 1 + .../memberAccessorDeclarations/accessorWithES5.ts | 1 + .../memberFunctionOverloadMixingStaticAndInstance.ts | 1 + .../memberFunctionsWithPrivateOverloads.ts | 1 + .../memberFunctionsWithPublicOverloads.ts | 1 + .../memberFunctionsWithPublicPrivateOverloads.ts | 1 + .../classes/propertyMemberDeclarations/optionalProperty.ts | 1 + .../propertyAndAccessorWithSameName.ts | 1 + .../propertyAndFunctionWithSameName.ts | 1 + .../propertyMemberDeclarations/twoAccessorsWithSameName.ts | 1 + .../propertyMemberDeclarations/twoAccessorsWithSameName2.ts | 1 + tests/cases/conformance/declarationEmit/nullPropertyName.ts | 1 + .../decorators/class/accessor/decoratorOnClassAccessor3.ts | 1 + .../decorators/class/accessor/decoratorOnClassAccessor6.ts | 1 + .../parameter/decoratorOnClassConstructorParameter4.ts | 1 + .../decorators/class/method/decoratorOnClassMethod16.ts | 1 + .../decorators/class/method/decoratorOnClassMethod17.ts | 1 + .../decorators/class/method/decoratorOnClassMethod18.ts | 1 + .../decorators/class/method/decoratorOnClassMethod19.ts | 1 + .../decorators/class/method/decoratorOnClassMethod3.ts | 1 + .../decorators/class/method/decoratorOnClassMethodOverload1.ts | 1 + .../decorators/class/method/decoratorOnClassMethodOverload2.ts | 1 + .../decorators/class/property/decoratorOnClassProperty1.ts | 1 + .../decorators/class/property/decoratorOnClassProperty10.ts | 1 + .../decorators/class/property/decoratorOnClassProperty11.ts | 1 + .../decorators/class/property/decoratorOnClassProperty12.ts | 1 + .../decorators/class/property/decoratorOnClassProperty13.ts | 1 + .../decorators/class/property/decoratorOnClassProperty2.ts | 1 + .../decorators/class/property/decoratorOnClassProperty3.ts | 1 + .../decorators/class/property/decoratorOnClassProperty6.ts | 1 + .../decorators/class/property/decoratorOnClassProperty7.ts | 1 + .../conformance/decorators/invalid/decoratorOnImportEquals2.ts | 1 + tests/cases/conformance/decorators/invalid/decoratorOnUsing.ts | 1 + tests/cases/conformance/decorators/missingDecoratorType.ts | 1 + .../emitter.asyncGenerators.classMethods.es2015.ts | 1 + .../emitter.asyncGenerators.functionDeclarations.es2015.ts | 1 + .../emitter.asyncGenerators.functionExpressions.es2015.ts | 1 + .../emitter.asyncGenerators.objectLiteralMethods.es2015.ts | 1 + .../emitter.asyncGenerators.classMethods.es2018.ts | 1 + .../emitter.asyncGenerators.functionDeclarations.es2018.ts | 1 + .../emitter.asyncGenerators.functionExpressions.es2018.ts | 1 + .../emitter.asyncGenerators.objectLiteralMethods.es2018.ts | 1 + .../asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts | 1 + .../emitter.asyncGenerators.functionDeclarations.es5.ts | 1 + .../emitter.asyncGenerators.functionExpressions.es5.ts | 1 + .../emitter.asyncGenerators.objectLiteralMethods.es5.ts | 1 + tests/cases/conformance/enums/awaitAndYield.ts | 1 + tests/cases/conformance/enums/enumBasics.ts | 1 + tests/cases/conformance/es2019/globalThisUnknown.ts | 1 + .../conformance/es2021/logicalAssignment/logicalAssignment10.ts | 1 + tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts | 1 + tests/cases/conformance/es6/Symbols/symbolDeclarationEmit3.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty10.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty11.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty12.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty13.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty14.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty15.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty16.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty19.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty39.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty40.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty41.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty42.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty48.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty49.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty56.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty57.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty8.ts | 1 + tests/cases/conformance/es6/Symbols/symbolProperty9.ts | 1 + tests/cases/conformance/es6/Symbols/symbolType14.ts | 1 + tests/cases/conformance/es6/Symbols/symbolType17.ts | 1 + tests/cases/conformance/es6/Symbols/symbolType18.ts | 1 + .../es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts | 1 + .../es6/computedProperties/computedPropertyNames11_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames11_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames16_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames16_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames17_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames17_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames20_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames20_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames2_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames2_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames36_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames36_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames37_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames37_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames38_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames38_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames39_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames39_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames3_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames3_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames40_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames40_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames41_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames41_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames42_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames42_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames43_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames43_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames44_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames44_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames45_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames45_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames49_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames49_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames50_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames50_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames5_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames5_ES6.ts | 1 + .../es6/computedProperties/computedPropertyNames9_ES5.ts | 1 + .../es6/computedProperties/computedPropertyNames9_ES6.ts | 1 + .../computedPropertyNamesDeclarationEmit1_ES5.ts | 1 + .../computedPropertyNamesDeclarationEmit1_ES6.ts | 1 + .../computedPropertyNamesDeclarationEmit2_ES5.ts | 1 + .../computedPropertyNamesDeclarationEmit2_ES6.ts | 1 + .../computedPropertyNamesDeclarationEmit5_ES5.ts | 1 + .../computedPropertyNamesDeclarationEmit5_ES6.ts | 1 + .../computedProperties/computedPropertyNamesOnOverloads_ES5.ts | 1 + .../computedProperties/computedPropertyNamesOnOverloads_ES6.ts | 1 + .../decorators/class/property/decoratorOnClassProperty1.es6.ts | 1 + .../conformance/es6/destructuring/declarationInAmbientContext.ts | 1 + .../es6/destructuring/declarationWithNoInitializer.ts | 1 + .../conformance/es6/destructuring/declarationsAndAssignments.ts | 1 + .../destructuringArrayBindingPatternAndAssignment3.ts | 1 + .../conformance/es6/destructuring/destructuringInFunctionType.ts | 1 + .../es6/destructuring/destructuringWithLiteralInitializers.ts | 1 + .../es6/destructuring/emptyArrayBindingPatternParameter02.ts | 1 + .../es6/destructuring/emptyArrayBindingPatternParameter03.ts | 1 + .../es6/destructuring/emptyObjectBindingPatternParameter02.ts | 1 + .../es6/destructuring/emptyObjectBindingPatternParameter03.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern10.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern11.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern12.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern13.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern14.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern15.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern16.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern17.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern18.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern19.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern20.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern25.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern3.ts | 1 + .../conformance/es6/destructuring/iterableArrayPattern30.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern4.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern5.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern6.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern7.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern8.ts | 1 + .../cases/conformance/es6/destructuring/iterableArrayPattern9.ts | 1 + .../es6/destructuring/restElementWithNullInitializer.ts | 1 + .../es6/functionDeclarations/FunctionDeclaration2_es6.ts | 1 + .../es6/functionDeclarations/FunctionDeclaration9_es6.ts | 1 + .../es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts | 1 + .../es6/moduleExportsSystem/topLevelVarHoistingSystem.ts | 1 + .../conformance/es6/modules/defaultExportWithOverloads01.ts | 1 + .../cases/conformance/es6/modules/defaultExportsCannotMerge04.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports1-amd.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports1-es6.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports1.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports3-amd.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports3-es6.ts | 1 + tests/cases/conformance/es6/modules/exportsAndImports3.ts | 1 + tests/cases/conformance/es6/newTarget/invalidNewTarget.es5.ts | 1 + tests/cases/conformance/es6/newTarget/invalidNewTarget.es6.ts | 1 + .../es6/propertyAccess/propertyAccessNumericLiterals.es6.ts | 1 + .../objectLiteralShorthandProperties.ts | 1 + .../objectLiteralShorthandPropertiesES6.ts | 1 + ...tLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts | 1 + ...bjectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts | 1 + .../objectLiteralShorthandPropertiesErrorWithModule.ts | 1 + .../objectLiteralShorthandPropertiesWithModule.ts | 1 + .../objectLiteralShorthandPropertiesWithModuleES6.ts | 1 + tests/cases/conformance/es6/spread/arrayLiteralSpread.ts | 1 + .../conformance/es6/spread/arrayLiteralSpreadES5iterable.ts | 1 + .../es6/variableDeclarations/VariableDeclaration2_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression13_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression3_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression4_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldExpression6_es6.ts | 1 + .../conformance/es6/yieldExpressions/YieldStarExpression4_es6.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck31.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck36.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck37.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck38.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck39.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck40.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck41.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck43.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck45.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck46.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck55.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck56.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck57.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck58.ts | 1 + .../conformance/es6/yieldExpressions/generatorTypeCheck60.ts | 1 + .../compoundExponentiationAssignmentLHSIsValue.ts | 1 + tests/cases/conformance/es7/trailingCommasInBindingPatterns.ts | 1 + .../es7/trailingCommasInFunctionParametersAndArguments.ts | 1 + .../esDecorators-classDeclaration-exportModifier.2.ts | 1 + .../conformance/esDecorators/esDecorators-privateFieldAccess.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata1.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata2.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata3.ts | 1 + .../conformance/esDecorators/metadata/esDecoratorsMetadata4.ts | 1 + tests/cases/conformance/expressions/asOperator/asOpEmitParens.ts | 1 + tests/cases/conformance/expressions/asOperator/asOperatorASI.ts | 1 + .../expressions/assignmentOperator/assignmentLHSIsValue.ts | 1 + .../assignmentOperator/compoundAssignmentLHSIsReference.ts | 1 + .../assignmentOperator/compoundAssignmentLHSIsValue.ts | 1 + .../additionOperator/additionOperatorWithAnyAndEveryType.ts | 1 + .../additionOperator/additionOperatorWithInvalidOperands.ts | 1 + .../comparisonOperatorWithSubtypeObjectOnProperty.ts | 1 + .../binaryOperators/inOperator/inOperatorWithInvalidOperands.ts | 1 + .../binaryOperators/inOperator/inOperatorWithValidOperands.ts | 1 + .../logicalAndOperator/logicalAndOperatorWithEveryType.ts | 1 + .../logicalOrOperator/logicalOrOperatorWithEveryType.ts | 1 + .../commaOperator/commaOperatorWithSecondOperandAnyType.ts | 1 + .../expressions/contextualTyping/generatedContextualTyping.ts | 1 + .../contextualTyping/parenthesizedContexualTyping1.ts | 1 + .../conformance/expressions/functionCalls/callWithSpreadES6.ts | 1 + .../conformance/expressions/functionCalls/grammarAmbiguities.ts | 1 + .../cases/conformance/expressions/functionCalls/newWithSpread.ts | 1 + .../conformance/expressions/functionCalls/newWithSpreadES5.ts | 1 + .../conformance/expressions/functionCalls/newWithSpreadES6.ts | 1 + .../conformance/expressions/functionCalls/overloadResolution.ts | 1 + .../functionCalls/overloadResolutionClassConstructors.ts | 1 + .../expressions/functionCalls/overloadResolutionConstructors.ts | 1 + .../functionCalls/typeArgumentInferenceConstructSignatures.ts | 1 + .../functionCalls/typeArgumentInferenceWithObjectLiteral.ts | 1 + .../conformance/expressions/functions/arrowFunctionContexts.ts | 1 + .../expressions/functions/arrowFunctionExpressions.ts | 1 + .../contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts | 1 + .../conformance/expressions/functions/contextuallyTypedIife.ts | 1 + .../expressions/newOperator/newOperatorConformance.ts | 1 + .../conformance/expressions/newOperator/newOperatorErrorCases.ts | 1 + .../nullishCoalescingOperatorInAsyncGenerator.ts | 1 + .../nullishCoalescingOperatorInParameterBindingPattern.2.ts | 1 + .../nullishCoalescingOperatorInParameterBindingPattern.ts | 1 + .../nullishCoalescingOperatorInParameterInitializer.2.ts | 1 + .../nullishCoalescingOperatorInParameterInitializer.ts | 1 + .../expressions/objectLiterals/objectLiteralGettersAndSetters.ts | 1 + .../optionalChainingInParameterBindingPattern.2.ts | 1 + .../optionalChainingInParameterBindingPattern.ts | 1 + .../optionalChaining/optionalChainingInParameterInitializer.2.ts | 1 + .../conformance/expressions/propertyAccess/propertyAccess.ts | 1 + .../expressions/propertyAccess/propertyAccessNumericLiterals.ts | 1 + .../cases/conformance/expressions/superCalls/errorSuperCalls.ts | 1 + .../expressions/superPropertyAccess/errorSuperPropertyAccess.ts | 1 + .../superPropertyAccess/superPropertyAccessNoError.ts | 1 + .../conformance/expressions/thisKeyword/thisInInvalidContexts.ts | 1 + .../thisKeyword/thisInInvalidContextsExternalModule.ts | 1 + .../conformance/expressions/thisKeyword/typeOfThisGeneral.ts | 1 + .../conformance/expressions/typeAssertions/typeAssertions.ts | 1 + .../conformance/expressions/typeGuards/typeGuardFunction.ts | 1 + .../expressions/typeGuards/typeGuardFunctionGenerics.ts | 1 + .../expressions/typeGuards/typeGuardFunctionOfFormThis.ts | 1 + .../expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts | 1 + .../expressions/typeGuards/typeGuardOfFormExpr1AndExpr2.ts | 1 + .../expressions/typeGuards/typeGuardOfFormExpr1OrExpr2.ts | 1 + .../bitwiseNotOperator/bitwiseNotOperatorWithAnyOtherType.ts | 1 + .../decrementOperator/decrementOperatorWithAnyOtherType.ts | 1 + .../decrementOperatorWithAnyOtherTypeInvalidOperations.ts | 1 + .../decrementOperatorWithEnumTypeInvalidOperations.ts | 1 + .../deleteOperator/deleteOperatorWithAnyOtherType.ts | 1 + .../incrementOperator/incrementOperatorWithAnyOtherType.ts | 1 + .../incrementOperatorWithAnyOtherTypeInvalidOperations.ts | 1 + .../unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts | 1 + .../typeofOperator/typeofOperatorInvalidOperations.ts | 1 + .../unaryOperators/voidOperator/voidOperatorInvalidOperations.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithBooleanType.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithEnumType.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithNumberType.ts | 1 + .../unaryOperators/voidOperator/voidOperatorWithStringType.ts | 1 + .../conformance/expressions/valuesAndReferences/assignments.ts | 1 + .../externalModules/es6/es6modulekindWithES5Target6.ts | 1 + .../externalModules/esnext/esnextmodulekindWithES5Target6.ts | 1 + tests/cases/conformance/externalModules/exportAssignTypes.ts | 1 + .../externalModules/exportAssignmentCircularModules.ts | 1 + .../externalModules/exportNonInitializedVariablesAMD.ts | 1 + .../externalModules/exportNonInitializedVariablesCommonJS.ts | 1 + .../externalModules/exportNonInitializedVariablesES6.ts | 1 + .../externalModules/exportNonInitializedVariablesSystem.ts | 1 + .../externalModules/exportNonInitializedVariablesUMD.ts | 1 + .../conformance/externalModules/initializersInDeclarations.ts | 1 + tests/cases/conformance/externalModules/topLevelAmbientModule.ts | 1 + tests/cases/conformance/externalModules/topLevelAwait.1.ts | 1 + tests/cases/conformance/externalModules/topLevelAwait.2.ts | 1 + tests/cases/conformance/externalModules/topLevelAwait.3.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.1.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitErrors.10.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitErrors.11.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitErrors.12.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.2.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.3.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.4.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.5.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.6.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.7.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.8.ts | 1 + tests/cases/conformance/externalModules/topLevelAwaitErrors.9.ts | 1 + .../cases/conformance/externalModules/topLevelAwaitNonModule.ts | 1 + tests/cases/conformance/externalModules/topLevelFileModule.ts | 1 + .../conformance/externalModules/topLevelFileModuleMissing.ts | 1 + .../externalModules/topLevelModuleDeclarationAndFile.ts | 1 + tests/cases/conformance/externalModules/umd-errors.ts | 1 + tests/cases/conformance/fixSignatureCaching.ts | 1 + .../cases/conformance/functions/functionImplementationErrors.ts | 1 + tests/cases/conformance/functions/functionImplementations.ts | 1 + tests/cases/conformance/functions/functionNameConflicts.ts | 1 + tests/cases/conformance/functions/functionOverloadErrors.ts | 1 + .../cases/conformance/functions/functionOverloadErrorsSyntax.ts | 1 + .../functions/functionParameterObjectRestAndInitializers.ts | 1 + .../functions/functionWithUseStrictAndSimpleParameterList.ts | 1 + .../functionWithUseStrictAndSimpleParameterList_es2016.ts | 1 + .../functions/parameterInitializersBackwardReferencing.ts | 1 + .../functions/parameterInitializersForwardReferencing.2.ts | 1 + .../functions/parameterInitializersForwardReferencing.ts | 1 + .../functions/parameterInitializersForwardReferencing1_es6.ts | 1 + ...MergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts | 1 + ...nalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts | 1 + ...ParameterConstraintsClassHeritageListMemberTypeAnnotations.ts | 1 + ...portInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts | 1 + .../exportDeclarations/NonInitializedExportInInternalModule.ts | 1 + .../conformance/jsdoc/callOfPropertylessConstructorFunction.ts | 1 + tests/cases/conformance/jsdoc/callbackTag2.ts | 1 + .../jsdoc/checkJsdocParamOnVariableDeclaredFunctionExpression.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag12.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypeTag5.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypeTag6.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypeTag7.ts | 1 + tests/cases/conformance/jsdoc/checkJsdocTypedefOnlySourceFile.ts | 1 + .../jsdoc/declarations/jsDeclarationsClassAccessor.ts | 1 + .../jsdoc/declarations/jsDeclarationsClassLeadingOptional.ts | 1 + .../jsdoc/declarations/jsDeclarationsDocCommentsOnConsts.ts | 1 + .../conformance/jsdoc/declarations/jsDeclarationsEnumTag.ts | 1 + .../jsdoc/declarations/jsDeclarationsExportedClassAliases.ts | 1 + .../jsdoc/declarations/jsDeclarationsFunctionJSDoc.ts | 1 + .../jsdoc/declarations/jsDeclarationsFunctionLikeClasses2.ts | 1 + .../conformance/jsdoc/declarations/jsDeclarationsGetterSetter.ts | 1 + .../jsdoc/declarations/jsDeclarationsMissingGenerics.ts | 1 + .../jsdoc/declarations/jsDeclarationsMissingTypeParameters.ts | 1 + .../declarations/jsDeclarationsNonIdentifierInferredNames.ts | 1 + tests/cases/conformance/jsdoc/enumTag.ts | 1 + tests/cases/conformance/jsdoc/enumTagCircularReference.ts | 1 + tests/cases/conformance/jsdoc/enumTagImported.ts | 1 + tests/cases/conformance/jsdoc/enumTagOnExports.ts | 1 + tests/cases/conformance/jsdoc/enumTagOnExports2.ts | 1 + tests/cases/conformance/jsdoc/enumTagUseBeforeDefCrash.ts | 1 + tests/cases/conformance/jsdoc/errorIsolation.ts | 1 + tests/cases/conformance/jsdoc/importTag24.ts | 1 + .../conformance/jsdoc/jsdocAccessibilityTagsDeclarations.ts | 1 + tests/cases/conformance/jsdoc/jsdocLinkTag8.ts | 1 + tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.ts | 1 + tests/cases/conformance/jsdoc/jsdocOuterTypeParameters2.ts | 1 + tests/cases/conformance/jsdoc/jsdocParamTag2.ts | 1 + tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTag.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTag2.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTag3.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTagDefault.ts | 1 + tests/cases/conformance/jsdoc/jsdocTemplateTagNameResolution.ts | 1 + tests/cases/conformance/jsdoc/overloadTag1.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject2.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject3.ts | 1 + .../conformance/jsdoc/paramTagNestedWithoutTopLevelObject4.ts | 1 + tests/cases/conformance/jsdoc/parseLinkTag.ts | 1 + tests/cases/conformance/jsdoc/syntaxErrors.ts | 1 + tests/cases/conformance/jsdoc/typedefInnerNamepaths.ts | 1 + tests/cases/conformance/jsx/jsxAttributeInitializer.ts | 1 + tests/cases/conformance/jsx/jsxUnclosedParserRecovery.ts | 1 + tests/cases/conformance/jsx/tsxEmitSpreadAttribute.ts | 1 + .../conformance/moduleResolution/extensionLoadingPriority.ts | 1 + tests/cases/conformance/moduleResolution/packageJsonMain.ts | 1 + .../moduleResolution/packageJsonMain_isNonRecursive.ts | 1 + tests/cases/conformance/moduleResolution/untypedModuleImport.ts | 1 + .../conformance/moduleResolution/untypedModuleImport_allowJs.ts | 1 + .../moduleResolution/untypedModuleImport_vsAmbient.ts | 1 + .../moduleResolution/untypedModuleImport_withAugmentation.ts | 1 + .../node/allowJs/nodeModulesAllowJsImportAssignment.ts | 1 + .../conformance/node/allowJs/nodeModulesAllowJsTopLevelAwait.ts | 1 + tests/cases/conformance/node/nodeModulesImportAssignments.ts | 1 + .../nodeModulesImportAttributesTypeModeDeclarationEmitErrors.ts | 1 + .../node/nodeModulesImportTypeModeDeclarationEmitErrors1.ts | 1 + tests/cases/conformance/node/nodeModulesTopLevelAwait.ts | 1 + tests/cases/conformance/override/override_js2.ts | 1 + tests/cases/conformance/override/override_js3.ts | 1 + .../parser.asyncGenerators.classMethods.es2018.ts | 1 + .../parser.asyncGenerators.functionDeclarations.es2018.ts | 1 + .../parser.asyncGenerators.functionExpressions.es2018.ts | 1 + .../parser.asyncGenerators.objectLiteralMethods.es2018.ts | 1 + .../parser/ecmascript3/Accessors/parserES3Accessors2.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors2.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors4.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors6.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors8.ts | 1 + .../conformance/parser/ecmascript5/Accessors/parserAccessors9.ts | 1 + .../Accessors/parserSetAccessorWithTypeAnnotation1.ts | 1 + .../Accessors/parserSetAccessorWithTypeParameters1.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression10.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression11.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression12.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression15.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression16.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression17.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression8.ts | 1 + .../ArrowFunctionExpressions/parserArrowFunctionExpression9.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration10.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration12.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration13.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration14.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration15.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration16.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration17.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration19.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration20.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration21.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration22.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration26.ts | 1 + .../ecmascript5/ClassDeclarations/parserClassDeclaration9.ts | 1 + .../ComputedPropertyNames/parserES5ComputedPropertyName11.ts | 1 + .../ComputedPropertyNames/parserES5ComputedPropertyName7.ts | 1 + .../AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts | 1 + .../AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts | 1 + .../AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts | 1 + .../ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts | 1 + .../ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts | 1 + .../parserErrorRecovery_IncompleteMemberVariable2.ts | 1 + .../ParameterLists/parserErrorRecovery_ParameterList1.ts | 1 + .../ParameterLists/parserErrorRecovery_ParameterList2.ts | 1 + .../ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts | 1 + .../ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts | 1 + .../ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts | 1 + .../ErrorRecovery/parserModifierOnPropertySignature1.ts | 1 + .../ErrorRecovery/parserModifierOnPropertySignature2.ts | 1 + .../parserStatementIsNotAMemberVariableDeclaration1.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration1.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration4.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration5.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration6.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration7.ts | 1 + .../FunctionDeclarations/parserFunctionDeclaration8.ts | 1 + .../cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts | 1 + .../ecmascript5/Generics/parserCastVersusArrowFunction1.ts | 1 + .../IndexMemberDeclarations/parserIndexMemberDeclaration10.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts | 1 + .../parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts | 1 + .../parserMemberAccessorDeclaration13.ts | 1 + .../parserMemberAccessorDeclaration16.ts | 1 + .../parserMemberAccessorDeclaration18.ts | 1 + .../parserMemberAccessorDeclaration4.ts | 1 + .../parserMemberAccessorDeclaration5.ts | 1 + .../parserMemberAccessorDeclaration6.ts | 1 + .../parserMemberAccessorDeclaration8.ts | 1 + .../parserMemberFunctionDeclaration2.ts | 1 + .../parserMemberVariableDeclaration1.ts | 1 + .../parserMemberVariableDeclaration2.ts | 1 + .../parserMemberVariableDeclaration3.ts | 1 + .../parserMemberVariableDeclaration4.ts | 1 + .../parserMemberVariableDeclaration5.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature1.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature10.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature11.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature12.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature2.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature3.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature4.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature5.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature6.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature7.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature8.ts | 1 + .../ecmascript5/MethodSignatures/parserMethodSignature9.ts | 1 + .../ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts | 1 + .../parser/ecmascript5/ObjectTypes/parserObjectType3.ts | 1 + .../parser/ecmascript5/ObjectTypes/parserObjectType4.ts | 1 + .../parser/ecmascript5/ObjectTypes/parserObjectType5.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList1.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList10.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList12.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList13.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList14.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList15.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList16.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList17.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList3.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList4.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList5.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList6.ts | 1 + .../parser/ecmascript5/ParameterLists/parserParameterList9.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature1.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature10.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature11.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature12.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature2.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature5.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature6.ts | 1 + .../ecmascript5/PropertySignatures/parserPropertySignature9.ts | 1 + .../cases/conformance/parser/ecmascript5/Protected/Protected8.ts | 1 + .../cases/conformance/parser/ecmascript5/Protected/Protected9.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509534.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509546.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509546_1.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509546_2.ts | 1 + .../parser/ecmascript5/RegressionTests/parser509630.ts | 1 + .../parser/ecmascript5/RegressionTests/parser642331.ts | 1 + .../parser/ecmascript5/RegressionTests/parser642331_1.ts | 1 + .../parser/ecmascript5/RegressionTests/parser643728.ts | 1 + .../ecmascript5/RegularExpressions/parserRegularExpression6.ts | 1 + .../parserRegularExpressionDivideAmbiguity6.ts | 1 + .../parser/ecmascript5/Statements/parserES5ForOfStatement18.ts | 1 + .../parser/ecmascript5/Statements/parserES5ForOfStatement19.ts | 1 + .../parser/ecmascript5/Statements/parserES5ForOfStatement20.ts | 1 + .../parser/ecmascript5/Statements/parserForStatement2.ts | 1 + .../parser/ecmascript5/StrictMode/parserStrictMode10.ts | 1 + .../parser/ecmascript5/StrictMode/parserStrictMode11.ts | 1 + .../parser/ecmascript5/StrictMode/parserStrictMode12.ts | 1 + .../VariableDeclarations/parserVariableDeclaration4.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts | 1 + tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts | 1 + .../parser/ecmascript5/parserUsingConstructorAsIdentifier.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName11.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName17.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName19.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName24.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName25.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName26.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName27.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName33.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName7.ts | 1 + .../ComputedPropertyNames/parserComputedPropertyName8.ts | 1 + .../parser/ecmascript6/Iterators/parserForOfStatement18.ts | 1 + .../parser/ecmascript6/Iterators/parserForOfStatement19.ts | 1 + .../parser/ecmascript6/Iterators/parserForOfStatement20.ts | 1 + .../salsa/binderUninitializedModuleExportsAssignment.ts | 1 + .../conformance/salsa/circularMultipleAssignmentDeclaration.ts | 1 + tests/cases/conformance/salsa/commonJSAliasedExport.ts | 1 + .../cases/conformance/salsa/conflictingCommonJSES2015Exports.ts | 1 + tests/cases/conformance/salsa/constructorFunctions.ts | 1 + tests/cases/conformance/salsa/constructorFunctions2.ts | 1 + tests/cases/conformance/salsa/expandoOnAlias.ts | 1 + tests/cases/conformance/salsa/exportNestedNamespaces2.ts | 1 + .../conformance/salsa/inferringClassMembersFromAssignments8.ts | 1 + tests/cases/conformance/salsa/jsObjectsMarkedAsOpenEnded.ts | 1 + .../salsa/mixedPropertyElementAccessAssignmentDeclaration.ts | 1 + tests/cases/conformance/salsa/moduleExportAlias2.ts | 1 + tests/cases/conformance/salsa/moduleExportAssignment2.ts | 1 + tests/cases/conformance/salsa/moduleExportAssignment4.ts | 1 + tests/cases/conformance/salsa/privateIdentifierExpando.ts | 1 + .../conformance/salsa/propertyAssignmentOnImportedSymbol.ts | 1 + .../conformance/salsa/propertyAssignmentOnParenthesizedNumber.ts | 1 + .../salsa/propertyAssignmentOnUnresolvedImportedSymbol.ts | 1 + .../cases/conformance/salsa/propertyAssignmentUseParentType1.ts | 1 + .../cases/conformance/salsa/propertyAssignmentUseParentType2.ts | 1 + .../cases/conformance/salsa/propertyAssignmentUseParentType3.ts | 1 + tests/cases/conformance/salsa/topLevelThisAssignment.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment10.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment10_1.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment11.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment12.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment13.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment14.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment15.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment16.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment17.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment18.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment2.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment20.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment21.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment23.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment24.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment25.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment27.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment28.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment3.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment31.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment32.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment33.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment35.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment4.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment40.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment5.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment6.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment7.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment8.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment9.ts | 1 + tests/cases/conformance/salsa/typeFromPropertyAssignment9_1.ts | 1 + .../conformance/salsa/typeFromPropertyAssignmentOutOfOrder.ts | 1 + .../conformance/salsa/typeFromPropertyAssignmentWithExport.ts | 1 + tests/cases/conformance/salsa/typeFromPrototypeAssignment4.ts | 1 + .../cases/conformance/salsa/unannotatedParametersAreOptional.ts | 1 + .../statements/VariableStatements/everyTypeWithInitializer.ts | 1 + .../statements/VariableStatements/recursiveInitializer.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.1.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.10.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.11.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.12.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.13.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.14.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.15.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.16.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.17.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.3.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.5.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.7.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.8.ts | 1 + .../usingDeclarations/awaitUsingDeclarations.9.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInFor.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForIn.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.1.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.2.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.3.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.4.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsInForOf.5.ts | 1 + .../usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts | 1 + .../awaitUsingDeclarationsWithIteratorObject.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.1.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.10.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.11.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.12.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.13.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.14.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.15.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.16.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.17.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.3.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.5.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.7.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.8.ts | 1 + .../VariableStatements/usingDeclarations/usingDeclarations.9.ts | 1 + .../usingDeclarations/usingDeclarationsInFor.ts | 1 + .../usingDeclarations/usingDeclarationsInForAwaitOf.ts | 1 + .../usingDeclarations/usingDeclarationsInForIn.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.1.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.2.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.3.ts | 1 + .../usingDeclarations/usingDeclarationsInForOf.4.ts | 1 + .../usingDeclarationsWithESClassDecorators.1.ts | 1 + .../usingDeclarationsWithESClassDecorators.10.ts | 1 + .../usingDeclarationsWithESClassDecorators.11.ts | 1 + .../usingDeclarationsWithESClassDecorators.12.ts | 1 + .../usingDeclarationsWithESClassDecorators.2.ts | 1 + .../usingDeclarationsWithESClassDecorators.3.ts | 1 + .../usingDeclarationsWithESClassDecorators.4.ts | 1 + .../usingDeclarationsWithESClassDecorators.5.ts | 1 + .../usingDeclarationsWithESClassDecorators.6.ts | 1 + .../usingDeclarationsWithESClassDecorators.7.ts | 1 + .../usingDeclarationsWithESClassDecorators.8.ts | 1 + .../usingDeclarationsWithESClassDecorators.9.ts | 1 + .../usingDeclarations/usingDeclarationsWithImportHelpers.ts | 1 + .../usingDeclarations/usingDeclarationsWithIteratorObject.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.1.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.10.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.11.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.12.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.2.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.3.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.4.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.5.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.6.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.7.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.8.ts | 1 + .../usingDeclarationsWithLegacyClassDecorators.9.ts | 1 + .../statements/breakStatements/forInBreakStatements.ts | 1 + .../statements/continueStatements/forInContinueStatements.ts | 1 + .../conformance/statements/for-inStatements/for-inStatements.ts | 1 + .../statements/for-inStatements/for-inStatementsArray.ts | 1 + .../for-inStatements/for-inStatementsAsyncIdentifier.ts | 1 + .../for-inStatements/for-inStatementsDestructuring3.ts | 1 + .../for-inStatements/for-inStatementsDestructuring4.ts | 1 + .../statements/for-inStatements/for-inStatementsInvalid.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of14.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of15.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of16.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of18.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of19.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of2.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of20.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of21.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of22.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of23.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of24.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of25.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of26.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of27.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of28.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of29.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of4.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of5.ts | 1 + .../cases/conformance/statements/for-ofStatements/ES5For-of6.ts | 1 + .../statements/throwStatements/throwInEnclosingStatements.ts | 1 + .../conformance/statements/throwStatements/throwStatements.ts | 1 + .../types/any/narrowExceptionVariableInCatchClause.ts | 1 + .../conformance/types/any/narrowFromAnyWithTypePredicate.ts | 1 + .../types/asyncGenerators/types.asyncGenerators.es2018.1.ts | 1 + .../types/asyncGenerators/types.asyncGenerators.es2018.2.ts | 1 + .../partiallyAnnotatedFunctionInferenceError.ts | 1 + .../types/intersection/operatorsAndIntersectionTypes.ts | 1 + tests/cases/conformance/types/localTypes/localTypes4.ts | 1 + tests/cases/conformance/types/mapped/mappedTypeProperties.ts | 1 + .../types/members/augmentedTypeAssignmentCompatIndexSignature.ts | 1 + .../types/members/augmentedTypeBracketAccessIndexSignature.ts | 1 + .../cases/conformance/types/members/classWithPrivateProperty.ts | 1 + .../conformance/types/members/classWithProtectedProperty.ts | 1 + tests/cases/conformance/types/members/classWithPublicProperty.ts | 1 + tests/cases/conformance/types/members/duplicatePropertyNames.ts | 1 + .../types/members/objectTypeHidingMembersOfExtendedObject.ts | 1 + ...objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts | 1 + ...tTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts | 1 + .../types/members/objectTypeWithDuplicateNumericProperty.ts | 1 + .../members/objectTypeWithStringIndexerHidingObjectIndexer.ts | 1 + .../objectTypeWithStringNamedPropertyOfIllegalCharacters.ts | 1 + .../types/members/typesWithSpecializedCallSignatures.ts | 1 + .../types/members/typesWithSpecializedConstructSignatures.ts | 1 + .../namedTypes/genericInstantiationEquivalentToObjectLiteral.ts | 1 + .../types/nonPrimitive/nonPrimitiveIndexingWithForIn.ts | 1 + .../nonPrimitive/nonPrimitiveIndexingWithForInNoImplicitAny.ts | 1 + .../callSignatureWithOptionalParameterAndInitializer.ts | 1 + .../callSignatures/callSignatureWithoutAnnotationsOrBody.ts | 1 + .../callSignatureWithoutReturnTypeAnnotationInference.ts | 1 + .../callSignatures/callSignaturesThatDifferOnlyByReturnType.ts | 1 + .../callSignatures/callSignaturesThatDifferOnlyByReturnType2.ts | 1 + .../callSignatures/callSignaturesThatDifferOnlyByReturnType3.ts | 1 + .../callSignaturesWithAccessibilityModifiersOnParameters.ts | 1 + .../callSignatures/callSignaturesWithDuplicateParameters.ts | 1 + .../callSignatures/callSignaturesWithOptionalParameters.ts | 1 + .../callSignatures/callSignaturesWithOptionalParameters2.ts | 1 + .../callSignatures/callSignaturesWithParameterInitializers.ts | 1 + .../callSignatures/callSignaturesWithParameterInitializers2.ts | 1 + .../constructSignatureWithAccessibilityModifiersOnParameters.ts | 1 + .../constructSignatureWithAccessibilityModifiersOnParameters2.ts | 1 + .../objectTypeLiteral/callSignatures/identicalCallSignatures.ts | 1 + .../objectTypeLiteral/callSignatures/identicalCallSignatures2.ts | 1 + .../objectTypeLiteral/callSignatures/identicalCallSignatures3.ts | 1 + .../callSignatures/parametersWithNoAnnotationAreAny.ts | 1 + .../callSignatures/restParameterWithoutAnnotationIsAnyArray.ts | 1 + .../callSignatures/restParametersOfNonArrayTypes.ts | 1 + .../callSignatures/restParametersOfNonArrayTypes2.ts | 1 + .../callSignatures/restParametersWithArrayTypeAnnotations.ts | 1 + .../specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts | 1 + .../specializedSignatureIsSubtypeOfNonSpecializedSignature.ts | 1 + .../stringLiteralTypesInImplementationSignatures.ts | 1 + .../stringLiteralTypesInImplementationSignatures2.ts | 1 + .../numericIndexerConstrainsPropertyDeclarations.ts | 1 + .../numericIndexerConstrainsPropertyDeclarations2.ts | 1 + .../stringIndexerConstrainsPropertyDeclarations.ts | 1 + .../stringIndexerConstrainsPropertyDeclarations2.ts | 1 + .../methodSignatures/objectTypesWithOptionalProperties2.ts | 1 + .../propertySignatures/propertyNameWithoutTypeAnnotation.ts | 1 + .../propertySignatures/propertyNamesOfReservedWords.ts | 1 + .../types/primitives/stringLiteral/stringLiteralType.ts | 1 + tests/cases/conformance/types/rest/objectRest.ts | 1 + tests/cases/conformance/types/rest/objectRest2.ts | 1 + tests/cases/conformance/types/rest/objectRestAssignment.ts | 1 + tests/cases/conformance/types/rest/objectRestCatchES5.ts | 1 + tests/cases/conformance/types/rest/objectRestForOf.ts | 1 + tests/cases/conformance/types/rest/objectRestParameter.ts | 1 + tests/cases/conformance/types/rest/objectRestParameterES5.ts | 1 + .../cases/conformance/types/rest/objectRestPropertyMustBeLast.ts | 1 + tests/cases/conformance/types/rest/objectRestReadonly.ts | 1 + .../specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes.ts | 1 + .../specifyingTypes/typeLiterals/arrayTypeOfFunctionTypes2.ts | 1 + .../specifyingTypes/typeLiterals/functionLiteralForOverloads.ts | 1 + .../specifyingTypes/typeLiterals/functionLiteralForOverloads2.ts | 1 + .../types/specifyingTypes/typeLiterals/parenthesizedTypes.ts | 1 + .../specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts | 1 + .../types/specifyingTypes/typeQueries/typeQueryOnClass.ts | 1 + .../types/specifyingTypes/typeQueries/typeofClass2.ts | 1 + .../typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts | 1 + .../typeReferences/genericTypeReferenceWithoutTypeArgument3.ts | 1 + .../types/stringLiteral/stringLiteralTypesAndTuples01.ts | 1 + .../types/stringLiteral/stringLiteralTypesAsTags01.ts | 1 + .../types/stringLiteral/stringLiteralTypesAsTags02.ts | 1 + .../types/stringLiteral/stringLiteralTypesAsTags03.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes01.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes02.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes03.ts | 1 + .../types/stringLiteral/stringLiteralTypesInUnionTypes04.ts | 1 + .../stringLiteral/stringLiteralTypesInVariableDeclarations01.ts | 1 + .../types/stringLiteral/stringLiteralTypesOverloads01.ts | 1 + .../types/stringLiteral/stringLiteralTypesOverloads02.ts | 1 + .../types/stringLiteral/stringLiteralTypesTypePredicates01.ts | 1 + .../conformance/types/thisType/contextualThisTypeInJavascript.ts | 1 + tests/cases/conformance/types/thisType/thisTypeInFunctions.ts | 1 + tests/cases/conformance/types/thisType/thisTypeInFunctions3.ts | 1 + tests/cases/conformance/types/thisType/thisTypeInFunctions4.ts | 1 + .../conformance/types/thisType/thisTypeInFunctionsNegative.ts | 1 + tests/cases/conformance/types/tuple/named/namedTupleMembers.ts | 1 + .../conformance/types/tuple/named/namedTupleMembersErrors.ts | 1 + .../types/typeAliases/asiPreventsParsingAsTypeAlias02.ts | 1 + .../typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts | 1 + .../typeArgumentLists/functionConstraintSatisfaction.ts | 1 + .../typeArgumentLists/functionConstraintSatisfaction2.ts | 1 + .../typeArgumentLists/functionConstraintSatisfaction3.ts | 1 + .../instantiateNonGenericTypeWithTypeArguments.ts | 1 + .../typeParameterAsTypeParameterConstraintTransitively.ts | 1 + .../typeParameterAsTypeParameterConstraintTransitively2.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints2.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints3.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints4.ts | 1 + .../propertyAccessOnTypeParameterWithConstraints5.ts | 1 + .../propertyAccessOnTypeParameterWithoutConstraints.ts | 1 + .../assignmentCompatibility/anyAssignabilityInInheritance.ts | 1 + .../assignmentCompatibility/anyAssignableToEveryType2.ts | 1 + ...nmentCompatWithGenericCallSignaturesWithOptionalParameters.ts | 1 + .../assignmentCompatibility/assignmentCompatWithObjectMembers.ts | 1 + .../assignmentCompatWithObjectMembers2.ts | 1 + .../assignmentCompatWithObjectMembers3.ts | 1 + .../assignmentCompatWithObjectMembers4.ts | 1 + .../assignmentCompatWithObjectMembers5.ts | 1 + .../assignmentCompatWithObjectMembersAccessibility.ts | 1 + .../assignmentCompatWithObjectMembersNumericNames.ts | 1 + .../assignmentCompatWithObjectMembersOptionality.ts | 1 + .../assignmentCompatWithObjectMembersOptionality2.ts | 1 + .../assignmentCompatWithObjectMembersStringNumericNames.ts | 1 + .../assignmentCompatibility/enumAssignabilityInInheritance.ts | 1 + .../assignmentCompatibility/nullAssignableToEveryType.ts | 1 + .../assignmentCompatibility/nullAssignedToUndefined.ts | 1 + .../bestCommonType/heterogeneousArrayLiterals.ts | 1 + .../comparable/typeAssertionsWithIntersectionTypes01.ts | 1 + .../comparable/typeAssertionsWithUnionTypes01.ts | 1 + .../recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts | 1 + .../recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts | 1 + .../enumIsNotASubtypeOfAnythingButNumber.ts | 1 + .../nullIsSubtypeOfEverythingButUndefined.ts | 1 + .../subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts | 1 + .../typeRelationships/subtypesAndSuperTypes/subtypesOfAny.ts | 1 + .../typeRelationships/subtypesAndSuperTypes/subtypesOfUnion.ts | 1 + .../subtypesAndSuperTypes/subtypingWithCallSignatures4.ts | 1 + .../subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts | 1 + .../unionSubtypeIfEveryConstituentTypeIsSubtype.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentity.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentity2.ts | 1 + .../objectTypesIdentityWithCallSignatures.ts | 1 + .../objectTypesIdentityWithCallSignatures2.ts | 1 + .../objectTypesIdentityWithCallSignatures3.ts | 1 + .../objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts | 1 + ...objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts | 1 + .../objectTypesIdentityWithCallSignaturesWithOverloads.ts | 1 + .../objectTypesIdentityWithComplexConstraints.ts | 1 + .../objectTypesIdentityWithConstructSignatures.ts | 1 + .../objectTypesIdentityWithConstructSignatures2.ts | 1 + ...ctTypesIdentityWithConstructSignaturesDifferingParamCounts.ts | 1 + .../objectTypesIdentityWithGenericCallSignatures.ts | 1 + .../objectTypesIdentityWithGenericCallSignatures2.ts | 1 + ...pesIdentityWithGenericCallSignaturesDifferingByConstraints.ts | 1 + ...esIdentityWithGenericCallSignaturesDifferingByConstraints2.ts | 1 + ...esIdentityWithGenericCallSignaturesDifferingByConstraints3.ts | 1 + ...ypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts | 1 + ...pesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts | 1 + ...ntityWithGenericCallSignaturesDifferingTypeParameterCounts.ts | 1 + ...tityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts | 1 + ...entityWithGenericCallSignaturesDifferingTypeParameterNames.ts | 1 + ...objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts | 1 + ...bjectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts | 1 + ...bjectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts | 1 + ...entityWithGenericConstructSignaturesDifferingByConstraints.ts | 1 + ...ntityWithGenericConstructSignaturesDifferingByConstraints2.ts | 1 + ...ntityWithGenericConstructSignaturesDifferingByConstraints3.ts | 1 + ...dentityWithGenericConstructSignaturesDifferingByReturnType.ts | 1 + ...entityWithGenericConstructSignaturesDifferingByReturnType2.ts | 1 + ...WithGenericConstructSignaturesDifferingTypeParameterCounts.ts | 1 + ...yWithGenericConstructSignaturesDifferingTypeParameterNames.ts | 1 + ...tTypesIdentityWithGenericConstructSignaturesOptionalParams.ts | 1 + ...TypesIdentityWithGenericConstructSignaturesOptionalParams2.ts | 1 + ...TypesIdentityWithGenericConstructSignaturesOptionalParams3.ts | 1 + .../objectTypesIdentityWithNumericIndexers1.ts | 1 + .../objectTypesIdentityWithNumericIndexers2.ts | 1 + .../objectTypesIdentityWithNumericIndexers3.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithOptionality.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithPrivates.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithPrivates2.ts | 1 + .../typeAndMemberIdentity/objectTypesIdentityWithPublics.ts | 1 + .../objectTypesIdentityWithStringIndexers.ts | 1 + .../objectTypesIdentityWithStringIndexers2.ts | 1 + .../typeAndMemberIdentity/primtiveTypesAreIdentical.ts | 1 + .../typeParametersAreIdenticalToThemselves.ts | 1 + .../typeInference/genericCallTypeArgumentInference.ts | 1 + .../genericCallWithConstraintsTypeArgumentInference.ts | 1 + .../genericCallWithConstraintsTypeArgumentInference2.ts | 1 + .../typeInference/genericCallWithGenericSignatureArguments.ts | 1 + .../typeInference/genericCallWithGenericSignatureArguments2.ts | 1 + .../typeInference/genericCallWithGenericSignatureArguments3.ts | 1 + .../genericCallWithOverloadedFunctionTypedArguments.ts | 1 + .../genericCallWithOverloadedFunctionTypedArguments2.ts | 1 + .../types/typeRelationships/widenedTypes/arrayLiteralWidened.ts | 1 + .../types/typeRelationships/widenedTypes/objectLiteralWidened.ts | 1 + tests/cases/conformance/types/union/unionTypeReduction.ts | 1 + .../cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts | 1 + 2012 files changed, 2012 insertions(+) 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..441a21017280d 100644 --- a/tests/cases/compiler/redeclareParameterInCatchBlock.ts +++ b/tests/cases/compiler/redeclareParameterInCatchBlock.ts @@ -1,3 +1,4 @@ +// @strict: false // @useUnknownInCatchVariables: false // @target: es6 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..07d0a1dc601bd 100644 --- a/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts +++ b/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts @@ -1,3 +1,4 @@ +// @strict: false // @useUnknownInCatchVariables: false // @target: es2015 // @noEmitHelpers: true 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/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/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..330489b3144eb 100644 --- a/tests/cases/conformance/types/rest/objectRestCatchES5.ts +++ b/tests/cases/conformance/types/rest/objectRestCatchES5.ts @@ -1,3 +1,4 @@ +// @strict: false // @useUnknownInCatchVariables: false let a = 1, b = 2; 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 From f3da4d8c5243aeb50983e02f2aaf682b010630d2 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 15 Jan 2026 06:14:47 +0000 Subject: [PATCH 21/21] Accept baselines. --- .../declarationMapsEnableMapping_NoInline.js | 4 +++- .../declarationMapsEnableMapping_NoInlineSources.js | 4 +++- .../declarationMapsGeneratedMapsEnableMapping.js | 4 +++- .../declarationMapsGeneratedMapsEnableMapping2.js | 4 +++- .../declarationMapsGeneratedMapsEnableMapping3.js | 12 +++++++----- ...onMapsGoToDefinitionSameNameDifferentDirectory.js | 2 ++ 6 files changed, 21 insertions(+), 9 deletions(-) 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 d6592cc998a1a..9732d681e1617 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,