46 lines
620 B
Text
46 lines
620 B
Text
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames13.ts ===
|
||
|
var s: string;
|
||
|
>s : string
|
||
|
|
||
|
var n: number;
|
||
|
>n : number
|
||
|
|
||
|
var a: any;
|
||
|
>a : any
|
||
|
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
[s]() {}
|
||
|
>s : string
|
||
|
|
||
|
[n]() { }
|
||
|
>n : number
|
||
|
|
||
|
static [s + s]() { }
|
||
|
>s + s : string
|
||
|
>s : string
|
||
|
>s : string
|
||
|
|
||
|
[s + n]() { }
|
||
|
>s + n : string
|
||
|
>s : string
|
||
|
>n : number
|
||
|
|
||
|
[+s]() { }
|
||
|
>+s : number
|
||
|
>s : string
|
||
|
|
||
|
static [""]() { }
|
||
|
[0]() { }
|
||
|
[a]() { }
|
||
|
>a : any
|
||
|
|
||
|
static [<any>true]() { }
|
||
|
><any>true : any
|
||
|
|
||
|
[`hello bye`]() { }
|
||
|
static [`hello ${a} bye`]() { }
|
||
|
>a : any
|
||
|
}
|