mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +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";
|
|
}
|
|
}
|