Skip to content

Commit e50bf71

Browse files
committed
Widen before checking types in assumedCanEqual
1 parent 28454fa commit e50bf71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,8 @@ trait Implicits:
898898
case TypeBounds(lo, hi) if lo.ne(hi) && !t.symbol.is(Opaque) => apply(hi)
899899
case _ => t
900900
}
901+
case t: SingletonType =>
902+
apply(t.widen)
901903
case t: RefinedType =>
902904
apply(t.parent)
903905
case _ =>

0 commit comments

Comments
 (0)