TypeScript/tests/baselines/reference/computedPropertyNames13_ES5.types

54 lines
1.4 KiB
Text
Raw Normal View History

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