TypeScript/tests/baselines/reference/collisionSuperAndParameter1.js
2015-05-01 10:49:54 -07:00

35 lines
776 B
TypeScript

//// [collisionSuperAndParameter1.ts]
class Foo {
}
class Foo2 extends Foo {
x() {
var lambda = (_super: number) => { // Error
}
}
}
//// [collisionSuperAndParameter1.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Foo = (function () {
function Foo() {
}
return Foo;
})();
var Foo2 = (function (_super) {
__extends(Foo2, _super);
function Foo2() {
_super.apply(this, arguments);
}
Foo2.prototype.x = function () {
var lambda = function (_super) {
};
};
return Foo2;
})(Foo);