mirror of
https://github.com/swc-project/swc.git
synced 2024-12-11 07:35:15 +03:00
5 lines
101 B
TypeScript
5 lines
101 B
TypeScript
|
// @target: es6
|
||
|
var v = {
|
||
|
get [0 + 1]() { return 0 },
|
||
|
set [0 + 1](v: string) { } //No error
|
||
|
}
|