2015-02-05 00:33:53 +01:00
|
|
|
=== 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))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
var n: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>n : number, Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
var a: any;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
class C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(computedPropertyNames13_ES5.ts, 2, 11))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[s]() {}
|
2015-04-13 23:01:57 +02:00
|
|
|
>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[n]() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>n : number, Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[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))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[+s]() { }
|
|
|
|
>+s : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
static [""]() { }
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
|
|
|
|
2015-02-05 00:33:53 +01:00
|
|
|
[0]() { }
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
|
2015-02-05 00:33:53 +01:00
|
|
|
[a]() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : any, Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3))
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
static [<any>true]() { }
|
|
|
|
><any>true : any
|
2015-04-13 21:36:11 +02:00
|
|
|
>true : boolean
|
2015-02-05 00:33:53 +01:00
|
|
|
|
|
|
|
[`hello bye`]() { }
|
2015-04-13 21:36:11 +02:00
|
|
|
>`hello bye` : string
|
|
|
|
|
2015-02-05 00:33:53 +01:00
|
|
|
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))
|
2015-02-05 00:33:53 +01:00
|
|
|
}
|