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

ADT constructors do not apply implicit conversions #685

Closed
Felalolf opened this issue Sep 28, 2023 · 0 comments · Fixed by #687
Closed

ADT constructors do not apply implicit conversions #685

Felalolf opened this issue Sep 28, 2023 · 0 comments · Fixed by #687
Labels
bug Something isn't working desugaring

Comments

@Felalolf
Copy link
Contributor

Felalolf commented Sep 28, 2023

The following snippet is causes a verification error due to an inconsistent Viper program, but should verify successfully:

type X adt {
  C{ c any }
}

func foo() {
  x := C{5}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working desugaring
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant