Accepted baselines.

This commit is contained in:
Daniel Rosenwasser 2018-07-26 11:49:37 -07:00
parent 64d01d8e8f
commit 36dac99db7
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
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(13,12): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
tests/cases/compiler/noImplicitThisFunctions.ts(17,38): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
@ -17,7 +17,7 @@ tests/cases/compiler/noImplicitThisFunctions.ts(17,38): error TS2683: 'this' imp
// error: this is implicitly any
return this.a + z;
~~~~
!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
!!! error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
}
// error: `this` is `window`, but is still of type `any`

View file

@ -1,4 +1,4 @@
tests/cases/compiler/thisBinding2.ts(10,11): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
tests/cases/compiler/thisBinding2.ts(10,11): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
==== tests/cases/compiler/thisBinding2.ts (1 errors) ====
@ -13,7 +13,7 @@ tests/cases/compiler/thisBinding2.ts(10,11): error TS2683: 'this' implicitly has
var x = 1;
return this.x;
~~~~
!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
!!! error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
}();
}
}