mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
14 lines
252 B
TypeScript
14 lines
252 B
TypeScript
|
var x: { foo: string; }
|
||
|
var y: { foo: string; bar: string; }
|
||
|
|
||
|
class Base {
|
||
|
protected a: typeof x;
|
||
|
}
|
||
|
|
||
|
class Derived1 extends Base {
|
||
|
public a: typeof x;
|
||
|
}
|
||
|
|
||
|
class Derived2 extends Derived1 {
|
||
|
protected a: typeof x; // Error, parent was public
|
||
|
}
|