Skip to content

Commit a26d6c7

Browse files
committed
Add comment
1 parent 1f52e1e commit a26d6c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ object Denotations {
529529
try infoMeet(info1, info2)
530530
catch {
531531
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.
532535
if (preferSym(sym2, sym1)) info2
533536
else if (preferSym(sym1, sym2)) info1
534537
else if (pre.widen.classSymbol.is(Scala2x) || ctx.scala2Mode)

0 commit comments

Comments
 (0)