mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
395 B
Plaintext
13 lines
395 B
Plaintext
//// [tests/cases/compiler/collisionThisExpressionAndFunctionInGlobal.ts] ////
|
|
|
|
=== collisionThisExpressionAndFunctionInGlobal.ts ===
|
|
function _this() { //Error
|
|
>_this : Symbol(_this, Decl(collisionThisExpressionAndFunctionInGlobal.ts, 0, 0))
|
|
|
|
return 10;
|
|
}
|
|
var f = () => this;
|
|
>f : Symbol(f, Decl(collisionThisExpressionAndFunctionInGlobal.ts, 3, 3))
|
|
>this : Symbol(globalThis)
|
|
|