We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3692ee commit c2314e9Copy full SHA for c2314e9
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -1781,8 +1781,7 @@ trait Applications extends Compatibility {
1781
1782
overload.println(i"compare($alt1, $alt2)? $tp1 $tp2 $ownerScore $winsType1 $winsType2")
1783
if winsType1 && winsType2
1784
- && alt1.widenExpr =:= alt2.widenExpr
1785
- && alt1.widenExpr.isStable
+ && (alt1.widenExpr frozen_=:= alt2.widenExpr) && alt1.widenExpr.isStable
1786
then
1787
// alternatives are the same after following ExprTypes, pick one of them
1788
// (prefer the one that is not a method, but that's arbitrary).
0 commit comments