|
1 | 1 | //// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts] ////
|
2 | 2 |
|
3 | 3 | === computedPropertyNamesWithStaticProperty.ts ===
|
4 |
| -class C { |
5 |
| ->C : Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
| 4 | +class C1 { |
| 5 | +>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
6 | 6 |
|
7 | 7 | static staticProp = 10;
|
8 |
| ->staticProp : Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) |
| 8 | +>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10)) |
9 | 9 |
|
10 |
| - get [C.staticProp]() { |
11 |
| ->[C.staticProp] : Symbol(C[C.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 1, 27)) |
12 |
| ->C.staticProp : Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) |
13 |
| ->C : Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
14 |
| ->staticProp : Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) |
| 10 | + get [C1.staticProp]() { |
| 11 | +>[C1.staticProp] : Symbol(C1[C1.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 1, 27)) |
| 12 | +>C1.staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10)) |
| 13 | +>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
| 14 | +>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10)) |
15 | 15 |
|
16 | 16 | return "hello";
|
17 | 17 | }
|
18 |
| - set [C.staticProp](x: string) { |
19 |
| ->[C.staticProp] : Symbol(C[C.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 4, 5)) |
20 |
| ->C.staticProp : Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) |
21 |
| ->C : Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
22 |
| ->staticProp : Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) |
23 |
| ->x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 23)) |
| 18 | + set [C1.staticProp](x: string) { |
| 19 | +>[C1.staticProp] : Symbol(C1[C1.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 4, 5)) |
| 20 | +>C1.staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10)) |
| 21 | +>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
| 22 | +>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10)) |
| 23 | +>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 24)) |
24 | 24 |
|
25 | 25 | var y = x;
|
26 | 26 | >y : Symbol(y, Decl(computedPropertyNamesWithStaticProperty.ts, 6, 11))
|
27 |
| ->x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 23)) |
| 27 | +>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 24)) |
28 | 28 | }
|
29 |
| - [C.staticProp]() { } |
30 |
| ->[C.staticProp] : Symbol(C[C.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 7, 5)) |
31 |
| ->C.staticProp : Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) |
32 |
| ->C : Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
33 |
| ->staticProp : Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) |
| 29 | + [C1.staticProp]() { } |
| 30 | +>[C1.staticProp] : Symbol(C1[C1.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 7, 5)) |
| 31 | +>C1.staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10)) |
| 32 | +>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) |
| 33 | +>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10)) |
34 | 34 | }
|
| 35 | + |
| 36 | +(class C2 { |
| 37 | +>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1)) |
| 38 | + |
| 39 | + static staticProp = 10; |
| 40 | +>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11)) |
| 41 | + |
| 42 | + get [C2.staticProp]() { |
| 43 | +>[C2.staticProp] : Symbol(C2[C2.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 12, 27)) |
| 44 | +>C2.staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11)) |
| 45 | +>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1)) |
| 46 | +>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11)) |
| 47 | + |
| 48 | + return "hello"; |
| 49 | + } |
| 50 | + set [C2.staticProp](x: string) { |
| 51 | +>[C2.staticProp] : Symbol(C2[C2.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 15, 5)) |
| 52 | +>C2.staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11)) |
| 53 | +>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1)) |
| 54 | +>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11)) |
| 55 | +>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 16, 24)) |
| 56 | + |
| 57 | + var y = x; |
| 58 | +>y : Symbol(y, Decl(computedPropertyNamesWithStaticProperty.ts, 17, 11)) |
| 59 | +>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 16, 24)) |
| 60 | + } |
| 61 | + [C2.staticProp]() { } |
| 62 | +>[C2.staticProp] : Symbol(C2[C2.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 18, 5)) |
| 63 | +>C2.staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11)) |
| 64 | +>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1)) |
| 65 | +>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11)) |
| 66 | + |
| 67 | +}) |
| 68 | + |
0 commit comments