[microsoft/TypeScript] Global 'this' capture logic is slightly wrong in `--noImplicitThis` (Issue #63001)
DRANK
DanielRosenwasser created an issue (microsoft/TypeScript#63001) ```ts // @strict: true function f(this: typeof globalThis) { return () => this; } ``` **Expected:** no error **Actual:** >The containing arrow function captures the global value of 'this'. I think we just need to add an `isSourceFile(container)` check or something. -- Reply to this email directly or view it on GitHub: https://github.com/microsoft/TypeScript/issues/63001 You are receiving this because you are subscribed to this thread. Message ID: <microsoft/TypeScript/issues/63001@github.com>
1 comments
👀 github.com/microsoft/Type…