2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/thisExpressionOfGenericObject.ts ===
|
|
|
|
class MyClass1<T> {
|
|
|
|
>MyClass1 : MyClass1<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
private obj: MyClass1<string>;
|
|
|
|
>obj : MyClass1<string>
|
2014-08-19 04:56:03 +02:00
|
|
|
>MyClass1 : MyClass1<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
() => this;
|
|
|
|
>() => this : () => MyClass1<T>
|
|
|
|
>this : MyClass1<T>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|