1. Display of `this` changes for quick info. 2. The type of Function.call/apply/bind is more precise.
14 lines
No EOL
422 B
TypeScript
14 lines
No EOL
422 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////class G<T> { // Introduce type parameter T
|
|
//// self: G<T>; // Use T as type argument to form instance type
|
|
//// f() {
|
|
//// this./*1*/self = /*2*/this; // self and this are both of type G<T>
|
|
//// }
|
|
////}
|
|
|
|
goTo.marker('1');
|
|
verify.quickInfoIs('(property) G<T>.self: G<T>');
|
|
|
|
goTo.marker('2');
|
|
verify.quickInfoIs('this: this'); |