TypeScript/tests/baselines/reference/computedPropertyNames13_ES6.types

54 lines
725 B
Plaintext
Raw Normal View History

=== tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES6.ts ===
var s: string;
>s : string
var n: number;
>n : number
var a: any;
>a : any
class C {
>C : C
[s]() {}
>s : string
[n]() { }
>n : number
static [s + s]() { }
>s + s : string
>s : string
>s : string
[s + n]() { }
>s + n : string
>s : string
>n : number
[+s]() { }
>+s : number
>s : string
static [""]() { }
2015-04-13 21:36:11 +02:00
>"" : string
[0]() { }
2015-04-13 21:36:11 +02:00
>0 : number
[a]() { }
>a : any
static [<any>true]() { }
><any>true : any
2015-04-13 21:36:11 +02:00
>true : boolean
[`hello bye`]() { }
2015-04-13 21:36:11 +02:00
>`hello bye` : string
static [`hello ${a} bye`]() { }
2015-04-13 21:36:11 +02:00
>`hello ${a} bye` : string
>a : any
}