Skip to content

Commit 9b0fd11

Browse files
committed
Update output of boundary test
1 parent bdfe28a commit 9b0fd11

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

tests/neg-custom-args/captures/boundary.check

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
4 | boundary[AnyRef^]:
33
5 | l1 ?=> // error // error
44
| ^
5-
|Found: scala.util.boundary.Label[Object^?]^{cap.rd}
5+
|Found: scala.util.boundary.Label[Object^'s1]^{cap.rd}
66
|Required: scala.util.boundary.Label[Object^]^²
77
|
8-
|where: ^ refers to the universal root capability
9-
| ^² refers to a fresh root capability classified as Control in the type of value local
10-
| cap is a fresh root capability classified as Control created in value local when constructing Capability instance scala.util.boundary.Label[Object^?]
8+
|Note that capability cap² cannot be included in outer capture set 's1.
119
|
12-
|Note that capability cap
13-
|cannot be included in outer capture set ?.
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
1414
6 | boundary[Unit]: l2 ?=>
1515
7 | boundary.break(l2)(using l1)
1616
8 | ???
@@ -30,10 +30,12 @@
3030
| Found: scala.util.boundary.Break[AnyRef^] @unchecked
3131
| Required: scala.util.boundary.Break[Object^²] @unchecked
3232
|
33-
| where: ^ refers to the universal root capability
34-
| ^² refers to a fresh root capability created in package <empty>
33+
| Note that capability cap is not included in capture set {cap²}.
3534
|
36-
| Note that capability cap is not included in capture set {cap}.
35+
| where: ^ refers to the universal root capability
36+
| ^² refers to a fresh root capability created in package <empty>
37+
| cap is a fresh root capability created in package <empty>
38+
| cap² is the universal root capability
3739
6 | boundary[Unit]: l2 ?=>
3840
7 | boundary.break(l2)(using l1)
3941
8 | ???

0 commit comments

Comments
 (0)