mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
382 B
TypeScript
13 lines
382 B
TypeScript
//// [tests/cases/compiler/collisionThisExpressionAndAmbientClassInGlobal.ts] ////
|
|
|
|
//// [collisionThisExpressionAndAmbientClassInGlobal.ts]
|
|
declare class _this { // no error - as no code generation
|
|
}
|
|
var f = () => this;
|
|
var a = new _this(); // Error
|
|
|
|
//// [collisionThisExpressionAndAmbientClassInGlobal.js]
|
|
"use strict";
|
|
var f = () => this;
|
|
var a = new _this(); // Error
|