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
The first few commits in the PR are just general refactoring. I was intending them for some other code I didn't get around to writing yet, but might as well land them now.
cc @japaricFixes#19541
These basically don't work well together. The following works:
The following gives an error (the wrong error too), but should compile:
In this case,
B
should be treated like an associated type onFoo
.I am not sure if
type B = int
or eventype B: Baz
should be allowed inFoo
, but I assume not (at least for now).When the above works, we should require super trait associated types are given in type bindings, e.g.,
Foo<A=int, B=int>
.We should also allow
Self::B
in the body ofFoo
and if typeT
has boundFoo
, then we should allowT::B
.The text was updated successfully, but these errors were encountered: