cce4bfbc7c
* Revert changes for template literal types, keeping tests. * Update Baselines and/or Applied Lint Fixes Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
76 lines
1.1 KiB
Plaintext
76 lines
1.1 KiB
Plaintext
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.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] : number
|
|
>s : string
|
|
>0 : 0
|
|
|
|
set [n](v) { }
|
|
>[n] : any
|
|
>n : number
|
|
>v : any
|
|
|
|
static get [s + s]() { return 0; }
|
|
>[s + s] : number
|
|
>s + s : string
|
|
>s : string
|
|
>s : string
|
|
>0 : 0
|
|
|
|
set [s + n](v) { }
|
|
>[s + n] : any
|
|
>s + n : string
|
|
>s : string
|
|
>n : number
|
|
>v : any
|
|
|
|
get [+s]() { return 0; }
|
|
>[+s] : number
|
|
>+s : number
|
|
>s : string
|
|
>0 : 0
|
|
|
|
static set [""](v) { }
|
|
>[""] : any
|
|
>"" : ""
|
|
>v : any
|
|
|
|
get [0]() { return 0; }
|
|
>[0] : number
|
|
>0 : 0
|
|
>0 : 0
|
|
|
|
set [a](v) { }
|
|
>[a] : any
|
|
>a : any
|
|
>v : any
|
|
|
|
static get [<any>true]() { return 0; }
|
|
>[<any>true] : number
|
|
><any>true : any
|
|
>true : true
|
|
>0 : 0
|
|
|
|
set [`hello bye`](v) { }
|
|
>[`hello bye`] : any
|
|
>`hello bye` : "hello bye"
|
|
>v : any
|
|
|
|
get [`hello ${a} bye`]() { return 0; }
|
|
>[`hello ${a} bye`] : number
|
|
>`hello ${a} bye` : string
|
|
>a : any
|
|
>0 : 0
|
|
}
|