Skip to content

Commit 521206f

Browse files
committed
update the documentation for toplevel boxes
1 parent 9306894 commit 521206f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ class CheckCaptures extends Recheck, SymTransformer:
508508
case _: RefTree => true
509509
case _ => false
510510

511-
/** If expected type `pt` is boxed, don't propagate free variables.
511+
/** If expected type `pt` is boxed and the tree is a function or a reference,
512+
* don't propagate free variables.
512513
* Otherwise, if the result type is boxed, simulate an unboxing by
513514
* adding all references in the boxed capture set to the current environment.
514515
*/

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ object DottyJSPlugin extends AutoPlugin {
8080
object Build {
8181
import ScaladocConfigs._
8282

83-
val referenceVersion = "3.2.1-RC2"
83+
val referenceVersion = "3.2.0-RC3"
8484

8585
val baseVersion = "3.2.2-RC1"
8686

0 commit comments

Comments
 (0)