Skip to content

Commit dc1fbc2

Browse files
Updated test cases.
1 parent c0531c7 commit dc1fbc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/cases/compiler/noImplicitThisFunctions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ function f3(z: number): number {
1717

1818
// error: `this` is `window`, but is still of type `any`
1919
let f4: (b: number) => number = b => this.c + b;
20+
let f5 = () => () => this;
21+
22+
let f6 = function() { return () => this; };
23+
let f7 = function() { return function() { return this } };

0 commit comments

Comments
 (0)