|
33 | 33 | | ^^^^^^^^^^^^^ |
34 | 34 | | Separation failure: method bar's result type BadBuffer[T]^ hides non-local this of class class BadBuffer. |
35 | 35 | | The access must be in a consume method to allow this. |
36 | | --- Error: tests/neg-custom-args/captures/linear-buffer.scala:22:17 ----------------------------------------------------- |
37 | | -22 | val buf3 = app(buf, 3) // error |
| 36 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:23:17 ----------------------------------------------------- |
| 37 | +23 | val buf3 = app(buf, 3) // error |
38 | 38 | | ^^^ |
39 | 39 | | Separation failure: Illegal access to (buf : Buffer[Int]^), which was passed to a |
40 | | - | consume parameter or was used as a prefix to a consume method on line 20 |
| 40 | + | consume parameter or was used as a prefix to a consume method on line 21 |
41 | 41 | | and therefore is no longer available. |
42 | 42 | | |
43 | 43 | | where: ^ refers to a fresh root capability in the type of parameter buf |
44 | | --- Error: tests/neg-custom-args/captures/linear-buffer.scala:29:17 ----------------------------------------------------- |
45 | | -29 | val buf3 = app(buf1, 4) // error |
| 44 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:30:17 ----------------------------------------------------- |
| 45 | +30 | val buf3 = app(buf1, 4) // error |
46 | 46 | | ^^^^ |
47 | 47 | | Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed to a |
48 | | - | consume parameter or was used as a prefix to a consume method on line 27 |
| 48 | + | consume parameter or was used as a prefix to a consume method on line 28 |
49 | 49 | | and therefore is no longer available. |
50 | 50 | | |
51 | 51 | | where: ^ refers to a fresh root capability in the type of value buf1 |
52 | | --- Error: tests/neg-custom-args/captures/linear-buffer.scala:37:17 ----------------------------------------------------- |
53 | | -37 | val buf3 = app(buf1, 4) // error |
| 52 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:38:17 ----------------------------------------------------- |
| 53 | +38 | val buf3 = app(buf1, 4) // error |
54 | 54 | | ^^^^ |
55 | 55 | | Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed to a |
56 | | - | consume parameter or was used as a prefix to a consume method on line 34 |
| 56 | + | consume parameter or was used as a prefix to a consume method on line 35 |
57 | 57 | | and therefore is no longer available. |
58 | 58 | | |
59 | 59 | | where: ^ refers to a fresh root capability in the type of value buf1 |
60 | | --- Error: tests/neg-custom-args/captures/linear-buffer.scala:47:17 ----------------------------------------------------- |
61 | | -47 | val buf3 = app(buf1, 4) // error |
| 60 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:48:17 ----------------------------------------------------- |
| 61 | +48 | val buf3 = app(buf1, 4) // error |
62 | 62 | | ^^^^ |
63 | 63 | | Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed to a |
64 | | - | consume parameter or was used as a prefix to a consume method on line 42 |
| 64 | + | consume parameter or was used as a prefix to a consume method on line 43 |
65 | 65 | | and therefore is no longer available. |
66 | 66 | | |
67 | 67 | | where: ^ refers to a fresh root capability in the type of value buf1 |
68 | | --- Error: tests/neg-custom-args/captures/linear-buffer.scala:51:8 ------------------------------------------------------ |
69 | | -51 | app(buf, 1) // error |
| 68 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:52:8 ------------------------------------------------------ |
| 69 | +52 | app(buf, 1) // error |
70 | 70 | | ^^^ |
71 | 71 | | Separation failure: (buf : Buffer[Int]^) appears in a loop, therefore it cannot |
72 | 72 | | be passed to a consume parameter or be used as a prefix of a consume method call. |
73 | 73 | | |
74 | 74 | | where: ^ refers to a fresh root capability in the type of parameter buf |
| 75 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:62:20 ----------------------------------------------------- |
| 76 | +62 | val c3 = contents(buf) // error |
| 77 | + | ^^^ |
| 78 | + | Separation failure: Illegal access to buf.rd, which was passed to a |
| 79 | + | consume parameter or was used as a prefix to a consume method on line 59 |
| 80 | + | and therefore is no longer available. |
0 commit comments