mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
19 lines
211 B
TypeScript
19 lines
211 B
TypeScript
class Foo {
|
|
x: string;
|
|
y() { }
|
|
get Z() {
|
|
return 1;
|
|
}
|
|
[x: string]: Object;
|
|
}
|
|
|
|
interface I extends Foo {
|
|
}
|
|
|
|
var i: I;
|
|
var r1 = i.x;
|
|
var r2 = i.y();
|
|
var r3 = i.Z;
|
|
|
|
var f: Foo = i;
|
|
i = f; |