-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Method in trait not a legal implementation in inheriting class (V2) #4839
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
Comments
I am not sure it is a bug in Dotty. This can be fixed with: trait StrictOptimizedSortedMapOps[K, +V, +CC[X, Y] <: Map[X, Y] with SortedMapOps[X, Y, CC]]
- extends SortedMapOps[K, V, CC] with StrictOptimizedMapOps[K, V, Map]
+ extends SortedMapOps[K, V, CC] with StrictOptimizedMapOps[K, V, CC] cc/ @julienrf |
I have the impression this is a bug in the library, not in dotty. @allanrenucci can you do a PR against the library? |
It'd be also a bug in Scalac, no? |
Introduce an extra type parameter "UnsortedCC" to pass to StrictOptimizedMapOps. See scala/scala3#4839.
Opened scala/bug#11042 to track a related soundness bug in scalac. |
Inherit `StrictOptimizedMapOps` to refine return type of map, flatmap, concat and collect. See scala/scala3#4839
Closing as the bug was not in Dotty and the library was fixed — @allanrenucci correct me if I'm wrong. |
Uh oh!
There was an error while loading. Please reload this page.
The text was updated successfully, but these errors were encountered: