|
4 | 4 | | Separation failure: Illegal access to {c} which is hidden by the previous definition
|
5 | 5 | | of value xs with type List[box () => Unit].
|
6 | 6 | | This type hides capabilities {c}
|
7 |
| --- Error: tests/neg-custom-args/captures/sepchecks2.scala:13:7 --------------------------------------------------------- |
| 7 | +-- Error: tests/neg-custom-args/captures/sepchecks2.scala:13:25 -------------------------------------------------------- |
8 | 8 | 13 | foo((() => println(c)) :: Nil, c) // error
|
9 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
10 |
| - | Separation failure: argument of type List[box () ->{c} Unit] |
11 |
| - | to method foo: (xs: List[box () => Unit], y: Object^): Nothing |
12 |
| - | corresponds to capture-polymorphic formal parameter xs of type List[box () => Unit] |
13 |
| - | and hides capabilities {c}. |
14 |
| - | Some of these overlap with the captures of the second argument with type (c : Object^). |
| 9 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 10 | + | Separation failure: argument of type List[box () ->{c} Unit] |
| 11 | + | to method foo: (xs: List[box () => Unit], y: Object^): Nothing |
| 12 | + | corresponds to capture-polymorphic formal parameter xs of type List[box () => Unit] |
| 13 | + | and hides capabilities {c}. |
| 14 | + | Some of these overlap with the captures of the second argument with type (c : Object^). |
15 | 15 | |
|
16 |
| - | Hidden set of current argument : {c} |
17 |
| - | Hidden footprint of current argument : {c} |
18 |
| - | Capture set of second argument : {c} |
19 |
| - | Footprint set of second argument : {c} |
20 |
| - | The two sets overlap at : {c} |
| 16 | + | Hidden set of current argument : {c} |
| 17 | + | Hidden footprint of current argument : {c} |
| 18 | + | Capture set of second argument : {c} |
| 19 | + | Footprint set of second argument : {c} |
| 20 | + | The two sets overlap at : {c} |
21 | 21 | -- Error: tests/neg-custom-args/captures/sepchecks2.scala:14:10 --------------------------------------------------------
|
22 | 22 | 14 | val x1: (Object^, Object^) = (c, c) // error
|
23 | 23 | | ^^^^^^^^^^^^^^^^^^
|
|
0 commit comments