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:
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
You can’t perform that action at this time.
0 commit comments