2014-11-18 01:36:30 +01:00
|
|
|
//// [computedPropertyNames1.ts]
|
|
|
|
var v = {
|
|
|
|
get [0 + 1]() { return 0 },
|
2014-11-20 00:19:18 +01:00
|
|
|
set [0 + 1](v: string) { } //No error
|
2014-11-18 01:36:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNames1.js]
|
|
|
|
var v = {
|
|
|
|
get [0 + 1]() {
|
|
|
|
return 0;
|
|
|
|
},
|
|
|
|
set [0 + 1](v) {
|
2014-11-20 00:19:18 +01:00
|
|
|
} //No error
|
2014-11-18 01:36:30 +01:00
|
|
|
};
|