TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts
2015-10-02 19:23:04 -07:00

14 lines
No EOL
242 B
TypeScript

// @target: es5
var object = {
_0: 2,
get 0() {
return this._0;
},
set 0(x: number) {
this._0 = x;
},
}
object[0] **= object[0];
object[0] **= object[0] **= 2;
object[0] **= object[0] ** 2;