TypeScript/tests/baselines/reference/computedPropertyNames16_ES5.types

65 lines
1.9 KiB
Plaintext
Raw Normal View History

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