11 lines
249 B
TypeScript
11 lines
249 B
TypeScript
//// [computedPropertyNames1_ES6.ts]
|
|
var v = {
|
|
get [0 + 1]() { return 0 },
|
|
set [0 + 1](v: string) { } //No error
|
|
}
|
|
|
|
//// [computedPropertyNames1_ES6.js]
|
|
var v = {
|
|
get [0 + 1]() { return 0; },
|
|
set [0 + 1](v) { } //No error
|
|
};
|