mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
487 B
Plaintext
14 lines
487 B
Plaintext
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES6.ts] ////
|
|
|
|
=== computedPropertyNames1_ES6.ts ===
|
|
var v = {
|
|
>v : Symbol(v, Decl(computedPropertyNames1_ES6.ts, 0, 3))
|
|
|
|
get [0 + 1]() { return 0 },
|
|
>[0 + 1] : Symbol([0 + 1], Decl(computedPropertyNames1_ES6.ts, 0, 9))
|
|
|
|
set [0 + 1](v: string) { } //No error
|
|
>[0 + 1] : Symbol([0 + 1], Decl(computedPropertyNames1_ES6.ts, 1, 31))
|
|
>v : Symbol(v, Decl(computedPropertyNames1_ES6.ts, 2, 16))
|
|
}
|