TypeScript/tests/baselines/reference/computedPropertyNames13_ES6.types
2015-04-15 16:44:20 -07:00

54 lines
725 B
Plaintext

=== 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 [""]() { }
>"" : string
[0]() { }
>0 : number
[a]() { }
>a : any
static [<any>true]() { }
><any>true : any
>true : boolean
[`hello bye`]() { }
>`hello bye` : string
static [`hello ${a} bye`]() { }
>`hello ${a} bye` : string
>a : any
}