9 lines
100 B
TypeScript
9 lines
100 B
TypeScript
|
interface T { }
|
||
|
declare const a: T;
|
||
|
class Foo<T> {
|
||
|
x: T;
|
||
|
fn() {
|
||
|
this.x = a;
|
||
|
}
|
||
|
}
|