Accepted baselines.

This commit is contained in:
Ron Buckton 2016-04-04 14:53:14 -07:00
parent 27d0ea1904
commit f4c95c009f
68 changed files with 258 additions and 286 deletions

View file

@ -3,6 +3,9 @@ function * foo(a = yield => yield) {
}
//// [FunctionDeclaration10_es6.js]
function* foo(a) {
if (a === void 0) { a = (yield); }
}
yield;
{
}

View file

@ -3,5 +3,5 @@ function * yield() {
}
//// [FunctionDeclaration11_es6.js]
function yield() {
function* yield() {
}

View file

@ -2,4 +2,4 @@
var v = function * yield() { }
//// [FunctionDeclaration12_es6.js]
var v = , yield = function () { };
var v = function* () { }, yield = function () { };

View file

@ -6,7 +6,7 @@ function * foo() {
//// [FunctionDeclaration13_es6.js]
function foo() {
function* foo() {
// Legal to use 'yield' in a type context.
var v;
}

View file

@ -3,5 +3,5 @@ function * foo() {
}
//// [FunctionDeclaration1_es6.js]
function foo() {
function* foo() {
}

View file

@ -3,6 +3,7 @@ function*foo(yield) {
}
//// [FunctionDeclaration5_es6.js]
function* foo() { }
yield;
{
}

View file

@ -3,6 +3,6 @@ function*foo(a = yield) {
}
//// [FunctionDeclaration6_es6.js]
function foo(a) {
function* foo(a) {
if (a === void 0) { a = yield; }
}

View file

@ -6,9 +6,9 @@ function*bar() {
}
//// [FunctionDeclaration7_es6.js]
function bar() {
function* bar() {
// 'yield' here is an identifier, and not a yield expression.
function foo(a) {
function* foo(a) {
if (a === void 0) { a = yield; }
}
}

View file

@ -4,7 +4,7 @@ function * foo() {
}
//// [FunctionDeclaration9_es6.js]
function foo() {
function* foo() {
var v = (_a = {}, _a[yield] = foo, _a);
var _a;
}

View file

@ -2,4 +2,4 @@
var v = function * () { }
//// [FunctionExpression1_es6.js]
var v = function () { };
var v = function* () { };

View file

@ -2,4 +2,4 @@
var v = function * foo() { }
//// [FunctionExpression2_es6.js]
var v = function foo() { };
var v = function* foo() { };

View file

@ -2,4 +2,4 @@
var v = { *foo() { } }
//// [FunctionPropertyAssignments1_es6.js]
var v = { foo: function () { } };
var v = { foo: function* () { } };

View file

@ -2,4 +2,4 @@
var v = { *() { } }
//// [FunctionPropertyAssignments2_es6.js]
var v = { : function () { } };
var v = { : function* () { } };

View file

@ -2,4 +2,4 @@
var v = { *{ } }
//// [FunctionPropertyAssignments3_es6.js]
var v = { : function () { } };
var v = { : function* () { } };

View file

@ -2,4 +2,4 @@
var v = { * }
//// [FunctionPropertyAssignments4_es6.js]
var v = { : function () { } };
var v = {};

View file

@ -2,5 +2,5 @@
var v = { *[foo()]() { } }
//// [FunctionPropertyAssignments5_es6.js]
var v = (_a = {}, _a[foo()] = function () { }, _a);
var v = (_a = {}, _a[foo()] = function* () { }, _a);
var _a;

View file

@ -7,6 +7,6 @@ class C {
var C = (function () {
function C() {
}
C.prototype.foo = function () { };
C.prototype.foo = function* () { };
return C;
}());

View file

@ -7,6 +7,6 @@ class C {
var C = (function () {
function C() {
}
C.prototype.foo = function () { };
C.prototype.foo = function* () { };
return C;
}());

View file

@ -7,6 +7,6 @@ class C {
var C = (function () {
function C() {
}
C.prototype[foo] = function () { };
C.prototype[foo] = function* () { };
return C;
}());

View file

@ -7,6 +7,6 @@ class C {
var C = (function () {
function C() {
}
C.prototype. = function () { };
C.prototype. = function* () { };
return C;
}());

View file

@ -7,28 +7,28 @@ export default class {}
export default function() {}
//// [a.js]
System.register([], function(exports_1, context_1) {
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var default_1;
return {
setters:[],
execute: function() {
setters: [],
execute: function () {
default_1 = class {
};
exports_1("default", default_1);
}
}
};
});
//// [b.js]
System.register([], function(exports_1, context_1) {
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
function default_1() { }
exports_1("default", default_1);
return {
setters:[],
execute: function() {
setters: [],
execute: function () {
}
}
};
});

View file

@ -7,14 +7,14 @@ export default class {}
export default function() {}
//// [a.js]
(function (factory) {
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
define(dependencies, factory);
}
})(function (require, exports) {
})(["require", "exports"], function (require, exports) {
"use strict";
class default_1 {
}
@ -22,14 +22,14 @@ export default function() {}
exports.default = default_1;
});
//// [b.js]
(function (factory) {
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
define(dependencies, factory);
}
})(function (require, exports) {
})(["require", "exports"], function (require, exports) {
"use strict";
function default_1() { }
Object.defineProperty(exports, "__esModule", { value: true });

View file

@ -11,10 +11,10 @@ var g = tag `Hello ${123} World` as string;
var h = tag `Hello` as string;
//// [asOperator3.js]
var a = "" + 123 + 456;
var b = "leading " + 123 + 456;
var a = "" + (123 + 456);
var b = "leading " + (123 + 456);
var c = 123 + 456 + " trailing";
var d = ("Hello " + 123 + " World");
var d = "Hello " + 123 + " World";
var e = "Hello";
var f = 1 + (1 + " end of string");
var g = (_a = ["Hello ", " World"], _a.raw = ["Hello ", " World"], tag(_a, 123));

View file

@ -134,21 +134,21 @@ false = Math.pow(false, value);
}
value;
// array literals
['', ''] = Math.pow(['', ''], value);
_a = Math.pow(['', ''], value), "" = _a[0], "" = _a[1];
// super
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived() {
_super.call(this);
(_a = _super.prototype, _a. = Math.pow(_a., value));
(_a = _super.prototype). = Math.pow(_a., value);
var _a;
}
Derived.prototype.foo = function () {
(_a = _super.prototype, _a. = Math.pow(_a., value));
(_a = _super.prototype). = Math.pow(_a., value);
var _a;
};
Derived.sfoo = function () {
(_a = _super, _a. = Math.pow(_a., value));
(_a = _super). = Math.pow(_a., value);
var _a;
};
return Derived;
@ -175,3 +175,4 @@ foo() = Math.pow(foo(), value);
([]) = Math.pow(([]), value);
(function baz1() { }) = Math.pow((function baz1() { }), value);
(foo()) = Math.pow((foo()), value);
var _a;

View file

@ -13,11 +13,11 @@ class C {
//// [computedPropertyNames29_ES6.js]
class C {
bar() {
(() => {
() => {
var obj = {
[this.bar()]() { } // needs capture
};
});
};
return 0;
}
}

View file

@ -21,13 +21,13 @@ class Base {
class C extends Base {
constructor() {
super();
(() => {
() => {
var obj = {
// Ideally, we would capture this. But the reference is
// illegal, and not capturing this is consistent with
//treatment of other similar violations.
[(super(), "prop")]() { }
};
});
};
}
}

View file

@ -23,11 +23,11 @@ class Base {
}
class C extends Base {
foo() {
(() => {
() => {
var obj = {
[super.bar()]() { } // needs capture
};
});
};
return 0;
}
}

View file

@ -20,14 +20,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
(function (factory) {
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
define(dependencies, factory);
}
})(function (require, exports) {
})(["require", "exports"], function (require, exports) {
"use strict";
var decorator;
let Foo = class Foo {
@ -45,14 +45,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
(function (factory) {
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
define(dependencies, factory);
}
})(function (require, exports) {
})(["require", "exports"], function (require, exports) {
"use strict";
var decorator;
let default_1 = class {

View file

@ -48,12 +48,16 @@ var MyComponent = (function () {
return MyComponent;
}());
__decorate([
decorator,
__metadata('design:type', Function),
__metadata('design:paramtypes', [Object]),
__metadata('design:returntype', void 0)
decorator,
__metadata("design:typeinfo", {
type: function () { return Function; },
paramTypes: function () { return [Object]; },
returnType: function () { return void 0; }
})
], MyComponent.prototype, "method", null);
MyComponent = __decorate([
decorator,
__metadata('design:paramtypes', [service_1.default])
decorator,
__metadata("design:typeinfo", {
paramTypes: function () { return [service_1.default]; }
})
], MyComponent);

View file

@ -13,7 +13,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
let default_1 = class {
let default_1 = class default_1 {
};
default_1.y = 1;
default_1 = __decorate([

View file

@ -8,28 +8,28 @@ export default function foo() {}
//// [a.js]
System.register([], function(exports_1, context_1) {
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var Foo;
return {
setters:[],
execute: function() {
setters: [],
execute: function () {
Foo = class Foo {
};
exports_1("default", Foo);
}
}
};
});
//// [b.js]
System.register([], function(exports_1, context_1) {
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
function foo() { }
exports_1("default", foo);
return {
setters:[],
execute: function() {
setters: [],
execute: function () {
}
}
};
});

View file

@ -8,14 +8,14 @@ export default function foo() {}
//// [a.js]
(function (factory) {
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
define(dependencies, factory);
}
})(function (require, exports) {
})(["require", "exports"], function (require, exports) {
"use strict";
class Foo {
}
@ -23,14 +23,14 @@ export default function foo() {}
exports.default = Foo;
});
//// [b.js]
(function (factory) {
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
define(dependencies, factory);
}
})(function (require, exports) {
})(["require", "exports"], function (require, exports) {
"use strict";
function foo() { }
Object.defineProperty(exports, "__esModule", { value: true });

View file

@ -145,8 +145,7 @@ c3({ b: 1 }); // Implied type is { b: number|string }.
c5([1, 2, [["string"]]]); // Implied type is is [any, any, [[any]]]
c5([1, 2, [["string"]], false, true]); // Implied type is is [any, any, [[any]]]
class C2 {
constructor() {
}
constructor() { }
d3() { }
d4() { }
e0([a, b, c]) { }

View file

@ -33,21 +33,18 @@ var [c3_x, c3_y, c3_z] = [c3.x, c3.y, c3.z];
var C1 = (function () {
function C1(_a) {
var x = _a[0], y = _a[1], z = _a[2];
this.[x, y, z] = [x, y, z];
}
return C1;
}());
var C2 = (function () {
function C2(_a) {
var x = _a[0], y = _a[1], z = _a[2];
this.[x, y, z] = [x, y, z];
}
return C2;
}());
var C3 = (function () {
function C3(_a) {
var x = _a.x, y = _a.y, z = _a.z;
this.{ x, y, z } = { x, y, z };
}
return C3;
}());

View file

@ -34,7 +34,6 @@ var C1 = (function () {
function C1(k, _a) {
var a = _a[0], b = _a[1], c = _a[2];
this.k = k;
this.[a, b, c] = [a, b, c];
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
this.a = a || k;
}

View file

@ -37,7 +37,6 @@ var C1 = (function () {
function C1(k, _a) {
var a = _a[0], b = _a[1], c = _a[2];
this.k = k;
this.[a, b, c] = [a, b, c];
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
this.a = a || k;
}

View file

@ -31,7 +31,6 @@ class C2 extends C1<number, string, boolean> {
class C1 {
constructor(k, [a, b, c]) {
this.k = k;
this.[a, b, c] = [a, b, c];
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
this.a = a || k;
}

View file

@ -16,7 +16,6 @@ var [a_x1, a_x2, a_x3, a_y, a_z] = [a.x1, a.x2, a.x3, a.y, a.z];
var C1 = (function () {
function C1(_a) {
var _b = _a[0], x1 = _b.x1, x2 = _b.x2, x3 = _b.x3, y = _a[1], z = _a[2];
this.[{ x1, x2, x3 }, y, z] = [{ x1, x2, x3 }, y, z];
var foo = x1 || x2 || x3 || y || z;
var bar = this.x1 || this.x2 || this.x3 || this.y || this.z;
}

View file

@ -107,30 +107,18 @@ var f7 = function (x, y, z) {
var f8 = function (x, y, z) {
if (z === void 0) { z = 10; }
};
var f9 = function (a) {
return a;
};
var f10 = function (a) {
return a;
};
var f11 = function (a) {
return a;
};
var f9 = function (a) { return a; };
var f10 = function (a) { return a; };
var f11 = function (a) { return a; };
var f12 = function (a) {
return a;
};
// Should be valid.
var f11 = function (a) {
return a;
};
var f11 = function (a) { return a; };
// Should be valid.
var f12 = function (a) {
return a;
};
var f12 = function (a) { return a; };
// Should be valid.
var f13 = function (a) {
return a;
};
var f13 = function (a) { return a; };
// Should be valid.
var f14 = function () { };
// Should be valid.
@ -141,30 +129,20 @@ var f16 = function (a, b) {
return a + b;
};
function foo(func) { }
foo(function () {
return true;
});
foo(function () { return true; });
foo(function () { return false; });
var m;
(function (m) {
var City = (function () {
function City(x, thing) {
if (thing === void 0) { thing = function () {
return 100;
}; }
this.m = function () {
return 2 * 2 * 2;
};
if (thing === void 0) { thing = function () { return 100; }; }
this.m = function () { return 2 * 2 * 2; };
}
return City;
}());
(function (Enum) {
Enum[Enum["claw"] = (function () {
return 10;
})()] = "claw";
Enum[Enum["claw"] = (function () { return 10; })()] = "claw";
})(m.Enum || (m.Enum = {}));
var Enum = m.Enum;
m.v = function (x) {
return new City(Enum.claw);
};
m.v = function (x) { return new City(Enum.claw); };
})(m || (m = {}));

View file

@ -16,6 +16,5 @@ class C {
}
}
class D {
constructor(x, z = "hello") {
}
constructor(x, z = "hello") { }
}

View file

@ -12,8 +12,7 @@ class D extends B<number> {
//// [emitClassDeclarationWithExtensionAndTypeArgumentInES6.js]
class B {
constructor(a) {
}
constructor(a) { }
}
class C extends B {
}

View file

@ -24,9 +24,7 @@ class B<T> {
//// [emitClassDeclarationWithTypeArgumentAndOverloadInES6.js]
class B {
constructor(a) {
this.B = a;
}
constructor(a) { this.B = a; }
foo() {
return this.x;
}

View file

@ -16,9 +16,7 @@ class B<T> {
//// [emitClassDeclarationWithTypeArgumentInES6.js]
class B {
constructor(a) {
this.B = a;
}
constructor(a) { this.B = a; }
foo() {
return this.x;
}

View file

@ -19,14 +19,14 @@ array3[j0++] **= array3[j1++] **= array3[j0++] **= 1;
//// [emitCompoundExponentiationAssignmentWithIndexingOnLHS1.js]
var array0 = [1, 2, 3];
var i0 = 0;
(_a = array0, _i = ++i0, _a[_i] = Math.pow(_a[_i], 2));
(_a = array0)[_b = ++i0] = Math.pow(_a[_b], 2);
var array1 = [1, 2, 3];
var i1 = 0;
(_b = array1, _c = ++i1, _b[_c] = Math.pow(_b[_c], (_d = array1, _e = ++i1, _d[_e] = Math.pow(_d[_e], 2))));
(_c = array1)[_d = ++i1] = Math.pow(_c[_d], (_e = array1)[_f = ++i1] = Math.pow(_e[_f], 2));
var array2 = [1, 2, 3];
var i2 = 0;
(_f = array2, _g = ++i2, _f[_g] = Math.pow(_f[_g], Math.pow(array2[++i2], 2)));
(_g = array2)[_h = ++i2] = Math.pow(_g[_h], Math.pow(array2[++i2], 2));
var array3 = [2, 2, 3];
var j0 = 0, j1 = 1;
(_h = array3, _j = j0++, _h[_j] = Math.pow(_h[_j], (_k = array3, _l = j1++, _k[_l] = Math.pow(_k[_l], (_m = array3, _o = j0++, _m[_o] = Math.pow(_m[_o], 1))))));
var _a, _i, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
(_j = array3)[_k = j0++] = Math.pow(_j[_k], (_l = array3)[_m = j1++] = Math.pow(_l[_m], (_o = array3)[_p = j0++] = Math.pow(_o[_p], 1)));
var _a, _b, _e, _f, _c, _d, _g, _h, _o, _p, _l, _m, _j, _k;

View file

@ -23,7 +23,7 @@ function incrementIdx(max) {
return idx;
}
var array1 = [1, 2, 3, 4, 5];
(_a = array1, _i = incrementIdx(array1.length), _a[_i] = Math.pow(_a[_i], 3));
(_b = array1, _c = incrementIdx(array1.length), _b[_c] = Math.pow(_b[_c], (_d = array1, _e = incrementIdx(array1.length), _d[_e] = Math.pow(_d[_e], 2))));
(_f = array1, _g = incrementIdx(array1.length), _f[_g] = Math.pow(_f[_g], Math.pow(array1[incrementIdx(array1.length)], 2)));
var _a, _i, _b, _c, _d, _e, _f, _g;
(_a = array1)[_b = incrementIdx(array1.length)] = Math.pow(_a[_b], 3);
(_c = array1)[_d = incrementIdx(array1.length)] = Math.pow(_c[_d], (_e = array1)[_f = incrementIdx(array1.length)] = Math.pow(_e[_f], 2));
(_g = array1)[_h = incrementIdx(array1.length)] = Math.pow(_g[_h], Math.pow(array1[incrementIdx(array1.length)], 2));
var _a, _b, _e, _f, _c, _d, _g, _h;

View file

@ -18,10 +18,10 @@ function foo() {
globalCounter += 1;
return { prop: 2 };
}
(_a = foo(), _a.prop = Math.pow(_a.prop, 2));
var result0 = (_b = foo(), _b.prop = Math.pow(_b.prop, 2));
(_c = foo(), _c.prop = Math.pow(_c.prop, (_d = foo(), _d.prop = Math.pow(_d.prop, 2))));
var result1 = (_e = foo(), _e.prop = Math.pow(_e.prop, (_f = foo(), _f.prop = Math.pow(_f.prop, 2))));
(_g = foo(), _g.prop = Math.pow(_g.prop, Math.pow(foo().prop, 2)));
var result2 = (_h = foo(), _h.prop = Math.pow(_h.prop, Math.pow(foo().prop, 2)));
var _a, _b, _c, _d, _e, _f, _g, _h;
(_a = foo()).prop = Math.pow(_a.prop, 2);
var result0 = (_b = foo()).prop = Math.pow(_b.prop, 2);
(_c = foo()).prop = Math.pow(_c.prop, (_d = foo()).prop = Math.pow(_d.prop, 2));
var result1 = (_e = foo()).prop = Math.pow(_e.prop, (_f = foo()).prop = Math.pow(_f.prop, 2));
(_g = foo()).prop = Math.pow(_g.prop, Math.pow(foo().prop, 2));
var result2 = (_h = foo()).prop = Math.pow(_h.prop, Math.pow(foo().prop, 2));
var _a, _b, _d, _c, _f, _e, _g, _h;

View file

@ -18,18 +18,15 @@ class E {
//// [emitDefaultParametersMethodES6.js]
class C {
constructor(t, z, x, y = "hello") {
}
constructor(t, z, x, y = "hello") { }
foo(x, t = false) { }
foo1(x, t = false, ...rest) { }
bar(t = false) { }
boo(t = false, ...rest) { }
}
class D {
constructor(y = "hello") {
}
constructor(y = "hello") { }
}
class E {
constructor(y = "hello", ...rest) {
}
constructor(y = "hello", ...rest) { }
}

View file

@ -40,14 +40,14 @@ var temp: any;
//// [emitExponentiationOperator4.js]
var temp;
Math.pow(temp, 3);
Math.pow((--temp), 3);
Math.pow((++temp), 3);
Math.pow((temp--), 3);
Math.pow((temp++), 3);
Math.pow(1, Math.pow((--temp), 3));
Math.pow(1, Math.pow((++temp), 3));
Math.pow(1, Math.pow((temp--), 3));
Math.pow(1, Math.pow((temp++), 3));
Math.pow(--temp, 3);
Math.pow(++temp, 3);
Math.pow(temp--, 3);
Math.pow(temp++, 3);
Math.pow(1, Math.pow(--temp, 3));
Math.pow(1, Math.pow(++temp, 3));
Math.pow(1, Math.pow(temp--, 3));
Math.pow(1, Math.pow(temp++, 3));
Math.pow((void --temp), 3);
Math.pow((void temp--), 3);
Math.pow((void 3), 4);

View file

@ -32,22 +32,22 @@ var t1 = 10;
var t2 = 10;
var s;
// With TemplateTail
(Math.pow(t1, -t2)) + " world";
(Math.pow((-t1), t2) - t1) + " world";
(Math.pow((-++t1), t2) - t1) + " world";
(Math.pow((-t1++), t2) - t1) + " world";
(Math.pow((~t1), Math.pow(t2, --t1))) + " world";
Math.pow(t1, -t2) + " world";
Math.pow((-t1), t2) - t1 + " world";
Math.pow((-++t1), t2) - t1 + " world";
Math.pow((-t1++), t2) - t1 + " world";
Math.pow((~t1), Math.pow(t2, --t1)) + " world";
typeof (Math.pow(t1, Math.pow(t2, t1))) + " world";
// TempateHead & TemplateTail are empt
(Math.pow(t1, -t2)) + " hello world " + (Math.pow(t1, -t2));
(Math.pow((-t1), t2) - t1) + " hello world " + (Math.pow((-t1), t2) - t1);
(Math.pow((-++t1), t2) - t1) + " hello world " + (Math.pow(t1, Math.pow((-++t1), -t1)));
(Math.pow((-t1++), t2) - t1) + " hello world " + (Math.pow(t2, Math.pow((-t1++), -t1)));
(Math.pow((~t1), Math.pow(t2, --t1))) + " hello world " + (Math.pow((~t1), Math.pow(t2, --t1)));
Math.pow(t1, -t2) + " hello world " + Math.pow(t1, -t2);
Math.pow((-t1), t2) - t1 + " hello world " + (Math.pow((-t1), t2) - t1);
Math.pow((-++t1), t2) - t1 + " hello world " + Math.pow(t1, Math.pow((-++t1), -t1));
Math.pow((-t1++), t2) - t1 + " hello world " + Math.pow(t2, Math.pow((-t1++), -t1));
Math.pow((~t1), Math.pow(t2, --t1)) + " hello world " + Math.pow((~t1), Math.pow(t2, --t1));
typeof (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + typeof (Math.pow(t1, Math.pow(t2, t1)));
// With templateHead
"hello " + (Math.pow((-t1), t2) - t1);
"hello " + (Math.pow((-++t1), t2) - t1);
"hello " + (Math.pow((-t1++), t2) - t1);
"hello " + (Math.pow((~t1), Math.pow(t2, --t1)));
"hello " + Math.pow((~t1), Math.pow(t2, --t1));
"hello " + typeof (Math.pow(t1, Math.pow(t2, t1)));

View file

@ -32,22 +32,22 @@ var t1 = 10;
var t2 = 10;
var s;
// TempateHead & TemplateTail are empty
"" + (Math.pow(t1, t2));
"" + (Math.pow(t1, Math.pow(t2, t1)));
"" + Math.pow(t1, t2);
"" + Math.pow(t1, Math.pow(t2, t1));
"" + (t1 + Math.pow(t2, t1));
"" + (Math.pow(t1, t2) + t1);
"" + (t1 + Math.pow(t2, t2) + t1);
"" + typeof (Math.pow(t1, Math.pow(t2, t1)));
"" + (1 + typeof (Math.pow(t1, Math.pow(t2, t1))));
"" + (Math.pow(t1, t2)) + (Math.pow(t1, t2));
"" + (Math.pow(t1, Math.pow(t2, t1))) + (Math.pow(t1, Math.pow(t2, t1)));
"" + Math.pow(t1, t2) + Math.pow(t1, t2);
"" + Math.pow(t1, Math.pow(t2, t1)) + Math.pow(t1, Math.pow(t2, t1));
"" + (t1 + Math.pow(t2, t1)) + (t1 + Math.pow(t2, t1));
"" + (Math.pow(t1, t2) + t1) + (Math.pow(t1, t2) + t1);
"" + (t1 + Math.pow(t2, t2) + t1) + (t1 + Math.pow(t2, t2) + t1);
"" + typeof (Math.pow(t1, Math.pow(t2, t1))) + typeof (Math.pow(t1, Math.pow(t2, t1)));
(Math.pow(t1, t2)) + " hello world " + (Math.pow(t1, t2));
(Math.pow(t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(t1, Math.pow(t2, t1)));
(t1 + Math.pow(t2, t1)) + " hello world " + (t1 + Math.pow(t2, t1));
(Math.pow(t1, t2) + t1) + " hello world " + (Math.pow(t1, t2) + t1);
(t1 + Math.pow(t2, t2) + t1) + " hello world " + (t1 + Math.pow(t2, t2) + t1);
Math.pow(t1, t2) + " hello world " + Math.pow(t1, t2);
Math.pow(t1, Math.pow(t2, t1)) + " hello world " + Math.pow(t1, Math.pow(t2, t1));
t1 + Math.pow(t2, t1) + " hello world " + (t1 + Math.pow(t2, t1));
Math.pow(t1, t2) + t1 + " hello world " + (Math.pow(t1, t2) + t1);
t1 + Math.pow(t2, t2) + t1 + " hello world " + (t1 + Math.pow(t2, t2) + t1);
typeof (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + typeof (Math.pow(t1, Math.pow(t2, t1)));

View file

@ -32,21 +32,21 @@ var t1 = 10;
var t2 = 10;
var s;
// With templateHead
"hello " + (Math.pow(t1, t2));
"hello " + (Math.pow(t1, Math.pow(t2, t1)));
"hello " + Math.pow(t1, t2);
"hello " + Math.pow(t1, Math.pow(t2, t1));
"hello " + (t1 + Math.pow(t2, t1));
"hello " + (Math.pow(t1, t2) + t1);
"hello " + (t1 + Math.pow(t2, t2) + t1);
"hello " + typeof (Math.pow(t1, Math.pow(t2, t1)));
"hello " + (1 + typeof (Math.pow(t1, Math.pow(t2, t1))));
"hello " + (Math.pow(t1, t2)) + (Math.pow(t1, t2));
"hello " + (Math.pow(t1, Math.pow(t2, t1))) + (Math.pow(t1, Math.pow(t2, t1)));
"hello " + Math.pow(t1, t2) + Math.pow(t1, t2);
"hello " + Math.pow(t1, Math.pow(t2, t1)) + Math.pow(t1, Math.pow(t2, t1));
"hello " + (t1 + Math.pow(t2, t1)) + (t1 + Math.pow(t2, t1));
"hello " + (Math.pow(t1, t2) + t1) + (Math.pow(t1, t2) + t1);
"hello " + (t1 + Math.pow(t2, t2) + t1) + (t1 + Math.pow(t2, t2) + t1);
"hello " + typeof (Math.pow(t1, Math.pow(t2, t1))) + typeof (Math.pow(t1, Math.pow(t2, t1)));
"hello " + (Math.pow(t1, t2)) + " hello world " + (Math.pow(t1, t2));
"hello " + (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(t1, Math.pow(t2, t1)));
"hello " + Math.pow(t1, t2) + " hello world " + Math.pow(t1, t2);
"hello " + Math.pow(t1, Math.pow(t2, t1)) + " hello world " + Math.pow(t1, Math.pow(t2, t1));
"hello " + (t1 + Math.pow(t2, t1)) + " hello world " + (t1 + Math.pow(t2, t1));
"hello " + (Math.pow(t1, t2) + t1) + " hello world " + (Math.pow(t1, t2) + t1);
"hello " + (t1 + Math.pow(t2, t2) + t1) + " hello world " + (t1 + Math.pow(t2, t2) + t1);

View file

@ -33,22 +33,22 @@ var t1 = 10;
var t2 = 10;
var s;
// With TemplateTail
(Math.pow(t1, t2)) + " world";
(Math.pow(t1, Math.pow(t2, t1))) + " world";
(t1 + Math.pow(t2, t1)) + " world";
(Math.pow(t1, t2) + t1) + " world";
(t1 + Math.pow(t2, t2) + t1) + " world";
Math.pow(t1, t2) + " world";
Math.pow(t1, Math.pow(t2, t1)) + " world";
t1 + Math.pow(t2, t1) + " world";
Math.pow(t1, t2) + t1 + " world";
t1 + Math.pow(t2, t2) + t1 + " world";
typeof (Math.pow(t1, Math.pow(t2, t1))) + " world";
(1 + typeof (Math.pow(t1, Math.pow(t2, t1)))) + " world";
"" + (Math.pow(t1, t2)) + (Math.pow(t1, t2)) + " world";
"" + (Math.pow(t1, Math.pow(t2, t1))) + (Math.pow(t1, Math.pow(t2, t1))) + " world";
1 + typeof (Math.pow(t1, Math.pow(t2, t1))) + " world";
"" + Math.pow(t1, t2) + Math.pow(t1, t2) + " world";
"" + Math.pow(t1, Math.pow(t2, t1)) + Math.pow(t1, Math.pow(t2, t1)) + " world";
"" + (t1 + Math.pow(t2, t1)) + (t1 + Math.pow(t2, t1)) + " world";
"" + (Math.pow(t1, t2) + t1) + (Math.pow(t1, t2) + t1) + " world";
"" + (t1 + Math.pow(t2, t2) + t1) + (t1 + Math.pow(t2, t2) + t1) + " world";
"" + typeof (Math.pow(t1, Math.pow(t2, t1))) + typeof (Math.pow(t1, Math.pow(t2, t1))) + " world";
(Math.pow(t1, t2)) + " hello world " + (Math.pow(t1, t2)) + " !!";
(Math.pow(t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(t1, Math.pow(t2, t1))) + " !!";
(t1 + Math.pow(t2, t1)) + " hello world " + (t1 + Math.pow(t2, t1)) + " !!";
(Math.pow(t1, t2) + t1) + " hello world " + (Math.pow(t1, t2) + t1) + " !!";
(t1 + Math.pow(t2, t2) + t1) + " hello world " + (t1 + Math.pow(t2, t2) + t1) + " !!";
Math.pow(t1, t2) + " hello world " + Math.pow(t1, t2) + " !!";
Math.pow(t1, Math.pow(t2, t1)) + " hello world " + Math.pow(t1, Math.pow(t2, t1)) + " !!";
t1 + Math.pow(t2, t1) + " hello world " + (t1 + Math.pow(t2, t1)) + " !!";
Math.pow(t1, t2) + t1 + " hello world " + (Math.pow(t1, t2) + t1) + " !!";
t1 + Math.pow(t2, t2) + t1 + " hello world " + (t1 + Math.pow(t2, t2) + t1) + " !!";
typeof (Math.pow(t1, Math.pow(t2, t1))) + " hello world " + typeof (Math.pow(t1, Math.pow(t2, t1))) + " !!";

View file

@ -6,7 +6,7 @@ function f([] = [1,2,3,4]) {
//// [emptyArrayBindingPatternParameter04.js]
function f(_a) {
var _a = [1, 2, 3, 4];
_a = [1, 2, 3, 4];
var x, y, z;
}

View file

@ -6,7 +6,7 @@ function f({} = {a: 1, b: "2", c: true}) {
//// [emptyObjectBindingPatternParameter04.js]
function f(_a) {
var _a = { a: 1, b: "2", c: true };
_a = { a: 1, b: "2", c: true };
var x, y, z;
}

View file

@ -67,12 +67,12 @@
for (var _u = {}, _v = {}; false; void 0) {
}
function f(_a, _b, _c) {
var _a = a;
var _b = a;
_a = a;
_b = a;
var _d = (_c === void 0 ? a : _c).p, _e = _d === void 0 ? a : _d;
return function (_a, _b, _c) {
var _a = a;
var _b = a;
_a = a;
_b = a;
var _d = (_c === void 0 ? a : _c).p, _e = _d === void 0 ? a : _d;
return a;
};

View file

@ -52,31 +52,31 @@
//// [emptyVariableDeclarationBindingPatterns01_ES6.js]
(function () {
var a;
var { } = a;
let { } = a;
const { } = a;
var {} = a;
let {} = a;
const {} = a;
var [] = a;
let [] = a;
const [] = a;
var { } = a, [] = a;
let { } = a, [] = a;
const { } = a, [] = a;
var { p1: { }, p2: [] } = a;
let { p1: { }, p2: [] } = a;
const { p1: { }, p2: [] } = a;
for (var { } = {}, { } = {}; false; void 0) {
var {} = a, [] = a;
let {} = a, [] = a;
const {} = a, [] = a;
var { p1: {}, p2: [] } = a;
let { p1: {}, p2: [] } = a;
const { p1: {}, p2: [] } = a;
for (var {} = {}, {} = {}; false; void 0) {
}
function f({ } = a, [] = a, { p: { } = a } = a) {
return ({ } = a, [] = a, { p: { } = a } = a) => a;
function f({} = a, [] = a, { p: {} = a } = a) {
return ({} = a, [] = a, { p: {} = a } = a) => a;
}
})();
(function () {
const ns = [];
for (var { } of ns) {
for (var {} of ns) {
}
for (let { } of ns) {
for (let {} of ns) {
}
for (const { } of ns) {
for (const {} of ns) {
}
for (var [] of ns) {
}

View file

@ -12,9 +12,9 @@
//// [emptyVariableDeclarationBindingPatterns02_ES6.js]
(function () {
var { };
let { };
const { };
var {};
let {};
const {};
var [];
let [];
const [];

View file

@ -83,9 +83,9 @@ var __extends = (this && this.__extends) || function (d, b) {
//super call in class constructor with no base type
var NoBase = (function () {
function NoBase() {
_super.call(this);
//super call in class member initializer with no base type
this.p = _super.call(this);
_super.call(this);
}
//super call in class member function with no base type
NoBase.prototype.fn = function () {

View file

@ -37,17 +37,17 @@ var s;
"" + (Math.pow(-t1, t2) - t1);
"" + (Math.pow(-++t1, t2) - t1);
"" + (Math.pow(-t1++, t2) - t1);
"" + (Math.pow(!t1, Math.pow(t2, --t1)));
"" + (Math.pow(typeof t1, Math.pow(t2, t1)));
"" + Math.pow(!t1, Math.pow(t2, --t1));
"" + Math.pow(typeof t1, Math.pow(t2, t1));
"" + (Math.pow(-t1, t2) - t1) + (Math.pow(-t1, t2) - t1);
"" + (Math.pow(-++t1, t2) - t1) + (Math.pow(-++t1, t2) - t1);
"" + (Math.pow(-t1++, t2) - t1) + (Math.pow(-t1++, t2) - t1);
"" + (Math.pow(!t1, Math.pow(t2, --t1))) + (Math.pow(!t1, Math.pow(t2, --t1)));
"" + (Math.pow(typeof t1, Math.pow(t2, t1))) + (Math.pow(typeof t1, Math.pow(t2, t1)));
"" + Math.pow(!t1, Math.pow(t2, --t1)) + Math.pow(!t1, Math.pow(t2, --t1));
"" + Math.pow(typeof t1, Math.pow(t2, t1)) + Math.pow(typeof t1, Math.pow(t2, t1));
"" + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + (1 + Math.pow(typeof t1, Math.pow(t2, t1)));
(Math.pow(-t1, t2) - t1) + " hello world " + (Math.pow(-t1, t2) - t1);
(Math.pow(-++t1, t2) - t1) + " hello world " + (Math.pow(-++t1, t2) - t1);
(Math.pow(-t1++, t2) - t1) + " hello world " + (Math.pow(-t1++, t2) - t1);
(Math.pow(!t1, Math.pow(t2, --t1))) + " hello world " + (Math.pow(!t1, Math.pow(t2, --t1)));
(Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(typeof t1, Math.pow(t2, t1)));
(1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1)));
Math.pow(-t1, t2) - t1 + " hello world " + (Math.pow(-t1, t2) - t1);
Math.pow(-++t1, t2) - t1 + " hello world " + (Math.pow(-++t1, t2) - t1);
Math.pow(-t1++, t2) - t1 + " hello world " + (Math.pow(-t1++, t2) - t1);
Math.pow(!t1, Math.pow(t2, --t1)) + " hello world " + Math.pow(!t1, Math.pow(t2, --t1));
Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + Math.pow(typeof t1, Math.pow(t2, t1));
1 + Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1)));

View file

@ -37,18 +37,18 @@ var s;
"hello " + (Math.pow(-t1, t2) - t1);
"hello " + (Math.pow(-++t1, t2) - t1);
"hello " + (Math.pow(-t1++, t2) - t1);
"hello " + (Math.pow(!t1, Math.pow(t2, --t1)));
"hello " + (Math.pow(typeof t1, Math.pow(t2, t1)));
"hello " + Math.pow(!t1, Math.pow(t2, --t1));
"hello " + Math.pow(typeof t1, Math.pow(t2, t1));
"hello " + (1 + Math.pow(typeof t1, Math.pow(t2, t1)));
"hello " + (Math.pow(-t1, t2) - t1) + (Math.pow(-t1, t2) - t1);
"hello " + (Math.pow(-++t1, t2) - t1) + (Math.pow(-++t1, t2) - t1);
"hello " + (Math.pow(-t1++, t2) - t1) + (Math.pow(-t1++, t2) - t1);
"hello " + (Math.pow(!t1, Math.pow(t2, --t1))) + (Math.pow(!t1, Math.pow(t2, --t1)));
"hello " + (Math.pow(typeof t1, Math.pow(t2, t1))) + (Math.pow(typeof t1, Math.pow(t2, t1)));
"hello " + Math.pow(!t1, Math.pow(t2, --t1)) + Math.pow(!t1, Math.pow(t2, --t1));
"hello " + Math.pow(typeof t1, Math.pow(t2, t1)) + Math.pow(typeof t1, Math.pow(t2, t1));
"hello " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + (1 + Math.pow(typeof t1, Math.pow(t2, t1)));
"hello " + (Math.pow(-t1, t2) - t1) + " hello world " + (Math.pow(-t1, t2) - t1);
"hello " + (Math.pow(-++t1, t2) - t1) + " hello world " + (Math.pow(-++t1, t2) - t1);
"hello " + (Math.pow(-t1++, t2) - t1) + " hello world " + (Math.pow(-t1++, t2) - t1);
"hello " + (Math.pow(!t1, Math.pow(t2, --t1))) + " hello world " + (Math.pow(!t1, Math.pow(t2, --t1)));
"hello " + (Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(typeof t1, Math.pow(t2, t1)));
"hello " + Math.pow(!t1, Math.pow(t2, --t1)) + " hello world " + Math.pow(!t1, Math.pow(t2, --t1));
"hello " + Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + Math.pow(typeof t1, Math.pow(t2, t1));
"hello " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1)));

View file

@ -33,21 +33,21 @@ var t2 = 10;
var s;
// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
// With TemplateTail
(Math.pow(-t1, t2) - t1) + " world";
(Math.pow(-++t1, t2) - t1) + " world";
(Math.pow(-t1++, t2) - t1) + " world";
(Math.pow(!t1, Math.pow(t2, --t1))) + " world";
(Math.pow(typeof t1, Math.pow(t2, t1))) + " world";
(1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " world";
Math.pow(-t1, t2) - t1 + " world";
Math.pow(-++t1, t2) - t1 + " world";
Math.pow(-t1++, t2) - t1 + " world";
Math.pow(!t1, Math.pow(t2, --t1)) + " world";
Math.pow(typeof t1, Math.pow(t2, t1)) + " world";
1 + Math.pow(typeof t1, Math.pow(t2, t1)) + " world";
"" + (Math.pow(-t1, t2) - t1) + (Math.pow(-t1, t2) - t1) + " world";
"" + (Math.pow(-++t1, t2) - t1) + (Math.pow(-++t1, t2) - t1) + " world";
"" + (Math.pow(-t1++, t2) - t1) + (Math.pow(-t1++, t2) - t1) + " world";
"" + (Math.pow(!t1, Math.pow(t2, --t1))) + (Math.pow(!t1, Math.pow(t2, --t1))) + " world";
"" + (Math.pow(typeof t1, Math.pow(t2, t1))) + (Math.pow(typeof t1, Math.pow(t2, t1))) + " world";
"" + Math.pow(!t1, Math.pow(t2, --t1)) + Math.pow(!t1, Math.pow(t2, --t1)) + " world";
"" + Math.pow(typeof t1, Math.pow(t2, t1)) + Math.pow(typeof t1, Math.pow(t2, t1)) + " world";
"" + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " world";
(Math.pow(-t1, t2) - t1) + " hello world " + (Math.pow(-t1, t2) - t1) + " !!";
(Math.pow(-++t1, t2) - t1) + " hello world " + (Math.pow(-++t1, t2) - t1) + " !!";
(Math.pow(-t1++, t2) - t1) + " hello world " + (Math.pow(-t1++, t2) - t1) + " !!";
(Math.pow(!t1, Math.pow(t2, --t1))) + " hello world " + (Math.pow(!t1, Math.pow(t2, --t1))) + " !!";
(Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (Math.pow(typeof t1, Math.pow(t2, t1))) + " !!";
(1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " !!";
Math.pow(-t1, t2) - t1 + " hello world " + (Math.pow(-t1, t2) - t1) + " !!";
Math.pow(-++t1, t2) - t1 + " hello world " + (Math.pow(-++t1, t2) - t1) + " !!";
Math.pow(-t1++, t2) - t1 + " hello world " + (Math.pow(-t1++, t2) - t1) + " !!";
Math.pow(!t1, Math.pow(t2, --t1)) + " hello world " + Math.pow(!t1, Math.pow(t2, --t1)) + " !!";
Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + Math.pow(typeof t1, Math.pow(t2, t1)) + " !!";
1 + Math.pow(typeof t1, Math.pow(t2, t1)) + " hello world " + (1 + Math.pow(typeof t1, Math.pow(t2, t1))) + " !!";

View file

@ -35,13 +35,13 @@ export let h1: D = new D;
//// [exportNonInitializedVariablesSystem.js]
System.register([], function(exports_1, context_1) {
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var a, b, c, d, A, e, f, B, C, a1, b1, c1, d1, D, e1, f1, g1, h1;
return {
setters:[],
execute: function() {
setters: [],
execute: function () {
let;
A = (function () {
function A() {
@ -69,5 +69,5 @@ System.register([], function(exports_1, context_1) {
exports_1("g1", g1 = new D);
exports_1("h1", h1 = new D);
}
}
};
});

View file

@ -35,14 +35,14 @@ export let h1: D = new D;
//// [exportNonInitializedVariablesUMD.js]
(function (factory) {
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
define(dependencies, factory);
}
})(function (require, exports) {
})(["require", "exports"], function (require, exports) {
"use strict";
var ;
let;

View file

@ -38,4 +38,5 @@ function foo() {
}());
}
var x = {
class: C4 }, _a = void 0;
class: C4
}, _a = void 0;

View file

@ -129,52 +129,52 @@ var h;
var i;
// Basic expression
new f(1, 2, "string");
new f(1, 2, ...a);
new f(1, 2, ...a, "string");
new ((_a = f).bind.apply(_a, [void 0, 1, 2].concat(a)))();
new ((_b = f).bind.apply(_b, [void 0, 1, 2].concat(a, ["string"])))();
// Multiple spreads arguments
new f2(...a, ...a);
new f(1, 2, ...a, ...a);
new ((_c = f2).bind.apply(_c, [void 0].concat(a, a)))();
new ((_d = f).bind.apply(_d, [void 0, 1, 2].concat(a, a)))();
// Call expression
new f(1, 2, "string")();
new f(1, 2, ...a)();
new f(1, 2, ...a, "string")();
new ((_e = f).bind.apply(_e, [void 0, 1, 2].concat(a)))()();
new ((_f = f).bind.apply(_f, [void 0, 1, 2].concat(a, ["string"])))()();
// Property access expression
new b.f(1, 2, "string");
new b.f(1, 2, ...a);
new b.f(1, 2, ...a, "string");
new ((_g = b.f).bind.apply(_g, [void 0, 1, 2].concat(a)))();
new ((_h = b.f).bind.apply(_h, [void 0, 1, 2].concat(a, ["string"])))();
// Parenthesised expression
new (b.f)(1, 2, "string");
new (b.f)(1, 2, ...a);
new (b.f)(1, 2, ...a, "string");
new ((_j = (b.f)).bind.apply(_j, [void 0, 1, 2].concat(a)))();
new ((_k = (b.f)).bind.apply(_k, [void 0, 1, 2].concat(a, ["string"])))();
// Element access expression
new d[1].f(1, 2, "string");
new d[1].f(1, 2, ...a);
new d[1].f(1, 2, ...a, "string");
new ((_l = d[1].f).bind.apply(_l, [void 0, 1, 2].concat(a)))();
new ((_m = d[1].f).bind.apply(_m, [void 0, 1, 2].concat(a, ["string"])))();
// Element access expression with a punctuated key
new e["a-b"].f(1, 2, "string");
new e["a-b"].f(1, 2, ...a);
new e["a-b"].f(1, 2, ...a, "string");
new ((_o = e["a-b"].f).bind.apply(_o, [void 0, 1, 2].concat(a)))();
new ((_p = e["a-b"].f).bind.apply(_p, [void 0, 1, 2].concat(a, ["string"])))();
// Basic expression
new B(1, 2, "string");
new B(1, 2, ...a);
new B(1, 2, ...a, "string");
new ((_q = B).bind.apply(_q, [void 0, 1, 2].concat(a)))();
new ((_r = B).bind.apply(_r, [void 0, 1, 2].concat(a, ["string"])))();
// Property access expression
new c["a-b"](1, 2, "string");
new c["a-b"](1, 2, ...a);
new c["a-b"](1, 2, ...a, "string");
new ((_s = c["a-b"]).bind.apply(_s, [void 0, 1, 2].concat(a)))();
new ((_t = c["a-b"]).bind.apply(_t, [void 0, 1, 2].concat(a, ["string"])))();
// Parenthesised expression
new (c["a-b"])(1, 2, "string");
new (c["a-b"])(1, 2, ...a);
new (c["a-b"])(1, 2, ...a, "string");
new ((_u = (c["a-b"])).bind.apply(_u, [void 0, 1, 2].concat(a)))();
new ((_v = (c["a-b"])).bind.apply(_v, [void 0, 1, 2].concat(a, ["string"])))();
// Element access expression
new g[1]["a-b"](1, 2, "string");
new g[1]["a-b"](1, 2, ...a);
new g[1]["a-b"](1, 2, ...a, "string");
new ((_w = g[1]["a-b"]).bind.apply(_w, [void 0, 1, 2].concat(a)))();
new ((_x = g[1]["a-b"]).bind.apply(_x, [void 0, 1, 2].concat(a, ["string"])))();
// Element access expression with a punctuated key
new h["a-b"]["a-b"](1, 2, "string");
new h["a-b"]["a-b"](1, 2, ...a);
new h["a-b"]["a-b"](1, 2, ...a, "string");
new ((_y = h["a-b"]["a-b"]).bind.apply(_y, [void 0, 1, 2].concat(a)))();
new ((_z = h["a-b"]["a-b"]).bind.apply(_z, [void 0, 1, 2].concat(a, ["string"])))();
// Element access expression with a number
new i["a-b"][1](1, 2, "string");
new i["a-b"][1](1, 2, ...a);
new i["a-b"][1](1, 2, ...a, "string");
new ((_0 = i["a-b"][1]).bind.apply(_0, [void 0, 1, 2].concat(a)))();
new ((_1 = i["a-b"][1]).bind.apply(_1, [void 0, 1, 2].concat(a, ["string"])))();

View file

@ -103,8 +103,7 @@ function f(x, y, ...z) {
function f2(...x) {
}
class B {
constructor(x, y, ...z) {
}
constructor(x, y, ...z) { }
}
var a;
var b;

View file

@ -20,8 +20,8 @@ var C = (function () {
}());
var D = (function () {
function D(x) {
this.x = x;
_super.call(this); // error
this.x = x;
}
return D;
}());

View file

@ -171,6 +171,7 @@ var C = (function (_super) {
function hasANonBooleanReturnStatement(x) {
return '';
}
function hasTypeGuardTypeInsideTypeGuardType(x) { }
is;
A;
{
@ -231,6 +232,7 @@ function b2(a, A) {
if (a === void 0) { a = is; }
}
;
function b3() { }
is;
A;
{