2014-07-13 01:04:16 +02:00
|
|
|
//// [collisionSuperAndLocalVarInMethod.ts]
|
|
|
|
var _super = 10; // No Error
|
|
|
|
class Foo {
|
|
|
|
x() {
|
|
|
|
var _super = 10; // No error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class b extends Foo {
|
|
|
|
public foo() {
|
|
|
|
var _super = 10; // Should be error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class c extends Foo {
|
|
|
|
public foo() {
|
|
|
|
var x = () => {
|
|
|
|
var _super = 10; // Should be error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [collisionSuperAndLocalVarInMethod.js]
|
|
|
|
var __extends = 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 __();
|
|
|
|
};
|
2014-08-15 22:18:54 +02:00
|
|
|
var _super = 10; // No Error
|
2014-07-13 01:04:16 +02:00
|
|
|
var Foo = (function () {
|
|
|
|
function Foo() {
|
|
|
|
}
|
|
|
|
Foo.prototype.x = function () {
|
2014-08-15 22:18:54 +02:00
|
|
|
var _super = 10; // No error
|
2014-07-13 01:04:16 +02:00
|
|
|
};
|
|
|
|
return Foo;
|
|
|
|
})();
|
|
|
|
var b = (function (_super) {
|
|
|
|
__extends(b, _super);
|
|
|
|
function b() {
|
|
|
|
_super.apply(this, arguments);
|
|
|
|
}
|
|
|
|
b.prototype.foo = function () {
|
2014-08-15 22:18:54 +02:00
|
|
|
var _super = 10; // Should be error
|
2014-07-13 01:04:16 +02:00
|
|
|
};
|
|
|
|
return b;
|
|
|
|
})(Foo);
|
|
|
|
var c = (function (_super) {
|
|
|
|
__extends(c, _super);
|
|
|
|
function c() {
|
|
|
|
_super.apply(this, arguments);
|
|
|
|
}
|
|
|
|
c.prototype.foo = function () {
|
|
|
|
var x = function () {
|
2014-08-15 22:18:54 +02:00
|
|
|
var _super = 10; // Should be error
|
2014-07-13 01:04:16 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
return c;
|
|
|
|
})(Foo);
|