mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
18 lines
234 B
TypeScript
18 lines
234 B
TypeScript
// @strict: true
|
|
// @target: es6
|
|
|
|
class A {
|
|
#foo: number;
|
|
constructor () {
|
|
this.#foo = 3;
|
|
}
|
|
}
|
|
|
|
class B extends A {
|
|
#foo: string;
|
|
constructor () {
|
|
super();
|
|
this.#foo = "some string";
|
|
}
|
|
}
|