File tree 1 file changed +0
-3
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -494,8 +494,6 @@ object Denotations {
494
494
* boundary of sym1. For protected access, we count the enclosing
495
495
* package as access boundary.
496
496
* 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)
499
497
* The aim of these criteria is to give some disambiguation on access which
500
498
* - does not depend on textual order or other arbitrary choices
501
499
* - minimizes raising of doubleDef errors
@@ -510,7 +508,6 @@ object Denotations {
510
508
accessBoundary(sym2).isProperlyContainedIn(accessBoundary(sym1)) ||
511
509
sym2.is(Bridge ) && ! sym1.is(Bridge ) ||
512
510
sym1.is(Method ) && ! sym2.is(Method )) ||
513
- sym1.info.isInstanceOf [MethodType ] && sym2.info.isInstanceOf [PolyType ] ||
514
511
sym1.info.isErroneous)
515
512
516
513
/** Sym preference provided types also override */
You can’t perform that action at this time.
0 commit comments