64 lines
955 B
Text
64 lines
955 B
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts ===
|
|
var s: string;
|
|
>s : string
|
|
|
|
var n: number;
|
|
>n : number
|
|
|
|
var a: any;
|
|
>a : any
|
|
|
|
class C {
|
|
>C : C
|
|
|
|
get [s]() { return 0;}
|
|
>s : string
|
|
>0 : number
|
|
|
|
set [n](v) { }
|
|
>n : number
|
|
>v : any
|
|
|
|
static 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
|
|
|
|
static set [""](v) { }
|
|
>"" : string
|
|
>v : any
|
|
|
|
get [0]() { return 0; }
|
|
>0 : number
|
|
>0 : number
|
|
|
|
set [a](v) { }
|
|
>a : any
|
|
>v : any
|
|
|
|
static 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
|
|
}
|