mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +03:00
15 lines
184 B
TypeScript
15 lines
184 B
TypeScript
class Foo {
|
|
protected x: string;
|
|
}
|
|
|
|
interface I extends Foo { // error
|
|
x: string;
|
|
}
|
|
|
|
interface I2 extends Foo {
|
|
y: string;
|
|
}
|
|
|
|
var i: I2;
|
|
var r = i.y;
|
|
var r2 = i.x; // error
|