Skip to content

Commit 4c6e93b

Browse files
authored
Merge pull request microsoft#23878 from Microsoft/vfsBaselines
New vfs baselines follow-up
2 parents 0d7d75e + f67afa0 commit 4c6e93b

File tree

1,414 files changed

+4786
-4897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,414 files changed

+4786
-4897
lines changed

src/harness/fakes.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -289,27 +289,7 @@ namespace fakes {
289289
}
290290

291291
public getDefaultLibFileName(options: ts.CompilerOptions): string {
292-
// return vpath.resolve(this.getDefaultLibLocation(), ts.getDefaultLibFileName(options));
293-
294-
// TODO(rbuckton): This patches the baseline to replace lib.es5.d.ts with lib.d.ts.
295-
// This is only to make the PR for this change easier to read. A follow-up PR will
296-
// revert this change and accept the new baselines.
297-
// See https://github.com/Microsoft/TypeScript/pull/20763#issuecomment-352553264
298-
return vpath.resolve(this.getDefaultLibLocation(), getDefaultLibFileName(options));
299-
function getDefaultLibFileName(options: ts.CompilerOptions) {
300-
switch (options.target) {
301-
case ts.ScriptTarget.ESNext:
302-
case ts.ScriptTarget.ES2017:
303-
return "lib.es2017.d.ts";
304-
case ts.ScriptTarget.ES2016:
305-
return "lib.es2016.d.ts";
306-
case ts.ScriptTarget.ES2015:
307-
return "lib.es2015.d.ts";
308-
309-
default:
310-
return "lib.d.ts";
311-
}
312-
}
292+
return vpath.resolve(this.getDefaultLibLocation(), ts.getDefaultLibFileName(options));
313293
}
314294

315295
public getSourceFile(fileName: string, languageVersion: number): ts.SourceFile | undefined {

src/harness/projectsRunner.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,7 @@ namespace project {
219219
.map(output => utils.removeTestPathPrefixes(vpath.isAbsolute(output) ? vpath.relative(cwd, output, ignoreCase) : output));
220220

221221
const content = JSON.stringify(resolutionInfo, undefined, " ");
222-
223-
// TODO(rbuckton): This patches the baseline to replace lib.es5.d.ts with lib.d.ts.
224-
// This is only to make the PR for this change easier to read. A follow-up PR will
225-
// revert this change and accept the new baselines.
226-
// See https://github.com/Microsoft/TypeScript/pull/20763#issuecomment-352553264
227-
const patchedContent = content.replace(/lib\.es5\.d\.ts/g, "lib.d.ts");
228-
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => patchedContent);
222+
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => content);
229223
}
230224

231225
public verifyDiagnostics() {

src/harness/vfs.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,25 +1253,6 @@ namespace vfs {
12531253
node: Inode | undefined;
12541254
}
12551255

1256-
// TODO(rbuckton): This patches the baseline to replace lib.d.ts with lib.es5.d.ts.
1257-
// This is only to make the PR for this change easier to read. A follow-up PR will
1258-
// revert this change and accept the new baselines.
1259-
// See https://github.com/Microsoft/TypeScript/pull/20763#issuecomment-352553264
1260-
function patchResolver(host: FileSystemResolverHost, resolver: FileSystemResolver): FileSystemResolver {
1261-
const libFile = vpath.combine(host.getWorkspaceRoot(), "built/local/lib.d.ts");
1262-
const es5File = vpath.combine(host.getWorkspaceRoot(), "built/local/lib.es5.d.ts");
1263-
const stringComparer = host.useCaseSensitiveFileNames() ? vpath.compareCaseSensitive : vpath.compareCaseInsensitive;
1264-
return {
1265-
readdirSync: path => resolver.readdirSync(path),
1266-
statSync: path => resolver.statSync(fixPath(path)),
1267-
readFileSync: (path) => resolver.readFileSync(fixPath(path))
1268-
};
1269-
1270-
function fixPath(path: string) {
1271-
return stringComparer(path, libFile) === 0 ? es5File : path;
1272-
}
1273-
}
1274-
12751256
let builtLocalHost: FileSystemResolverHost | undefined;
12761257
let builtLocalCI: FileSystem | undefined;
12771258
let builtLocalCS: FileSystem | undefined;
@@ -1286,7 +1267,7 @@ namespace vfs {
12861267
const resolver = createResolver(host);
12871268
builtLocalCI = new FileSystem(/*ignoreCase*/ true, {
12881269
files: {
1289-
[builtFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "built/local"), patchResolver(host, resolver)),
1270+
[builtFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "built/local"), resolver),
12901271
[testLibFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "tests/lib"), resolver),
12911272
[srcFolder]: {}
12921273
},

tests/baselines/reference/ES5For-of1.errors.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/baselines/reference/ES5For-of1.symbols

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ for (var v of ['a', 'b', 'c']) {
33
>v : Symbol(v, Decl(ES5For-of1.ts, 0, 8))
44

55
console.log(v);
6+
>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --))
7+
>console : Symbol(console, Decl(lib.d.ts, --, --))
8+
>log : Symbol(Console.log, Decl(lib.d.ts, --, --))
69
>v : Symbol(v, Decl(ES5For-of1.ts, 0, 8))
710
}

tests/baselines/reference/ES5For-of1.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ for (var v of ['a', 'b', 'c']) {
77
>'c' : "c"
88

99
console.log(v);
10-
>console.log(v) : any
11-
>console.log : any
12-
>console : any
13-
>log : any
10+
>console.log(v) : void
11+
>console.log : (message?: any, ...optionalParams: any[]) => void
12+
>console : Console
13+
>log : (message?: any, ...optionalParams: any[]) => void
1414
>v : string
1515
}

tests/baselines/reference/ES5For-of22.errors.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/baselines/reference/ES5For-of22.symbols

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ for (var x of [1, 2, 3]) {
66
>_a : Symbol(_a, Decl(ES5For-of22.ts, 1, 7))
77

88
console.log(x);
9+
>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --))
10+
>console : Symbol(console, Decl(lib.d.ts, --, --))
11+
>log : Symbol(Console.log, Decl(lib.d.ts, --, --))
912
>x : Symbol(x, Decl(ES5For-of22.ts, 0, 8))
1013
}

tests/baselines/reference/ES5For-of22.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ for (var x of [1, 2, 3]) {
1111
>0 : 0
1212

1313
console.log(x);
14-
>console.log(x) : any
15-
>console.log : any
16-
>console : any
17-
>log : any
14+
>console.log(x) : void
15+
>console.log : (message?: any, ...optionalParams: any[]) => void
16+
>console : Console
17+
>log : (message?: any, ...optionalParams: any[]) => void
1818
>x : number
1919
}

tests/baselines/reference/ES5For-of23.errors.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/baselines/reference/ES5For-of23.symbols

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ for (var x of [1, 2, 3]) {
66
>_a : Symbol(_a, Decl(ES5For-of23.ts, 1, 7))
77

88
console.log(x);
9+
>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --))
10+
>console : Symbol(console, Decl(lib.d.ts, --, --))
11+
>log : Symbol(Console.log, Decl(lib.d.ts, --, --))
912
>x : Symbol(x, Decl(ES5For-of23.ts, 0, 8))
1013
}

tests/baselines/reference/ES5For-of23.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ for (var x of [1, 2, 3]) {
1111
>0 : 0
1212

1313
console.log(x);
14-
>console.log(x) : any
15-
>console.log : any
16-
>console : any
17-
>log : any
14+
>console.log(x) : void
15+
>console.log : (message?: any, ...optionalParams: any[]) => void
16+
>console : Console
17+
>log : (message?: any, ...optionalParams: any[]) => void
1818
>x : number
1919
}

tests/baselines/reference/ES5For-of33.errors.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/baselines/reference/ES5For-of33.symbols

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ for (var v of ['a', 'b', 'c']) {
33
>v : Symbol(v, Decl(ES5For-of33.ts, 0, 8))
44

55
console.log(v);
6+
>console.log : Symbol(Console.log, Decl(lib.d.ts, --, --))
7+
>console : Symbol(console, Decl(lib.d.ts, --, --))
8+
>log : Symbol(Console.log, Decl(lib.d.ts, --, --))
69
>v : Symbol(v, Decl(ES5For-of33.ts, 0, 8))
710
}

tests/baselines/reference/ES5For-of33.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ for (var v of ['a', 'b', 'c']) {
77
>'c' : "c"
88

99
console.log(v);
10-
>console.log(v) : any
11-
>console.log : any
12-
>console : any
13-
>log : any
10+
>console.log(v) : void
11+
>console.log : (message?: any, ...optionalParams: any[]) => void
12+
>console : Console
13+
>log : (message?: any, ...optionalParams: any[]) => void
1414
>v : string
1515
}

tests/baselines/reference/anyAssignabilityInInheritance.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ var r3 = foo3(a); // any
5656
declare function foo5(x: Date): Date;
5757
>foo5 : Symbol(foo5, Decl(anyAssignabilityInInheritance.ts, 19, 17), Decl(anyAssignabilityInInheritance.ts, 21, 37))
5858
>x : Symbol(x, Decl(anyAssignabilityInInheritance.ts, 21, 22))
59-
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
60-
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
59+
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
60+
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
6161

6262
declare function foo5(x: any): any;
6363
>foo5 : Symbol(foo5, Decl(anyAssignabilityInInheritance.ts, 19, 17), Decl(anyAssignabilityInInheritance.ts, 21, 37))

tests/baselines/reference/anyAssignableToEveryType.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var d: boolean = a;
4444

4545
var e: Date = a;
4646
>e : Symbol(e, Decl(anyAssignableToEveryType.ts, 17, 3))
47-
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
47+
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
4848
>a : Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3))
4949

5050
var f: any = a;
@@ -122,7 +122,7 @@ function foo<T, U /*extends T*/, V extends Date>(x: T, y: U, z: V) {
122122
>T : Symbol(T, Decl(anyAssignableToEveryType.ts, 34, 13))
123123
>U : Symbol(U, Decl(anyAssignableToEveryType.ts, 34, 15))
124124
>V : Symbol(V, Decl(anyAssignableToEveryType.ts, 34, 32))
125-
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
125+
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
126126
>x : Symbol(x, Decl(anyAssignableToEveryType.ts, 34, 49))
127127
>T : Symbol(T, Decl(anyAssignableToEveryType.ts, 34, 13))
128128
>y : Symbol(y, Decl(anyAssignableToEveryType.ts, 34, 54))

tests/baselines/reference/anyAssignableToEveryType2.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface I5 {
5050

5151
[x: string]: Date;
5252
>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 27, 5))
53-
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
53+
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
5454

5555
foo: any;
5656
>foo : Symbol(I5.foo, Decl(anyAssignableToEveryType2.ts, 27, 22))

tests/baselines/reference/argumentsObjectIterator01_ES6.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
1313
>arguments : Symbol(arguments)
1414

1515
result.push(arg + arg);
16-
>result.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
16+
>result.push : Symbol(Array.push, Decl(lib.es6.d.ts, --, --))
1717
>result : Symbol(result, Decl(argumentsObjectIterator01_ES6.ts, 1, 7))
18-
>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
18+
>push : Symbol(Array.push, Decl(lib.es6.d.ts, --, --))
1919
>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES6.ts, 2, 12))
2020
>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES6.ts, 2, 12))
2121
}

tests/baselines/reference/argumentsObjectIterator02_ES6.symbols

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
88
let blah = arguments[Symbol.iterator];
99
>blah : Symbol(blah, Decl(argumentsObjectIterator02_ES6.ts, 1, 7))
1010
>arguments : Symbol(arguments)
11-
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
12-
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --))
13-
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
11+
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es6.d.ts, --, --))
12+
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
13+
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es6.d.ts, --, --))
1414

1515
let result = [];
1616
>result : Symbol(result, Decl(argumentsObjectIterator02_ES6.ts, 3, 7))
@@ -20,9 +20,9 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
2020
>blah : Symbol(blah, Decl(argumentsObjectIterator02_ES6.ts, 1, 7))
2121

2222
result.push(arg + arg);
23-
>result.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
23+
>result.push : Symbol(Array.push, Decl(lib.es6.d.ts, --, --))
2424
>result : Symbol(result, Decl(argumentsObjectIterator02_ES6.ts, 3, 7))
25-
>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
25+
>push : Symbol(Array.push, Decl(lib.es6.d.ts, --, --))
2626
>arg : Symbol(arg, Decl(argumentsObjectIterator02_ES6.ts, 4, 12))
2727
>arg : Symbol(arg, Decl(argumentsObjectIterator02_ES6.ts, 4, 12))
2828
}

tests/baselines/reference/arrayLiterals2ES6.symbols

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ var temp2: [number[], string[]] = [[1, 2, 3], ["hello", "string"]];
7272

7373
interface myArray extends Array<Number> { }
7474
>myArray : Symbol(myArray, Decl(arrayLiterals2ES6.ts, 40, 67))
75-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --))
76-
>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
75+
>Array : Symbol(Array, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
76+
>Number : Symbol(Number, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
7777

7878
interface myArray2 extends Array<Number|String> { }
7979
>myArray2 : Symbol(myArray2, Decl(arrayLiterals2ES6.ts, 42, 43))
80-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --))
81-
>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
82-
>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more)
80+
>Array : Symbol(Array, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
81+
>Number : Symbol(Number, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
82+
>String : Symbol(String, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --) ... and 1 more)
8383

8484
var d0 = [1, true, ...temp, ]; // has type (string|number|boolean)[]
8585
>d0 : Symbol(d0, Decl(arrayLiterals2ES6.ts, 44, 3))

tests/baselines/reference/arrowFunctionContexts.errors.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(2,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
2-
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(2,7): error TS2304: Cannot find name 'window'.
3-
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(18,1): error TS2304: Cannot find name 'window'.
42
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(30,9): error TS2322: Type '() => number' is not assignable to type 'E'.
53
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(31,16): error TS2332: 'this' cannot be referenced in current location.
64
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(43,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
7-
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(43,11): error TS2304: Cannot find name 'window'.
8-
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(59,5): error TS2304: Cannot find name 'window'.
95
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(71,13): error TS2322: Type '() => number' is not assignable to type 'E'.
106
tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(72,20): error TS2332: 'this' cannot be referenced in current location.
117

128

13-
==== tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts (10 errors) ====
9+
==== tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts (6 errors) ====
1410
// Arrow function used in with statement
1511
with (window) {
1612
~~~~~~~~~~~~~
1713
!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
18-
~~~~~~
19-
!!! error TS2304: Cannot find name 'window'.
2014
var p = () => this;
2115
}
2216

@@ -33,8 +27,6 @@ tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(72,20): e
3327

3428
// Arrow function as function argument
3529
window.setTimeout(() => null, 100);
36-
~~~~~~
37-
!!! error TS2304: Cannot find name 'window'.
3830

3931
// Arrow function as value in array literal
4032

@@ -66,8 +58,6 @@ tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(72,20): e
6658
with (window) {
6759
~~~~~~~~~~~~~
6860
!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
69-
~~~~~~
70-
!!! error TS2304: Cannot find name 'window'.
7161
var p = () => this;
7262
}
7363

@@ -84,8 +74,6 @@ tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts(72,20): e
8474

8575
// Arrow function as function argument
8676
window.setTimeout(() => null, 100);
87-
~~~~~~
88-
!!! error TS2304: Cannot find name 'window'.
8977

9078
// Arrow function as value in array literal
9179

0 commit comments

Comments
 (0)