We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a031f5 commit 7e8f401Copy full SHA for 7e8f401
src/dotty/tools/dotc/typer/RefChecks.scala
@@ -232,9 +232,9 @@ object RefChecks {
232
def compatibleTypes =
233
if (member.isType) { // intersection of bounds to refined types must be nonempty
234
member.is(BaseTypeArg) ||
235
- memberTp.overrides(otherTp) || {
+ (memberTp frozen_<:< otherTp) || {
236
val jointBounds = (memberTp.bounds & otherTp.bounds).bounds
237
- jointBounds.lo <:< jointBounds.hi
+ jointBounds.lo frozen_<:< jointBounds.hi
238
}
239
240
else
0 commit comments