mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
//// [tests/cases/compiler/collisionThisExpressionAndAmbientVarInGlobal.ts] ////
|
|
|
|
//// [collisionThisExpressionAndAmbientVarInGlobal.ts]
|
|
declare var _this: number; // no error as no code gen
|
|
var f = () => this;
|
|
_this = 10; // Error
|
|
|
|
//// [collisionThisExpressionAndAmbientVarInGlobal.js]
|
|
"use strict";
|
|
var f = () => this;
|
|
_this = 10; // Error
|