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

24 lines
314 B
TypeScript
Raw Normal View History

class Foo {
private x: string;
}
interface I extends Foo {
y: number;
}
class Bar implements I { // error
}
class Bar2 implements I { // error
y: number;
}
class Bar3 implements I { // error
x: string;
y: number;
}
class Bar4 implements I { // error
private x: string;
y: number;
}