-
Notifications
You must be signed in to change notification settings - Fork 1.1k
post/Iter3.scala fails to compile. ClassCast exception in typer. #840
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
Same error seems to happen in t2504.scala |
Same error seems to happen in t2293.scala |
|
https://www.diffchecker.com/trmxnro9 contains diff between typecheckings |
Ok. I have progress here. OrderingConstraint.scala: def contains(param: PolyParam): Boolean = {
val entries = boundsMap(param.binder)
entries != null && entries(param.paramNum).isInstanceOf[TypeBounds]
} becomes def contains(param: dotty.tools.dotc.core.Types.Types$PolyParam):
Boolean
= {
val entries: dotty.tools.dotc.core.Types.Types$Type[] =
OrderingConstraint.this.boundsMap().apply(param.binder()).
asInstanceOf
[dotty.tools.dotc.core.Types.Types$Type[]]
entries.==(null).unary_!().&&(true)
} after erasure. I've traced it to this line: where for expr = |
how to reproduce:
see |
Not a blocker anymore, as I have a workaroud |
This reverts commit acd7b9d.
after applying #836, #833 and #837.
The text was updated successfully, but these errors were encountered: