Skip to content

Instance property is not a "block-scoped variable" #25356

@DanielRosenwasser

Description

@DanielRosenwasser
class Foo {
    b = this.a
    a = 10
}

Expected: Property 'a' is used before its initialization.
Actual: Block-scoped variable 'a' used before its declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFixedA 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