Skip to content

Commit 706bcd1

Browse files
committed
Fix rebase breakage
1 parent 740c8e4 commit 706bcd1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ trait Applications extends Compatibility {
17071707
* a. always as good as a method or a polymorphic method.
17081708
* b. as good as a member of any other type `tp2` is `asGoodValueType(tp1, tp2) = true`
17091709
*/
1710-
def isAsGood(alt1: TermRef, tp1: Type, alt2: TermRef, tp2: Type): Boolean = trace(i"isAsSpecific $tp1 $tp2", overload) {
1710+
def isAsGood(alt1: TermRef, tp1: Type, alt2: TermRef, tp2: Type): Boolean = trace(i"isAsGood $tp1 $tp2", overload) {
17111711
tp1 match
17121712
case tp1: MethodType => // (1)
17131713
tp1.paramInfos.isEmpty && tp2.isInstanceOf[LambdaType]
@@ -1863,8 +1863,8 @@ trait Applications extends Compatibility {
18631863
def comparePrefixes =
18641864
val pre1 = widenPrefix(alt1)
18651865
val pre2 = widenPrefix(alt2)
1866-
val winsPrefix1 = isAsSpecificValueType(pre1, pre2)
1867-
val winsPrefix2 = isAsSpecificValueType(pre2, pre1)
1866+
val winsPrefix1 = isAsGoodValueType(pre1, pre2)
1867+
val winsPrefix2 = isAsGoodValueType(pre2, pre1)
18681868
if winsPrefix1 == winsPrefix2 then 0
18691869
else if winsPrefix1 then 1
18701870
else -1

project/MiMaFilters.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object MiMaFilters {
7676
val ForwardsBreakingChanges: Map[String, Seq[ProblemFilter]] = Map(
7777
// Additions that require a new minor version of tasty core
7878
Build.previousDottyVersion -> Seq(
79-
ProblemFilters.exclude[DirectMissingMethodProblem]("dotty.tools.tasty.TastyFormat.FLEXIBLEtype")
79+
ProblemFilters.exclude[DirectMissingMethodProblem]("dotty.tools.tasty.TastyFormat.FLEXIBLEtype"),
8080
ProblemFilters.exclude[DirectMissingMethodProblem]("dotty.tools.tasty.TastyFormat.TRACKED"),
8181
),
8282

0 commit comments

Comments
 (0)