Skip to content

Commit 943d84a

Browse files
committed
Address review comment
1 parent 4bab1ed commit 943d84a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/cc/CaptureOps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ extension (tp: Type)
8888
if tp.isBoxed then refs ++ pcs else pcs
8989
case tp: TypeRef if tp.symbol.isAbstractType => CaptureSet.empty
9090
case tp: TypeProxy => getBoxed(tp.superType)
91-
case tp: AndType => getBoxed(tp.tp1) ++ getBoxed(tp.tp2)
92-
case tp: OrType => getBoxed(tp.tp1) ** getBoxed(tp.tp2)
91+
case tp: AndType => getBoxed(tp.tp1) ** getBoxed(tp.tp2)
92+
case tp: OrType => getBoxed(tp.tp1) ++ getBoxed(tp.tp2)
9393
case _ => CaptureSet.empty
9494
getBoxed(tp)
9595

0 commit comments

Comments
 (0)