-
Notifications
You must be signed in to change notification settings - Fork 204
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
Polymorphic Trait Inheritance Fails #6314
Labels
bug
Something isn't working
Comments
Closed
michaeljklein
added a commit
that referenced
this issue
Oct 28, 2024
5 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 30, 2024
Co-authored-by: Tom French <[email protected]> Co-authored-by: Tom French <[email protected]>
TomAFrench
added a commit
that referenced
this issue
Oct 30, 2024
* master: (30 commits) chore: add regression tests for #4372 (#6401) chore: add regression tests for #6314 (#6381) chore: use array instead of Vec in keccak256 (#6395) fix: make keccak256 work with input lengths greater than 136 bytes (#6393) feat: support specifying generics on a struct when calling an associated function (#6306) fix: Display every bit in integer tokens (#6360) feat: better LSP hover for functions (#6376) feat: Add capacities to brillig vectors and use them in slice ops (#6332) feat: suggest removing `!` from macro call that doesn't return Quoted (#6384) fix: (formatter) correctly format quote delimiters (#6377) fix: allow globals in format strings (#6382) feat: do not increment reference counts on arrays through references (#6375) fix: (LSP) check visibility of module that re-exports item, if any (#6371) feat: let LSP suggest traits in trait bounds (#6370) fix: LSP auto-import would import public item inside private module (#6366) fix: remove assumed parent traits (#6365) fix: slightly better formatting of empty blocks with comments (#6367) fix: Fix panic in comptime code (#6361) feat: let the LSP import code action insert into existing use statements (#6358) chore: minor tweaks to comptime doc (#6357) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aim
Attempted to compile the following programs:
Single inheritance:
Double inheritance:
Expected Behavior
Expected the programs to compile successfully
Bug
Compilation fails with:
Single inheritance:
Double inheritance:
(Could be related to #6023, but this
where
clause is on animpl
)To Reproduce
Workaround
Yes
Workaround Description
Define each
impl
of the "trait alias" traitBaz
monomorphically:Additional Context
No response
Project Impact
Nice-to-have
Blocker Context
No response
Nargo Version
nargo version = 0.35.0 noirc version = 0.35.0+51ae1b324cd73fdb4fe3695b5d483a44b4aff4a9 (git version hash: 51ae1b3, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: