mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
//// [tests/cases/conformance/classes/members/privateNames/privateNameNestedClassMethodShadowing.ts] ////
|
|
|
|
=== privateNameNestedClassMethodShadowing.ts ===
|
|
class Base {
|
|
>Base : Symbol(Base, Decl(privateNameNestedClassMethodShadowing.ts, 0, 0))
|
|
|
|
#x() { };
|
|
>#x : Symbol(Base.#x, Decl(privateNameNestedClassMethodShadowing.ts, 0, 12))
|
|
|
|
constructor() {
|
|
class Derived {
|
|
>Derived : Symbol(Derived, Decl(privateNameNestedClassMethodShadowing.ts, 2, 19))
|
|
|
|
#x() { };
|
|
>#x : Symbol(Derived.#x, Decl(privateNameNestedClassMethodShadowing.ts, 3, 23))
|
|
|
|
testBase(x: Base) {
|
|
>testBase : Symbol(Derived.testBase, Decl(privateNameNestedClassMethodShadowing.ts, 4, 21))
|
|
>x : Symbol(x, Decl(privateNameNestedClassMethodShadowing.ts, 5, 21))
|
|
>Base : Symbol(Base, Decl(privateNameNestedClassMethodShadowing.ts, 0, 0))
|
|
|
|
console.log(x.#x);
|
|
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
|
|
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
>x : Symbol(x, Decl(privateNameNestedClassMethodShadowing.ts, 5, 21))
|
|
}
|
|
testDerived(x: Derived) {
|
|
>testDerived : Symbol(Derived.testDerived, Decl(privateNameNestedClassMethodShadowing.ts, 7, 13))
|
|
>x : Symbol(x, Decl(privateNameNestedClassMethodShadowing.ts, 8, 24))
|
|
>Derived : Symbol(Derived, Decl(privateNameNestedClassMethodShadowing.ts, 2, 19))
|
|
|
|
console.log(x.#x);
|
|
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
|
|
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
>x.#x : Symbol(Derived.#x, Decl(privateNameNestedClassMethodShadowing.ts, 3, 23))
|
|
>x : Symbol(x, Decl(privateNameNestedClassMethodShadowing.ts, 8, 24))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|