mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
931 B
Plaintext
28 lines
931 B
Plaintext
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES6.ts] ////
|
|
|
|
=== computedPropertyNames6_ES6.ts ===
|
|
declare var p1: number | string;
|
|
>p1 : Symbol(p1, Decl(computedPropertyNames6_ES6.ts, 0, 11))
|
|
|
|
declare var p2: number | number[];
|
|
>p2 : Symbol(p2, Decl(computedPropertyNames6_ES6.ts, 1, 11))
|
|
|
|
declare var p3: string | boolean;
|
|
>p3 : Symbol(p3, Decl(computedPropertyNames6_ES6.ts, 2, 11))
|
|
|
|
var v = {
|
|
>v : Symbol(v, Decl(computedPropertyNames6_ES6.ts, 3, 3))
|
|
|
|
[p1]: 0,
|
|
>[p1] : Symbol([p1], Decl(computedPropertyNames6_ES6.ts, 3, 9))
|
|
>p1 : Symbol(p1, Decl(computedPropertyNames6_ES6.ts, 0, 11))
|
|
|
|
[p2]: 1,
|
|
>[p2] : Symbol([p2], Decl(computedPropertyNames6_ES6.ts, 4, 12))
|
|
>p2 : Symbol(p2, Decl(computedPropertyNames6_ES6.ts, 1, 11))
|
|
|
|
[p3]: 2
|
|
>[p3] : Symbol([p3], Decl(computedPropertyNames6_ES6.ts, 5, 12))
|
|
>p3 : Symbol(p3, Decl(computedPropertyNames6_ES6.ts, 2, 11))
|
|
}
|