|
| 1 | +=== tests/cases/conformance/classes/members/privateNames/typeFromPrivatePropertyAssignment.ts === |
| 2 | +type Foo = { foo?: string }; |
| 3 | +>Foo : Symbol(Foo, Decl(typeFromPrivatePropertyAssignment.ts, 0, 0)) |
| 4 | +>foo : Symbol(foo, Decl(typeFromPrivatePropertyAssignment.ts, 0, 12)) |
| 5 | + |
| 6 | +class C { |
| 7 | +>C : Symbol(C, Decl(typeFromPrivatePropertyAssignment.ts, 0, 28)) |
| 8 | + |
| 9 | + #a?: Foo; |
| 10 | +>#a : Symbol(C.#a, Decl(typeFromPrivatePropertyAssignment.ts, 2, 9)) |
| 11 | +>Foo : Symbol(Foo, Decl(typeFromPrivatePropertyAssignment.ts, 0, 0)) |
| 12 | + |
| 13 | + #b?: Foo; |
| 14 | +>#b : Symbol(C.#b, Decl(typeFromPrivatePropertyAssignment.ts, 3, 13)) |
| 15 | +>Foo : Symbol(Foo, Decl(typeFromPrivatePropertyAssignment.ts, 0, 0)) |
| 16 | + |
| 17 | + m() { |
| 18 | +>m : Symbol(C.m, Decl(typeFromPrivatePropertyAssignment.ts, 4, 13)) |
| 19 | + |
| 20 | + const a = this.#a || {}; |
| 21 | +>a : Symbol(a, Decl(typeFromPrivatePropertyAssignment.ts, 7, 13)) |
| 22 | +>this.#a : Symbol(C.#a, Decl(typeFromPrivatePropertyAssignment.ts, 2, 9)) |
| 23 | +>this : Symbol(C, Decl(typeFromPrivatePropertyAssignment.ts, 0, 28)) |
| 24 | + |
| 25 | + this.#b = this.#b || {}; |
| 26 | +>this.#b : Symbol(C.#b, Decl(typeFromPrivatePropertyAssignment.ts, 3, 13)) |
| 27 | +>this : Symbol(C, Decl(typeFromPrivatePropertyAssignment.ts, 0, 28)) |
| 28 | +>this.#b : Symbol(C.#b, Decl(typeFromPrivatePropertyAssignment.ts, 3, 13)) |
| 29 | +>this : Symbol(C, Decl(typeFromPrivatePropertyAssignment.ts, 0, 28)) |
| 30 | + } |
| 31 | +} |
| 32 | + |
0 commit comments