You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|Note that capability cap² cannot be included in outer capture set 's1.
8
+
|Note that capability cap cannot be included in outer capture set 's1.
9
9
|
10
-
|where: ^ refers to the universal root capability
11
-
| ^² refers to a fresh root capability classified as Control in the type of value local
12
-
| cap is a fresh root capability classified as Control created in value local when constructing Capability instance scala.util.boundary.Label[Object^'s1]
13
-
| cap² is the universal root capability
10
+
|where: ^ refers to a fresh root capability classified as Control created in value local when constructing Capability instance scala.util.boundary.Label[Object^'s1]
11
+
| ^² refers to the universal root capability
12
+
| ^³ refers to a fresh root capability classified as Control in the type of value local
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i21614.scala:12:33 ---------------------------------------
2
-
12 | files.map((f: F) => new Logger(f)) // error // error, Q: can we make this pass (see #19076)?
2
+
12 | files.map((f: F) => new Logger(f)) // error, Q: can we make this pass (see #19076)?
3
3
| ^
4
4
|Found: (f : F)
5
5
|Required: File^
@@ -11,25 +11,16 @@
11
11
| cap² is a fresh root capability classified as SharedCapability created in anonymous function of type (f²: F): Logger when checking argument to parameter f of constructor Logger
12
12
|
13
13
| longer explanation available when compiling with `-explain`
0 commit comments