You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected the x.foo() call to resolve since x: T and U: Bar implies T: Foo
I'm not sure if this explicitness is expected from the language... Or, well, at least in Rust I get an error that says "the trait bound T: Foo is not satisfied, the trait Foo is not implemented for T" on Bar<T>.
Aim
Attempted to compile a program where a trait constrains one of its generic arguments:
Note: this is blocking trait aliases of the form:
Expected Behavior
Expected the
x.foo()
call to resolve sincex: T
andU: Bar<T>
impliesT: Foo
Bug
The method call does not resolve:
To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
Note: need to update the docs that reference this issue
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.37.0 noirc version = 0.37.0+fb1a8ca67c58d87991358078e6c532b49824fdb8 (git version hash: fb1a8ca, 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: