16 lines
315 B
Text
16 lines
315 B
Text
=== tests/cases/compiler/thisExpressionOfGenericObject.ts ===
|
|
class MyClass1<T> {
|
|
>MyClass1 : MyClass1<T>
|
|
>T : T
|
|
|
|
private obj: MyClass1<string>;
|
|
>obj : MyClass1<string>
|
|
>MyClass1 : MyClass1<T>
|
|
|
|
constructor() {
|
|
() => this;
|
|
>() => this : () => MyClass1<T>
|
|
>this : MyClass1<T>
|
|
}
|
|
}
|
|
|