TypeScript/tests/baselines/reference/collisionThisExpressionAndEnumInGlobal.js
2014-07-12 17:30:19 -07:00

16 lines
397 B
JavaScript

//// [collisionThisExpressionAndEnumInGlobal.ts]
enum _this { // Error
_thisVal1,
_thisVal2,
}
var f = () => this;
//// [collisionThisExpressionAndEnumInGlobal.js]
var _this = this;
var _this;
(function (_this) {
_this[_this["_thisVal1"] = 0] = "_thisVal1";
_this[_this["_thisVal2"] = 1] = "_thisVal2";
})(_this || (_this = {}));
var f = function () { return _this; };