Skip to content

Commit 7e8f401

Browse files
committed
More tweaks to override checks.
1 parent 3a031f5 commit 7e8f401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/dotty/tools/dotc/typer/RefChecks.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ object RefChecks {
232232
def compatibleTypes =
233233
if (member.isType) { // intersection of bounds to refined types must be nonempty
234234
member.is(BaseTypeArg) ||
235-
memberTp.overrides(otherTp) || {
235+
(memberTp frozen_<:< otherTp) || {
236236
val jointBounds = (memberTp.bounds & otherTp.bounds).bounds
237-
jointBounds.lo <:< jointBounds.hi
237+
jointBounds.lo frozen_<:< jointBounds.hi
238238
}
239239
}
240240
else

0 commit comments

Comments
 (0)