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

Verify trait constraints arising from function calls #3469

Closed
jfecher opened this issue Nov 10, 2023 · 0 comments · Fixed by #3472
Closed

Verify trait constraints arising from function calls #3469

jfecher opened this issue Nov 10, 2023 · 0 comments · Fixed by #3472
Labels
bug Something isn't working

Comments

@jfecher
Copy link
Contributor

jfecher commented Nov 10, 2023

Aim

verify_trait_constraint is only called for method calls currently, leading to trait constraints from other sources (variable references, and function calls namely) never being verified.

Expected Behavior

foo(a, b) verifies any trait constraints required by foo are valid.

Bug

If foo(a, b) requires a trait constraint with no matching impl, the compiler will panic during monomorphization.

To Reproduce

Installation Method

None

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@jfecher jfecher added the bug Something isn't working label Nov 10, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Nov 10, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant