mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
38 lines
488 B
TypeScript
38 lines
488 B
TypeScript
class C {
|
|
private x: number;
|
|
}
|
|
|
|
class C2 {
|
|
private x: number;
|
|
}
|
|
|
|
interface A extends C { // error
|
|
y: string;
|
|
}
|
|
|
|
interface A extends C2 {
|
|
z: string;
|
|
}
|
|
|
|
class D extends C implements A { // error
|
|
y: string;
|
|
z: string;
|
|
}
|
|
|
|
module M {
|
|
class C {
|
|
private x: string;
|
|
}
|
|
|
|
class C2 {
|
|
private x: number;
|
|
}
|
|
|
|
interface A extends C { // error, privates conflict
|
|
y: string;
|
|
}
|
|
|
|
interface A extends C2 {
|
|
z: string;
|
|
}
|
|
} |