Skip to content

Commit c0531c7

Browse files
Accepted baselines.
1 parent d8c82a8 commit c0531c7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/baselines/reference/noImplicitThisFunctions.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/compiler/noImplicitThisFunctions.ts(13,12): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
2-
tests/cases/compiler/noImplicitThisFunctions.ts(17,38): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
1+
tests/cases/compiler/noImplicitThisFunctions.ts(13,12): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
2+
tests/cases/compiler/noImplicitThisFunctions.ts(17,38): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
33

44

55
==== tests/cases/compiler/noImplicitThisFunctions.ts (2 errors) ====
@@ -17,11 +17,11 @@ tests/cases/compiler/noImplicitThisFunctions.ts(17,38): error TS2683: 'this' imp
1717
// error: this is implicitly any
1818
return this.a + z;
1919
~~~~
20-
!!! error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
20+
!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
2121
}
2222

2323
// error: `this` is `window`, but is still of type `any`
2424
let f4: (b: number) => number = b => this.c + b;
2525
~~~~
26-
!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
26+
!!! error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
2727

tests/baselines/reference/thisBinding2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/thisBinding2.ts(10,11): error TS7041: The containing arrow function captures the global value of 'this' which implicitly has type 'any'.
1+
tests/cases/compiler/thisBinding2.ts(10,11): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
22

33

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

0 commit comments

Comments
 (0)