mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
27 lines
344 B
TypeScript
27 lines
344 B
TypeScript
|
class Foo {
|
||
|
private x: string;
|
||
|
}
|
||
|
|
||
|
class Bar {
|
||
|
private x: string;
|
||
|
}
|
||
|
|
||
|
interface I3 extends Foo, Bar { // error
|
||
|
}
|
||
|
|
||
|
interface I4 extends Foo, Bar { // error
|
||
|
x: string;
|
||
|
}
|
||
|
|
||
|
class Baz {
|
||
|
private y: string;
|
||
|
}
|
||
|
|
||
|
interface I5 extends Foo, Baz {
|
||
|
z: string;
|
||
|
}
|
||
|
|
||
|
var i: I5;
|
||
|
var r: string = i.z;
|
||
|
var r2 = i.x; // error
|
||
|
var r3 = i.y; // error
|