File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
24 | var x: () ->{xs*} Unit = ys.head // error
3
3
| ^^^^^^^
4
4
| 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 .
6
6
-- Error: tests/neg/localReaches.scala:27:11 ---------------------------------------------------------------------------
7
7
27 | x = ys.head // error
8
8
| ^^^^^^^
9
9
| 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 .
Original file line number Diff line number Diff line change
1
+ //> using options -source 3.7
1
2
import language .experimental .captureChecking
2
3
// no separation checking
3
4
import caps .{cap , use }
You can’t perform that action at this time.
0 commit comments