72 lines
1.8 KiB
TypeScript
72 lines
1.8 KiB
TypeScript
//// [systemModule8.ts]
|
|
|
|
export var x;
|
|
x = 1;
|
|
x++;
|
|
x--;
|
|
++x;
|
|
--x;
|
|
x += 1;
|
|
x -= 1;
|
|
x *= 1;
|
|
x /= 1;
|
|
x |= 1;
|
|
x &= 1;
|
|
x + 1;
|
|
x - 1;
|
|
x & 1;
|
|
x | 1;
|
|
for (x = 5;;x++) {}
|
|
for (x = 8;;x--) {}
|
|
for (x = 15;;++x) {}
|
|
for (x = 18;;--x) {}
|
|
|
|
for (let x = 50;;) {}
|
|
function foo() {
|
|
x = 100;
|
|
}
|
|
|
|
export let [y] = [1];
|
|
export const {a: z0, b: {c: z1}} = {a: true, b: {c: "123"}};
|
|
for ([x] of [[1]]) {}
|
|
|
|
//// [systemModule8.js]
|
|
System.register([], function(exports_1, context_1) {
|
|
"use strict";
|
|
var __moduleName = context_1 && context_1.id;
|
|
var x, y, z0, z1;
|
|
function foo() {
|
|
exports_1("x", x = 100);
|
|
}
|
|
return {
|
|
setters:[],
|
|
execute: function() {
|
|
exports_1("x", x = 1);
|
|
(exports_1("x", ++x) - 1);
|
|
(exports_1("x", --x) + 1);
|
|
exports_1("x", ++x);
|
|
exports_1("x", --x);
|
|
exports_1("x", x += 1);
|
|
exports_1("x", x -= 1);
|
|
exports_1("x", x *= 1);
|
|
exports_1("x", x /= 1);
|
|
exports_1("x", x |= 1);
|
|
exports_1("x", x &= 1);
|
|
x + 1;
|
|
x - 1;
|
|
x & 1;
|
|
x | 1;
|
|
for (exports_1("x", x = 5);; (exports_1("x", ++x) - 1)) { }
|
|
for (exports_1("x", x = 8);; (exports_1("x", --x) + 1)) { }
|
|
for (exports_1("x", x = 15);; exports_1("x", ++x)) { }
|
|
for (exports_1("x", x = 18);; exports_1("x", --x)) { }
|
|
for (var x_1 = 50;;) { }
|
|
exports_1("y", y = [1][0]);
|
|
_a = { a: true, b: { c: "123" } }, exports_1("z0", z0 = _a.a), exports_1("z1", z1 = _a.b.c);
|
|
for (var _i = 0, _b = [[1]]; _i < _b.length; _i++) {
|
|
exports_1("x", x = _b[_i][0]);
|
|
}
|
|
}
|
|
}
|
|
var _a;
|
|
});
|