Accepted baselines.

This commit is contained in:
Daniel Rosenwasser 2018-08-15 09:00:37 -07:00
parent dac00d97b7
commit aba82901ac

View file

@ -1,7 +1,7 @@
tests/cases/compiler/noImplicitThisFunctions.ts(13,12): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
tests/cases/compiler/noImplicitThisFunctions.ts(17,38): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
tests/cases/compiler/noImplicitThisFunctions.ts(18,22): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
tests/cases/compiler/noImplicitThisFunctions.ts(20,36): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
tests/cases/compiler/noImplicitThisFunctions.ts(20,36): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
tests/cases/compiler/noImplicitThisFunctions.ts(21,50): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
@ -33,7 +33,7 @@ tests/cases/compiler/noImplicitThisFunctions.ts(21,50): error TS2683: 'this' imp
let f6 = function() { return () => this; };
~~~~
!!! error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
let f7 = function() { return function() { return this } };
~~~~
!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.