Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
noti0na1 committed Sep 9, 2024
1 parent 890850a commit 8ea5664
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,7 @@ class CheckCaptures extends Recheck, SymTransformer:
def isStableSel = selType match
case selType: NamedType => selType.symbol.isStableMember
case _ => false

// println(i"recheck sel $tree, qualType = $qualType, selType = $selType")
// println(i"qual cs = ${qualType.captureSet}, sel cs = ${selType.captureSet}, sel widen cs = ${selType.widen.captureSet}")
// println(i"isStable = ${selType.isTrackableRef}, pt = $pt")


if pt == LhsProto
|| qualType.isBoxedCapturing
|| selType.isTrackableRef
Expand Down
4 changes: 0 additions & 4 deletions tests/pos-custom-args/captures/unbox.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ type Proc = () => Unit
val xs: List[Proc] = ???

val x = xs.head // error

val xs2: List[() ->{xs*} Unit] = xs

val x2: () ->{xs*} Unit = xs2.head

0 comments on commit 8ea5664

Please sign in to comment.