swc/crates/swc_ecma_parser/tests/tsc/interfaceExtendingClass.ts

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;