We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86f339a commit c456947Copy full SHA for c456947
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -1781,7 +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 frozen_=:= alt2.widenExpr) && alt1.widenExpr.isStable
+ && alt1.widenExpr.isStable && (alt1.widenExpr frozen_=:= alt2.widenExpr)
1785
then
1786
// alternatives are the same after following ExprTypes, pick one of them
1787
// (prefer the one that is not a method, but that's arbitrary).
0 commit comments