Skip to content

Argument of custom constructor mess up logic #81

@kevinresol

Description

@kevinresol

This is an extended problem of #78.

class Issue78Model implements Model {
  @:constant var foo:Int;
  
  @:computed var bar:Int = foo + 1; // <-- this foo currently references the constructor argument
  
  public function new(foo:Int) {
        this = { foo: foo + 1 }
    }
}

I think we need a way to somehow restore the reference to class member in proper places...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions