Skip to content

support local hoist in class body #459

Open
@leafo

Description

@leafo

When using local in class block the declaration should be hoisted top so methods can access it. This already works correctly with assign, as seen in second example

class Something
  local thing
  
  new: => 
    print thing
class Something
  thing = nil
  
  new: => 
    print thing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions