Make sure that `this` gets instantiated when it's used as a constraint of a type parameter, and nowhere else in a signature.
9 lines
147 B
TypeScript
9 lines
147 B
TypeScript
declare class Base {
|
|
check<TProp extends this>(prop: TProp): boolean;
|
|
}
|
|
|
|
class Test extends Base {
|
|
m() {
|
|
this.check(this);
|
|
}
|
|
}
|