Open michaeljklein opened 2 weeks ago
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
1. 2. 3. 4.
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: fb1a8ca67c58d87991358078e6c532b49824fdb8, 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