-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #938 #957
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
Fix #938 #957
Conversation
@@ -488,6 +488,9 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling { | |||
case _ => tp2 isRef ObjectClass | |||
} | |||
compareJavaArray | |||
case tp1: ExprType if ctx.phase.id >= ctx.gettersPhase.id => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be ctx.phase.id > ctx.gettersPhase.id
like in https://github.com/dotty-staging/dotty/blob/fix-%23938/src/dotty/tools/dotc/core/TypeComparer.scala#L455 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch.
LGTM. |
/rebuild |
1 similar comment
/rebuild |
Need to avoid also symbols in ThisTypes
-Ycheck:era checked after phase resolveSuper. This was due to an overly simplistic containsPhase check.
Getters transform `T` to `=> T`. This means that `=> T <: T` might need to be true after getters. Observed in the wild tree checking t938.scala after getters.
Rebased to master |
Review by @smarter. And, maybe take it over if there are still things to do.