65 lines
1.2 KiB
Text
65 lines
1.2 KiB
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts ===
|
|
var s: string;
|
|
>s : string
|
|
|
|
var n: number;
|
|
>n : number
|
|
|
|
var a: any;
|
|
>a : any
|
|
|
|
var v = {
|
|
>v : {}
|
|
>{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [<any>true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : {}
|
|
|
|
get [s]() { return 0; },
|
|
>s : string
|
|
>0 : number
|
|
|
|
set [n](v) { },
|
|
>n : number
|
|
>v : any
|
|
|
|
get [s + s]() { return 0; },
|
|
>s + s : string
|
|
>s : string
|
|
>s : string
|
|
>0 : number
|
|
|
|
set [s + n](v) { },
|
|
>s + n : string
|
|
>s : string
|
|
>n : number
|
|
>v : any
|
|
|
|
get [+s]() { return 0; },
|
|
>+s : number
|
|
>s : string
|
|
>0 : number
|
|
|
|
set [""](v) { },
|
|
>"" : string
|
|
>v : any
|
|
|
|
get [0]() { return 0; },
|
|
>0 : number
|
|
>0 : number
|
|
|
|
set [a](v) { },
|
|
>a : any
|
|
>v : any
|
|
|
|
get [<any>true]() { return 0; },
|
|
><any>true : any
|
|
>true : boolean
|
|
>0 : number
|
|
|
|
set [`hello bye`](v) { },
|
|
>`hello bye` : string
|
|
>v : any
|
|
|
|
get [`hello ${a} bye`]() { return 0; }
|
|
>`hello ${a} bye` : string
|
|
>a : any
|
|
>0 : number
|
|
}
|