mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +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";
|
|
}
|
|
}
|