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 1f52e1e commit a26d6c7Copy full SHA for a26d6c7
compiler/src/dotty/tools/dotc/core/Denotations.scala
@@ -529,6 +529,9 @@ object Denotations {
529
try infoMeet(info1, info2)
530
catch {
531
case ex: MergeError =>
532
+ // TODO: this picks one type over the other whereas it might be better
533
+ // to return a MultiDenotation instead. But doing so would affect lots of
534
+ // things, starting with the return type of this method.
535
if (preferSym(sym2, sym1)) info2
536
else if (preferSym(sym1, sym2)) info1
537
else if (pre.widen.classSymbol.is(Scala2x) || ctx.scala2Mode)
0 commit comments