TypeScript/tests/cases/fourslash/quickInfoOnThis4.ts
2016-09-13 11:49:01 -07:00

21 lines
533 B
TypeScript

/// <reference path='fourslash.ts' />
////interface ContextualInterface {
//// m: number;
//// method(this: this, n: number);
////}
////let o: ContextualInterface = {
//// m: 12,
//// method(n) {
//// let x = this/*1*/.m;
//// }
////}
////interface ContextualInterface2 {
//// (this: void, n: number): void;
////}
////let contextualInterface2: ContextualInterface2 = function (th/*2*/is, n) { }
verify.quickInfos({
1: "this: ContextualInterface",
2: "(parameter) this: void"
});