17 lines
383 B
Text
17 lines
383 B
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES6.ts ===
|
|
var v = {
|
|
>v : {}
|
|
>{ get [0 + 1]() { return 0 }, set [0 + 1](v: string) { } //No error} : {}
|
|
|
|
get [0 + 1]() { return 0 },
|
|
>0 + 1 : number
|
|
>0 : number
|
|
>1 : number
|
|
>0 : number
|
|
|
|
set [0 + 1](v: string) { } //No error
|
|
>0 + 1 : number
|
|
>0 : number
|
|
>1 : number
|
|
>v : string
|
|
}
|