File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -494,8 +494,6 @@ object Denotations {
494494 * boundary of sym1. For protected access, we count the enclosing
495495 * package as access boundary.
496496 * 5. sym1 is a method but sym2 is not.
497- * 6. sym1 is a non-polymorphic method but sym2 is a polymorphic method.
498- * (to be consistent with infoMeet, see #4819)
499497 * The aim of these criteria is to give some disambiguation on access which
500498 * - does not depend on textual order or other arbitrary choices
501499 * - minimizes raising of doubleDef errors
@@ -510,7 +508,6 @@ object Denotations {
510508 accessBoundary(sym2).isProperlyContainedIn(accessBoundary(sym1)) ||
511509 sym2.is(Bridge ) && ! sym1.is(Bridge ) ||
512510 sym1.is(Method ) && ! sym2.is(Method )) ||
513- sym1.info.isInstanceOf [MethodType ] && sym2.info.isInstanceOf [PolyType ] ||
514511 sym1.info.isErroneous)
515512
516513 /** Sym preference provided types also override */
You can’t perform that action at this time.
0 commit comments