Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Aug 29, 2022
1 parent 4bab1ed commit 943d84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dotty/tools/dotc/cc/CaptureOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ extension (tp: Type)
if tp.isBoxed then refs ++ pcs else pcs
case tp: TypeRef if tp.symbol.isAbstractType => CaptureSet.empty
case tp: TypeProxy => getBoxed(tp.superType)
case tp: AndType => getBoxed(tp.tp1) ++ getBoxed(tp.tp2)
case tp: OrType => getBoxed(tp.tp1) ** getBoxed(tp.tp2)
case tp: AndType => getBoxed(tp.tp1) ** getBoxed(tp.tp2)
case tp: OrType => getBoxed(tp.tp1) ++ getBoxed(tp.tp2)
case _ => CaptureSet.empty
getBoxed(tp)

Expand Down

0 comments on commit 943d84a

Please sign in to comment.