mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
23 lines
367 B
TypeScript
23 lines
367 B
TypeScript
// @target: ES5
|
|
|
|
class Base {
|
|
protected x: string;
|
|
protected fn(): string {
|
|
return '';
|
|
}
|
|
|
|
protected get a() { return 1; }
|
|
protected set a(v) { }
|
|
}
|
|
|
|
// error, not a subtype
|
|
class Derived extends Base {
|
|
private x: string;
|
|
private fn(): string {
|
|
return '';
|
|
}
|
|
|
|
private get a() { return 1; }
|
|
private set a(v) { }
|
|
}
|