Skip to content

Commit fb3df0c

Browse files
committed
Drop redundant statements
# Conflicts: # compiler/src/dotty/tools/dotc/transform/Pickler.scala
1 parent 49668d0 commit fb3df0c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ class CheckCaptures extends Recheck, SymTransformer:
488488
case rhs @ closure(_, _, _) =>
489489
// In a curried closure `x => y => e` don't leak capabilities retained by
490490
// the second closure `y => e` into the first one. This is an approximation
491-
// of the CC rule which says that a closure contributes captures to its
492-
// environment only if a let-bound reference to the closure is used.
491+
// of the CC rule which says that a closure contributes captures to its
492+
// environment only if a let-bound reference to the closure is used.
493493
capt.println(i"boxing $rhs")
494494
rhs.putAttachment(BoxedClosure, ())
495495
case _ =>
@@ -853,7 +853,6 @@ class CheckCaptures extends Recheck, SymTransformer:
853853
}
854854

855855
if expected.isSingleton && actual.isSingleton then
856-
println(i"shot $actual $expected")
857856
actual
858857
else
859858
var actualw = actual.widenDealias

0 commit comments

Comments
 (0)