65 lines
991 B
Text
65 lines
991 B
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts ===
|
|
var s: string;
|
|
>s : string
|
|
|
|
var n: number;
|
|
>n : number
|
|
|
|
var a: any;
|
|
>a : any
|
|
|
|
var v = {
|
|
>v : {}
|
|
>{ [s]: 0, [n]: n, [s + s]: 1, [s + n]: 2, [+s]: s, [""]: 0, [0]: 0, [a]: 1, [<any>true]: 0, [`hello bye`]: 0, [`hello ${a} bye`]: 0} : {}
|
|
|
|
[s]: 0,
|
|
>s : string
|
|
>0 : number
|
|
|
|
[n]: n,
|
|
>n : number
|
|
>n : number
|
|
|
|
[s + s]: 1,
|
|
>s + s : string
|
|
>s : string
|
|
>s : string
|
|
>1 : number
|
|
|
|
[s + n]: 2,
|
|
>s + n : string
|
|
>s : string
|
|
>n : number
|
|
>2 : number
|
|
|
|
[+s]: s,
|
|
>+s : number
|
|
>s : string
|
|
>s : string
|
|
|
|
[""]: 0,
|
|
>"" : string
|
|
>0 : number
|
|
|
|
[0]: 0,
|
|
>0 : number
|
|
>0 : number
|
|
|
|
[a]: 1,
|
|
>a : any
|
|
>1 : number
|
|
|
|
[<any>true]: 0,
|
|
><any>true : any
|
|
>true : boolean
|
|
>0 : number
|
|
|
|
[`hello bye`]: 0,
|
|
>`hello bye` : string
|
|
>0 : number
|
|
|
|
[`hello ${a} bye`]: 0
|
|
>`hello ${a} bye` : string
|
|
>a : any
|
|
>0 : number
|
|
}
|