11 lines
155 B
TypeScript
11 lines
155 B
TypeScript
|
class A<T> { }
|
||
|
|
||
|
class C<T> {
|
||
|
data: A<T>;
|
||
|
get x(): A<T> {
|
||
|
return this.data;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var c = new C<number>();
|
||
|
var r: string = c.x;
|