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