Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument of custom constructor mess up logic #81

Open
kevinresol opened this issue Dec 7, 2021 · 1 comment
Open

Argument of custom constructor mess up logic #81

kevinresol opened this issue Dec 7, 2021 · 1 comment

Comments

@kevinresol
Copy link
Member

kevinresol commented Dec 7, 2021

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...

@kevinresol
Copy link
Member Author

See failing test: 6a88e05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant