mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
17 lines
327 B
TypeScript
17 lines
327 B
TypeScript
// @target: es2015
|
|
|
|
class Base {
|
|
get #x() { return 1; };
|
|
constructor() {
|
|
class Derived {
|
|
get #x() { return 1; };
|
|
testBase(x: Base) {
|
|
console.log(x.#x);
|
|
}
|
|
testDerived(x: Derived) {
|
|
console.log(x.#x);
|
|
}
|
|
}
|
|
}
|
|
}
|