From dc1fbc24cd4a30ee090f00c6b6561ebbf9bb375e Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 14 Aug 2018 23:02:08 -0700 Subject: [PATCH] Updated test cases. --- tests/cases/compiler/noImplicitThisFunctions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/cases/compiler/noImplicitThisFunctions.ts b/tests/cases/compiler/noImplicitThisFunctions.ts index 45f0e5a1eb9..43890762e75 100644 --- a/tests/cases/compiler/noImplicitThisFunctions.ts +++ b/tests/cases/compiler/noImplicitThisFunctions.ts @@ -17,3 +17,7 @@ function f3(z: number): number { // error: `this` is `window`, but is still of type `any` let f4: (b: number) => number = b => this.c + b; +let f5 = () => () => this; + +let f6 = function() { return () => this; }; +let f7 = function() { return function() { return this } };