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

dyno: odd issue when calling init without this #25053

Open
DanilaFe opened this issue May 15, 2024 · 0 comments
Open

dyno: odd issue when calling init without this #25053

DanilaFe opened this issue May 15, 2024 · 0 comments

Comments

@DanilaFe
Copy link
Contributor

The following program:

record R {
  var x: int;

  proc init(x: int) {

  }

  proc init(x: int, y: int) {
    init(__primitive("+", x, y));
  }
}

Emits an error about being unable to pass a const int to a value of type ref R. This makes little sense to me.

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

No branches or pull requests

1 participant