-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Typing deviation in getOrElse #1045
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
Specifying the type of |
Quick analysis which might be wrong, I haven't checked it: B1 >: scala.collection.mutable.HashMap[Int, Double] where B1 >: scala.collection.mutable.HashMap[Int, Double] | scala.collection.mutable.HashMap[A, B]
A unconstrained
B unconstrained where Afterwards, we instantiate the tvars:
I'm not sure how to fix this right now. |
Actually, the issue seems to be in This should be easy to fix: instead of calling |
Compiles fine with scalac. Fails in dotty:
This code is part of #630 and it used to compile fine.
The text was updated successfully, but these errors were encountered: