Skip to content

Show better error message for unresolved references due to missing prefix #528

@mhegazy

Description

@mhegazy
module Foo {
    class X {
      public static F() {}
      public static G() { F(); }
    }
}

Current error is:

Cannot find name 'F'.

Suggestion:

Cannot find name 'F'. Did you mean to prefix the static function invocation with the class name, 'X.F()' ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions