2015-02-03 02:36:45 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES6.ts ===
|
2015-01-09 23:45:27 +01:00
|
|
|
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
|
|
|
|
}
|