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