mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
452 B
TypeScript
18 lines
452 B
TypeScript
//// [tests/cases/compiler/collisionThisExpressionAndEnumInGlobal.ts] ////
|
|
|
|
//// [collisionThisExpressionAndEnumInGlobal.ts]
|
|
enum _this { // Error
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
var f = () => this;
|
|
|
|
//// [collisionThisExpressionAndEnumInGlobal.js]
|
|
"use strict";
|
|
var _this;
|
|
(function (_this) {
|
|
_this[_this["_thisVal1"] = 0] = "_thisVal1";
|
|
_this[_this["_thisVal2"] = 1] = "_thisVal2";
|
|
})(_this || (_this = {}));
|
|
var f = () => this;
|