Skip to content

Give a better error message for captured global 'this' #25977

Closed

Description

Users are sometimes confused as in #25975 #13842 regarding the behavior of this. When using noImplicitThis, you'll currently get

'this' implicitly has type 'any' because it does not have a type annotation.

But I think we can do a little better.

Activity

  1. added
    Bug
    Domain: Error Messages
    on Jul 26, 2018
  2. added
    Fixed
    on Jul 26, 2018
  3. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDomain: Error MessagesFixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions