mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
69 lines
3.5 KiB
Plaintext
69 lines
3.5 KiB
Plaintext
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts] ////
|
|
|
|
=== computedPropertyNamesWithStaticProperty.ts ===
|
|
class C1 {
|
|
>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
|
|
|
static staticProp = 10;
|
|
>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10))
|
|
|
|
get [C1.staticProp]() {
|
|
>[C1.staticProp] : Symbol(C1[C1.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 1, 27))
|
|
>C1.staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10))
|
|
>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
|
>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10))
|
|
|
|
return "hello";
|
|
}
|
|
set [C1.staticProp](x: string) {
|
|
>[C1.staticProp] : Symbol(C1[C1.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 4, 5))
|
|
>C1.staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10))
|
|
>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
|
>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10))
|
|
>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 24))
|
|
|
|
var y = x;
|
|
>y : Symbol(y, Decl(computedPropertyNamesWithStaticProperty.ts, 6, 11))
|
|
>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 24))
|
|
}
|
|
[C1.staticProp]() { }
|
|
>[C1.staticProp] : Symbol(C1[C1.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 7, 5))
|
|
>C1.staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10))
|
|
>C1 : Symbol(C1, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
|
>staticProp : Symbol(C1.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 10))
|
|
}
|
|
|
|
(class C2 {
|
|
>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1))
|
|
|
|
static staticProp = 10;
|
|
>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11))
|
|
|
|
get [C2.staticProp]() {
|
|
>[C2.staticProp] : Symbol(C2[C2.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 12, 27))
|
|
>C2.staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11))
|
|
>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1))
|
|
>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11))
|
|
|
|
return "hello";
|
|
}
|
|
set [C2.staticProp](x: string) {
|
|
>[C2.staticProp] : Symbol(C2[C2.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 15, 5))
|
|
>C2.staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11))
|
|
>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1))
|
|
>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11))
|
|
>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 16, 24))
|
|
|
|
var y = x;
|
|
>y : Symbol(y, Decl(computedPropertyNamesWithStaticProperty.ts, 17, 11))
|
|
>x : Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 16, 24))
|
|
}
|
|
[C2.staticProp]() { }
|
|
>[C2.staticProp] : Symbol(C2[C2.staticProp], Decl(computedPropertyNamesWithStaticProperty.ts, 18, 5))
|
|
>C2.staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11))
|
|
>C2 : Symbol(C2, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 1))
|
|
>staticProp : Symbol(C2.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 11, 11))
|
|
|
|
})
|
|
|