mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
26 lines
309 B
TypeScript
26 lines
309 B
TypeScript
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
|