67b9647069
The test already had a reference to the `this` value, but that doesn't show that the *type* is allowed.
13 lines
219 B
TypeScript
13 lines
219 B
TypeScript
class Base {
|
|
constructor(a: this) {
|
|
}
|
|
}
|
|
class Generic<T> {
|
|
}
|
|
class Derived {
|
|
n: number;
|
|
constructor(public host: Generic<this>) {
|
|
let self: this = this;
|
|
this.n = 12;
|
|
}
|
|
}
|