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