Skip to content

Commit 25738a8

Browse files
committed
Update tests
1 parent 21c4300 commit 25738a8

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

tests/cases/compiler/selfInLambdas.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// @noImplicitAny: true
2+
// @noImplicitThis: true
3+
14
interface MouseEvent {
25
x: number;
36
y: number;

tests/cases/compiler/thisBinding2.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// @noImplicitAny: true
2+
// @noImplicitThis: true
3+
14
class C {
25
x: number;
36
constructor() {

tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// @noImplicitAny: true
2+
// @noImplicitThis: true
3+
14
interface I {
25
n: number;
36
explicitThis(this: this, m: number): number;

tests/cases/conformance/types/thisType/thisTypeInFunctions2.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// @noImplicitAny: true
2+
// @noImplicitThis: true
3+
14
interface IndexedWithThis {
25
// this is a workaround for React
36
init?: (this: this) => void;

tests/cases/conformance/types/thisType/thisTypeInObjectLiterals.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// @noImplicitAny: true
2+
// @noImplicitThis: true
3+
14
let o = {
25
d: "bar",
36
m() {

0 commit comments

Comments
 (0)