Update tests

This commit is contained in:
Anders Hejlsberg
2017-02-28 16:09:42 -08:00
parent 21c43009a6
commit 25738a8e41
5 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
// @noImplicitAny: true
// @noImplicitThis: true
interface MouseEvent {
x: number;
y: number;

View File

@@ -1,3 +1,6 @@
// @noImplicitAny: true
// @noImplicitThis: true
class C {
x: number;
constructor() {

View File

@@ -1,3 +1,6 @@
// @noImplicitAny: true
// @noImplicitThis: true
interface I {
n: number;
explicitThis(this: this, m: number): number;

View File

@@ -1,3 +1,6 @@
// @noImplicitAny: true
// @noImplicitThis: true
interface IndexedWithThis {
// this is a workaround for React
init?: (this: this) => void;

View File

@@ -1,3 +1,6 @@
// @noImplicitAny: true
// @noImplicitThis: true
let o = {
d: "bar",
m() {