Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
177d13d
Update tests sensitive to CFA.
DanielRosenwasser Jan 13, 2026
8d4d9c9
Turn strict off in widening tests.
DanielRosenwasser Jan 13, 2026
3900589
Update tests with output sensitive to `strictNullChecks`.
DanielRosenwasser Jan 13, 2026
419e1e0
Some strictPropertyInitialization updates.
DanielRosenwasser Jan 13, 2026
c1dcad5
strictNullChecks updates.
DanielRosenwasser Jan 13, 2026
43d470e
Update baselines.
DanielRosenwasser Jan 13, 2026
1da4ff1
Adjust tests for `strictPropertyInitialization`.
DanielRosenwasser Jan 13, 2026
337bdfd
Accepted baselines.
DanielRosenwasser Jan 13, 2026
0bdb9db
Fix up any -> unknown in catch variables.
DanielRosenwasser Jan 13, 2026
fc4aa54
Accepted baselines.
DanielRosenwasser Jan 13, 2026
c632c6a
Turn off `strict`/`noImplicitAny` on some tests.
DanielRosenwasser Jan 13, 2026
614be3b
Add `@strict: false` to most tests that have changes in `.errors.txt`
DanielRosenwasser Jan 14, 2026
cfeb55e
Fix tests to use tsconfig options.
DanielRosenwasser Jan 14, 2026
6ffe210
Fix harness to correctly process `// @option: value` comments in test…
DanielRosenwasser Jan 14, 2026
e85286b
Accept baselines.
DanielRosenwasser Jan 14, 2026
6da6e50
Apply suggestion from @Copilot
DanielRosenwasser Jan 14, 2026
c3efba9
Go back to `\r?\n`.
DanielRosenwasser Jan 15, 2026
cb38573
Accepted baselines.
DanielRosenwasser Jan 15, 2026
da0cbdf
Revert "Add `@strict: false` to most tests that have changes in `.err…
DanielRosenwasser Jan 15, 2026
2a7a45e
Add `@strict: false` to most tests that have changes in `.errors.txt`…
DanielRosenwasser Jan 15, 2026
cd1bda0
Merge remote-tracking branch 'origin/correctlySplitLineEndingsInHarne…
DanielRosenwasser Jan 15, 2026
f3da4d8
Accept baselines.
DanielRosenwasser Jan 15, 2026
9993ab9
Merge remote-tracking branch 'origin/main' into prepareForNoImplicitAny
DanielRosenwasser Jan 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ instance.methodName({member: 12});
//// [/home/src/workspaces/project/tsconfig.json]
{
"compilerOptions": {
"strict": false,
"outDir": "./dist",
"inlineSourceMap": true,
"declaration": true,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ instance.methodName({member: 12});
//// [/home/src/workspaces/project/tsconfig.json]
{
"compilerOptions": {
"strict": false,
"outDir": "./dist",
"inlineSourceMap": true,
"inlineSources": true,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ instance.methodName({member: 12});
//// [/home/src/workspaces/project/tsconfig.json]
{
"compilerOptions": {
"strict": false,
"outDir": "./dist",
"declaration": true,
"declarationMap": true,
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down Expand Up @@ -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/",
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.",
Expand All @@ -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
Expand Down Expand Up @@ -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.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration10.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
constructor();
foo();
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration13.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
foo();
bar() { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration14.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
foo();
constructor();
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration15.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
foo();
constructor() { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration21.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
0();
1() { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration22.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
"foo"();
"bar"() { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration26.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
public const var export foo = 10;

Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ClassDeclaration9.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
foo();
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class C {
const
x = 10;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/accessorDeclarationEmitJs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @allowJs: true
// @checkJs: true
// @declaration: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @target: es5

class C {
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/accessorWithInitializer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @target: es5

class C {
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/accessorWithRestParam.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @target: es5

class C {
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/accessorWithoutBody1.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// @strict: false
// @target: ES5
var v = { get foo() }
1 change: 1 addition & 0 deletions tests/cases/compiler/accessorWithoutBody2.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// @strict: false
// @target: ES5
var v = { set foo(a) }
1 change: 1 addition & 0 deletions tests/cases/compiler/accessorsEmit.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class Result { }

class Test {
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/allowJscheckJsTypeParameterNoCrash.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @checkJs: true
// @allowJs: true
// @outDir: ./dist
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/allowSyntheticDefaultImports10.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @allowSyntheticDefaultImports: true
// @module: commonjs
// @Filename: b.d.ts
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/allowSyntheticDefaultImports7.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @module: system
// @Filename: b.d.ts
export function foo();
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/allowSyntheticDefaultImports8.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @allowSyntheticDefaultImports: false
// @module: system
// @Filename: b.d.ts
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/allowSyntheticDefaultImports9.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @allowSyntheticDefaultImports: true
// @module: commonjs
// @Filename: b.d.ts
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ambientClassDeclarationWithExtends.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @Filename: ambientClassDeclarationExtends_singleFile.ts
declare class A { }
declare class B extends A { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ambientClassOverloadForFunction.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// @strict: false
declare class foo{};
function foo() { return null; }
1 change: 1 addition & 0 deletions tests/cases/compiler/ambientFundule.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
declare function f();
declare namespace f { var x }
declare function f(x);
1 change: 1 addition & 0 deletions tests/cases/compiler/ambientWithStatements.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
declare namespace M {
break;
continue;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ambiguousGenericAssertion1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
function f<T>(x: T): T { return null; }
var r = <T>(x: T) => x;
var r2 = < <T>(x: T) => T>f; // valid
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ambiguousOverload.ts
Original file line number Diff line number Diff line change
@@ -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 };
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/ambiguousOverloadResolution.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class A { }
class B extends A { x: number; }

Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/amdLikeInputDeclarationEmit.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @declaration: true
// @declarationDir: definitions
// @emitDeclarationOnly: true
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
function Point(x, y) {

this.x = x;
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/anyIdenticalToItself.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
function foo(x: any);
function foo(x: any);
function foo(x: any, y: number) { }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/argumentsAsPropertyName.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// target: es5
type MyType = {
arguments: Array<string>
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/argumentsAsPropertyName2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// target: es5

function foo() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
var arguments = 10;
function foo(a) {
arguments = 10; /// This shouldnt be of type number and result in error.
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/argumentsObjectCreatesRestForJs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @checkJs: true
// @allowJs: true
// @Filename: main.js
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/argumentsPropertyNameInJsMode1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @allowJs: true
// @checkJs: true
// @declaration: true
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/argumentsPropertyNameInJsMode2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @allowJs: true
// @checkJs: true
// @declaration: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @checkJs: true
// @allowJs: true
// @target: es6
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
function foo(a, b, {c}): void {}

function bar(a, b, [c]): void {}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/arrayAssignmentTest2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
interface I1 {
IM1():void[];
}
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/arrayAssignmentTest4.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false


class C3 {
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/arrayFromAsync.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
// @module: esnext
// @target: esnext

Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/arrayIndexWithArrayFails.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
declare const arr1: (string | string[])[];
declare const arr2: number[];
const j = arr2[arr1[0]]; // should error
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
class A { a }
class B extends A { b }
class C<T> extends Array<T> { c }
Expand Down
1 change: 1 addition & 0 deletions tests/cases/compiler/arrowFunctionErrorSpan.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @strict: false
function f(a: () => number) { }

// oneliner
Expand Down
Loading
Loading