2015-01-05 22:33:44 +01:00
|
|
|
//// [emitRestParametersMethodES6.ts]
|
|
|
|
class C {
|
|
|
|
constructor(name: string, ...rest) { }
|
|
|
|
|
|
|
|
public bar(...rest) { }
|
|
|
|
public foo(x: number, ...rest) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class D {
|
|
|
|
constructor(...rest) { }
|
|
|
|
|
|
|
|
public bar(...rest) { }
|
|
|
|
public foo(x: number, ...rest) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [emitRestParametersMethodES6.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C(name, ...rest) {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype.bar = function (...rest) { };
|
|
|
|
C.prototype.foo = function (x, ...rest) { };
|
2015-01-05 22:33:44 +01:00
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
var D = (function () {
|
|
|
|
function D(...rest) {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
D.prototype.bar = function (...rest) { };
|
|
|
|
D.prototype.foo = function (x, ...rest) { };
|
2015-01-05 22:33:44 +01:00
|
|
|
return D;
|
|
|
|
})();
|