mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
391 B
TypeScript
18 lines
391 B
TypeScript
//// [tests/cases/compiler/collisionThisExpressionAndAliasInGlobal.ts] ////
|
|
|
|
//// [collisionThisExpressionAndAliasInGlobal.ts]
|
|
namespace a {
|
|
export var b = 10;
|
|
}
|
|
var f = () => this;
|
|
import _this = a; // Error
|
|
|
|
//// [collisionThisExpressionAndAliasInGlobal.js]
|
|
"use strict";
|
|
var a;
|
|
(function (a) {
|
|
a.b = 10;
|
|
})(a || (a = {}));
|
|
var f = () => this;
|
|
var _this = a; // Error
|