|
1 |
| --- Error: tests/neg-custom-args/captures/linear-buffer.scala:13:17 ----------------------------------------------------- |
2 |
| -13 | val buf3 = app(buf, 3) // error |
| 1 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:5:24 ------------------------------------------------------ |
| 2 | +5 | mut def append(x: T): BadBuffer[T]^ = this // error |
| 3 | + | ^^^^^^^^^^^^^ |
| 4 | + | Separation failure: method append's result type BadBuffer[T]^ hides non-local this of class class BadBuffer. |
| 5 | + | The access must be in a @consume method to allow this. |
| 6 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:7:13 ------------------------------------------------------ |
| 7 | +7 | def bar: BadBuffer[T]^ = this // error |
| 8 | + | ^^^^^^^^^^^^^ |
| 9 | + | Separation failure: method bar's result type BadBuffer[T]^ hides non-local this of class class BadBuffer. |
| 10 | + | The access must be in a @consume method to allow this. |
| 11 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:6:9 ------------------------------------------------------- |
| 12 | +6 | def foo = // error |
| 13 | + | ^ |
| 14 | + |Separation failure: method foo's inferred result type BadBuffer[box T^?]^ hides non-local this of class class BadBuffer. |
| 15 | + |The access must be in a @consume method to allow this. |
| 16 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:19:17 ----------------------------------------------------- |
| 17 | +19 | val buf3 = app(buf, 3) // error |
3 | 18 | | ^^^
|
4 | 19 | | Separation failure: Illegal access to (buf : Buffer[Int]^),
|
5 |
| - | which was passed to a @consume parameter on line 11 |
| 20 | + | which was passed to a @consume parameter on line 17 |
6 | 21 | | and therefore is no longer available.
|
7 |
| --- Error: tests/neg-custom-args/captures/linear-buffer.scala:20:17 ----------------------------------------------------- |
8 |
| -20 | val buf3 = app(buf1, 4) // error |
| 22 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:26:17 ----------------------------------------------------- |
| 23 | +26 | val buf3 = app(buf1, 4) // error |
9 | 24 | | ^^^^
|
10 | 25 | | Separation failure: Illegal access to (buf1 : Buffer[Int]^),
|
11 |
| - | which was passed to a @consume parameter on line 18 |
| 26 | + | which was passed to a @consume parameter on line 24 |
12 | 27 | | and therefore is no longer available.
|
13 |
| --- Error: tests/neg-custom-args/captures/linear-buffer.scala:28:17 ----------------------------------------------------- |
14 |
| -28 | val buf3 = app(buf1, 4) // error |
| 28 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:34:17 ----------------------------------------------------- |
| 29 | +34 | val buf3 = app(buf1, 4) // error |
15 | 30 | | ^^^^
|
16 | 31 | | Separation failure: Illegal access to (buf1 : Buffer[Int]^),
|
17 |
| - | which was passed to a @consume parameter on line 25 |
| 32 | + | which was passed to a @consume parameter on line 31 |
18 | 33 | | and therefore is no longer available.
|
19 |
| --- Error: tests/neg-custom-args/captures/linear-buffer.scala:38:17 ----------------------------------------------------- |
20 |
| -38 | val buf3 = app(buf1, 4) // error |
| 34 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:44:17 ----------------------------------------------------- |
| 35 | +44 | val buf3 = app(buf1, 4) // error |
21 | 36 | | ^^^^
|
22 | 37 | | Separation failure: Illegal access to (buf1 : Buffer[Int]^),
|
23 |
| - | which was passed to a @consume parameter on line 33 |
| 38 | + | which was passed to a @consume parameter on line 39 |
24 | 39 | | and therefore is no longer available.
|
25 |
| --- Error: tests/neg-custom-args/captures/linear-buffer.scala:42:8 ------------------------------------------------------ |
26 |
| -42 | app(buf, 1) // error |
| 40 | +-- Error: tests/neg-custom-args/captures/linear-buffer.scala:48:8 ------------------------------------------------------ |
| 41 | +48 | app(buf, 1) // error |
27 | 42 | | ^^^
|
28 | 43 | | Separation failure: (buf : Buffer[Int]^) appears in a loop,
|
29 | 44 | | therefore it cannot be passed to a @consume parameter.
|
0 commit comments