TypeScript/tests/baselines/reference/thisInInstanceMemberInitializer.types

22 lines
270 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/classes/propertyMemberDeclarations/thisInInstanceMemberInitializer.ts ===
class C {
>C : C
2014-08-15 23:33:16 +02:00
x = this;
>x : C
>this : C
2014-08-15 23:33:16 +02:00
}
class D<T> {
>D : D<T>
>T : T
2014-08-15 23:33:16 +02:00
x = this;
>x : D<T>
>this : D<T>
2014-08-15 23:33:16 +02:00
y: T;
>y : T
>T : T
2014-08-15 23:33:16 +02:00
}