File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -488,8 +488,8 @@ class CheckCaptures extends Recheck, SymTransformer:
488
488
case rhs @ closure(_, _, _) =>
489
489
// In a curried closure `x => y => e` don't leak capabilities retained by
490
490
// 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.
493
493
capt.println(i " boxing $rhs" )
494
494
rhs.putAttachment(BoxedClosure , ())
495
495
case _ =>
@@ -853,7 +853,6 @@ class CheckCaptures extends Recheck, SymTransformer:
853
853
}
854
854
855
855
if expected.isSingleton && actual.isSingleton then
856
- println(i " shot $actual $expected" )
857
856
actual
858
857
else
859
858
var actualw = actual.widenDealias
You can’t perform that action at this time.
0 commit comments