Skip to content

Incorrect error message for use of type as a namespace #12075

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
interface OhNo {
}

declare let y: OhNo.hello;
//             ~~~~
//             'OhNo' refers to a type, but is being used as a value here.

OhNo is actually being used as a namespace, not a value. CC @jwbay in case you want to tackle this one. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions