Skip to content

Commit 7c64b9f

Browse files
committed
Fix rebase breakage
1 parent 5e0dc9c commit 7c64b9f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,6 +2591,11 @@ object TypeComparer {
25912591
def provablyDisjoint(tp1: Type, tp2: Type)(using Context): Boolean =
25922592
comparing(_.provablyDisjoint(tp1, tp2))
25932593

2594+
def liftIfHK(tp1: Type, tp2: Type,
2595+
op: (Type, Type) => Type, original: (Type, Type) => Type,
2596+
combineVariance: (Variance, Variance) => Variance)(using Context): Type =
2597+
comparing(_.liftIfHK(tp1, tp2, op, original, combineVariance))
2598+
25942599
def constValue(tp: Type)(using Context): Option[Constant] =
25952600
comparing(_.constValue(tp))
25962601

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,7 +2948,7 @@ object Types {
29482948

29492949
/** Like `make`, but also supports higher-kinded types as argument */
29502950
def makeHk(tp1: Type, tp2: Type)(using Context): Type =
2951-
ctx.typeComparer.liftIfHK(tp1, tp2, AndType.make(_, _, checkValid = false), makeHk, _ | _)
2951+
TypeComparer.liftIfHK(tp1, tp2, AndType.make(_, _, checkValid = false), makeHk, _ | _)
29522952
}
29532953

29542954
abstract case class OrType(tp1: Type, tp2: Type) extends AndOrType {
@@ -3038,7 +3038,7 @@ object Types {
30383038

30393039
/** Like `make`, but also supports higher-kinded types as argument */
30403040
def makeHk(tp1: Type, tp2: Type)(using Context): Type =
3041-
ctx.typeComparer.liftIfHK(tp1, tp2, OrType(_, _), makeHk, _ & _)
3041+
TypeComparer.liftIfHK(tp1, tp2, OrType(_, _), makeHk, _ & _)
30423042
}
30433043

30443044
/** An extractor object to pattern match against a nullable union.

0 commit comments

Comments
 (0)