TypeScript/tests/cases/conformance/interfaces/interfacesExtendingClasses/interfaceExtendingClass2.ts

17 lines
No EOL
262 B
TypeScript

// @allowUnreachableCode: true
class Foo {
x: string;
y() { }
get Z() {
return 1;
}
[x: string]: Object;
}
interface I2 extends Foo { // error
a: {
toString: () => {
return 1;
};
}