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 2224 | 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 ---------------------------------------------------------------------------
7727 | 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 .
Original file line number Diff line number Diff line change 1+ //> using options -source 3.7
12import language .experimental .captureChecking
23// no separation checking
34import caps .{cap , use }
You can’t perform that action at this time.
0 commit comments