mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Update tests
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// @noImplicitAny: true
|
||||
// @noImplicitThis: true
|
||||
|
||||
interface MouseEvent {
|
||||
x: number;
|
||||
y: number;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// @noImplicitAny: true
|
||||
// @noImplicitThis: true
|
||||
|
||||
class C {
|
||||
x: number;
|
||||
constructor() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// @noImplicitAny: true
|
||||
// @noImplicitThis: true
|
||||
|
||||
interface I {
|
||||
n: number;
|
||||
explicitThis(this: this, m: number): number;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// @noImplicitAny: true
|
||||
// @noImplicitThis: true
|
||||
|
||||
interface IndexedWithThis {
|
||||
// this is a workaround for React
|
||||
init?: (this: this) => void;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// @noImplicitAny: true
|
||||
// @noImplicitThis: true
|
||||
|
||||
let o = {
|
||||
d: "bar",
|
||||
m() {
|
||||
|
||||
Reference in New Issue
Block a user