|
| 1 | +=== tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts === |
| 2 | +var x: "p" = "p" |
| 3 | +>x : Symbol(x, Decl(defineProperty.ts, 0, 3)) |
| 4 | + |
| 5 | +class A { |
| 6 | +>A : Symbol(A, Decl(defineProperty.ts, 0, 16)) |
| 7 | + |
| 8 | + a = this.y |
| 9 | +>a : Symbol(A.a, Decl(defineProperty.ts, 1, 9)) |
| 10 | +>this.y : Symbol(A.y, Decl(defineProperty.ts, 7, 16)) |
| 11 | +>this : Symbol(A, Decl(defineProperty.ts, 0, 16)) |
| 12 | +>y : Symbol(A.y, Decl(defineProperty.ts, 7, 16)) |
| 13 | + |
| 14 | + b |
| 15 | +>b : Symbol(A.b, Decl(defineProperty.ts, 2, 14)) |
| 16 | + |
| 17 | + ["computed"] = 13 |
| 18 | +>["computed"] : Symbol(A["computed"], Decl(defineProperty.ts, 3, 5)) |
| 19 | +>"computed" : Symbol(A["computed"], Decl(defineProperty.ts, 3, 5)) |
| 20 | + |
| 21 | + ;[x] = 14 |
| 22 | +>[x] : Symbol(A[x], Decl(defineProperty.ts, 5, 5)) |
| 23 | +>x : Symbol(x, Decl(defineProperty.ts, 0, 3)) |
| 24 | + |
| 25 | + m() { } |
| 26 | +>m : Symbol(A.m, Decl(defineProperty.ts, 5, 13)) |
| 27 | + |
| 28 | + constructor(public readonly y: number) { } |
| 29 | +>y : Symbol(A.y, Decl(defineProperty.ts, 7, 16)) |
| 30 | + |
| 31 | + z = this.y |
| 32 | +>z : Symbol(A.z, Decl(defineProperty.ts, 7, 46)) |
| 33 | +>this.y : Symbol(A.y, Decl(defineProperty.ts, 7, 16)) |
| 34 | +>this : Symbol(A, Decl(defineProperty.ts, 0, 16)) |
| 35 | +>y : Symbol(A.y, Decl(defineProperty.ts, 7, 16)) |
| 36 | + |
| 37 | + declare notEmitted; |
| 38 | +>notEmitted : Symbol(A.notEmitted, Decl(defineProperty.ts, 8, 14)) |
| 39 | +} |
| 40 | +class B { |
| 41 | +>B : Symbol(B, Decl(defineProperty.ts, 10, 1)) |
| 42 | +} |
| 43 | +class C extends B { |
| 44 | +>C : Symbol(C, Decl(defineProperty.ts, 12, 1)) |
| 45 | +>B : Symbol(B, Decl(defineProperty.ts, 10, 1)) |
| 46 | + |
| 47 | + z = this.ka |
| 48 | +>z : Symbol(C.z, Decl(defineProperty.ts, 13, 19)) |
| 49 | +>this.ka : Symbol(C.ka, Decl(defineProperty.ts, 15, 16)) |
| 50 | +>this : Symbol(C, Decl(defineProperty.ts, 12, 1)) |
| 51 | +>ka : Symbol(C.ka, Decl(defineProperty.ts, 15, 16)) |
| 52 | + |
| 53 | + constructor(public ka: number) { |
| 54 | +>ka : Symbol(C.ka, Decl(defineProperty.ts, 15, 16)) |
| 55 | + |
| 56 | + super() |
| 57 | +>super : Symbol(B, Decl(defineProperty.ts, 10, 1)) |
| 58 | + } |
| 59 | + ki = this.ka |
| 60 | +>ki : Symbol(C.ki, Decl(defineProperty.ts, 17, 5)) |
| 61 | +>this.ka : Symbol(C.ka, Decl(defineProperty.ts, 15, 16)) |
| 62 | +>this : Symbol(C, Decl(defineProperty.ts, 12, 1)) |
| 63 | +>ka : Symbol(C.ka, Decl(defineProperty.ts, 15, 16)) |
| 64 | +} |
| 65 | + |
0 commit comments