Skip to content

Commit 5bb26d8

Browse files
committed
Update tests to 3.8
1 parent 4d6874e commit 5bb26d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/neg/localReaches.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
24 | var x: () ->{xs*} Unit = ys.head // error
33
| ^^^^^^^
44
| Local reach capability ops* leaks into capture scope of method localReach3.
5-
| To allow this, the parameter ops should be declared with a @use annotation.
5+
| You could try to abstract the capabilities referred to by ops* in a capset variable.
66
-- Error: tests/neg/localReaches.scala:27:11 ---------------------------------------------------------------------------
77
27 | x = ys.head // error
88
| ^^^^^^^
99
| Local reach capability ops* leaks into capture scope of method localReach3.
10-
| To allow this, the parameter ops should be declared with a @use annotation.
10+
| You could try to abstract the capabilities referred to by ops* in a capset variable.

tests/pos/cc-use-alternatives.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//> using options -source 3.7
12
import language.experimental.captureChecking
23
// no separation checking
34
import caps.{cap, use}

0 commit comments

Comments
 (0)