TypeScript/tests/baselines/reference/computedPropertyNames4_ES6.types

66 lines
1.8 KiB
Text
Raw Normal View History

=== tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES6.ts ===
var s: string;
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3))
var n: number;
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3))
var a: any;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(computedPropertyNames4_ES6.ts, 2, 3))
var v = {
2015-04-13 23:01:57 +02:00
>v : {}, Symbol(v, Decl(computedPropertyNames4_ES6.ts, 3, 3))
>{ [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,
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>0 : number
[n]: n,
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3))
>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3))
[s + s]: 1,
>s + s : string
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3))
>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>1 : number
[s + n]: 2,
>s + n : string
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3))
>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3))
2015-04-13 21:36:11 +02:00
>2 : number
[+s]: s,
>+s : number
2015-04-13 23:01:57 +02:00
>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3))
>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3))
[""]: 0,
2015-04-13 21:36:11 +02:00
>"" : string
>0 : number
[0]: 0,
2015-04-13 21:36:11 +02:00
>0 : number
>0 : number
[a]: 1,
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(computedPropertyNames4_ES6.ts, 2, 3))
2015-04-13 21:36:11 +02:00
>1 : number
[<any>true]: 0,
><any>true : any
2015-04-13 21:36:11 +02:00
>true : boolean
>0 : number
[`hello bye`]: 0,
2015-04-13 21:36:11 +02:00
>`hello bye` : string
>0 : number
[`hello ${a} bye`]: 0
2015-04-13 21:36:11 +02:00
>`hello ${a} bye` : string
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(computedPropertyNames4_ES6.ts, 2, 3))
2015-04-13 21:36:11 +02:00
>0 : number
}