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

26 lines
309 B
TypeScript
Raw Normal View History

class C {
private x: number;
}
interface A extends C {
y: string;
}
interface A {
z: string;
}
class D implements A { // error
private x: number;
y: string;
z: string;
}
class E implements A { // error
x: number;
y: string;
z: string;
}
var a: A;
var r = a.x; // error