mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
cleanup tests
This commit is contained in:
parent
1c25034a18
commit
fbccb62d4b
@ -1,35 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
verify.quickInfos({
|
||||
1: "this: ContextualInterface",
|
||||
2: "(parameter) this: void"
|
||||
});
|
||||
|
||||
|
||||
|
||||
////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) { }
|
||||
|
||||
class A {
|
||||
x: number
|
||||
myMethod(): this { return this; }
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
constructor(){
|
||||
super();
|
||||
this.myMethod();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user