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
Copy file name to clipboardExpand all lines: tests/neg-custom-args/captures/i23431.check
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@
7
7
| where: ^ refers to a fresh root capability in the type of parameter io
8
8
| ^² refers to a fresh root capability in the type of variable myIO
9
9
|
10
-
| Note that capability cap is not included in capture set {cap}.
10
+
| Note that capability cap is not included in capture set {cap}
11
+
| because cap in method setIO is not visible from cap in variable myIO.
11
12
|
12
13
| longer explanation available when compiling with `-explain`
13
14
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i23431.scala:11:13 ---------------------------------------
@@ -19,7 +20,8 @@
19
20
| where: ^ refers to a fresh root capability in the type of parameter io2
20
21
| ^² refers to a fresh root capability in the type of variable myIO
21
22
|
22
-
| Note that capability cap is not included in capture set {cap}.
23
+
| Note that capability cap is not included in capture set {cap}
24
+
| because cap in enclosing function is not visible from cap in variable myIO.
23
25
|
24
26
| longer explanation available when compiling with `-explain`
25
27
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i23431.scala:12:12 ---------------------------------------
@@ -31,7 +33,8 @@
31
33
|where: => refers to a fresh root capability created in anonymous function of type (io1: IO^): Unit when checking argument to parameter op of method withIO
32
34
| ^ refers to the universal root capability
33
35
|
34
-
|Note that capability cap is not included in capture set {cap}.
36
+
|Note that capability cap is not included in capture set {cap}
37
+
|because cap in enclosing function is not visible from cap in variable myIO.
35
38
13 | myIO = io3
36
39
|
37
40
| longer explanation available when compiling with `-explain`
0 commit comments