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