Skip to content

Commit 159bf9d

Browse files
committed
Fix apparent cut-n-pasto in Type#mapOr
1 parent e098f4c commit 159bf9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ object Types {
243243

244244
/** Map function over elements of an OrType, rebuilding with | */
245245
def mapOr(f: Type => Type)(implicit ctx: Context): Type = this match {
246-
case OrType(tp1, tp2) => tp1.mapAnd(f) | tp2.mapAnd(f)
246+
case OrType(tp1, tp2) => tp1.mapOr(f) | tp2.mapOr(f)
247247
case _ => f(this)
248248
}
249249

0 commit comments

Comments
 (0)