8 lines
102 B
TypeScript
8 lines
102 B
TypeScript
|
// @declaration: true
|
||
|
|
||
|
class C<T> {
|
||
|
x: T;
|
||
|
foo(a: T): T {
|
||
|
return this.x;
|
||
|
}
|
||
|
}
|