|
| 1 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i23431.scala:8:13 ---------------------------------------- |
| 2 | +8 | myIO = io // error, level mismatch |
| 3 | + | ^^ |
| 4 | + | Found: (io : IO^) |
| 5 | + | Required: IO^2 |
| 6 | + | |
| 7 | + | where: ^ refers to a fresh root capability in the type of parameter io |
| 8 | + | ^2 refers to a fresh root capability in the type of variable myIO |
| 9 | + | |
| 10 | + | longer explanation available when compiling with `-explain` |
| 11 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i23431.scala:11:13 --------------------------------------- |
| 12 | +11 | myIO = io2 // error, level mismatch |
| 13 | + | ^^^ |
| 14 | + | Found: (io2 : IO^) |
| 15 | + | Required: IO^2 |
| 16 | + | |
| 17 | + | where: ^ refers to a fresh root capability in the type of parameter io2 |
| 18 | + | ^2 refers to a fresh root capability in the type of variable myIO |
| 19 | + | |
| 20 | + | longer explanation available when compiling with `-explain` |
| 21 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i23431.scala:12:12 --------------------------------------- |
| 22 | +12 | withIO: io3 => // error |
| 23 | + | ^ |
| 24 | + |Found: (io3: IO^?) ->? Unit |
| 25 | + |Required: IO^ => Unit |
| 26 | + | |
| 27 | + |where: => refers to a fresh root capability created in anonymous function of type (io1: IO^): Unit when checking argument to parameter op of method withIO |
| 28 | + | ^ refers to the universal root capability |
| 29 | +13 | myIO = io3 |
| 30 | + | |
| 31 | + | longer explanation available when compiling with `-explain` |
| 32 | +-- Error: tests/neg-custom-args/captures/i23431.scala:6:14 ------------------------------------------------------------- |
| 33 | +6 | var myIO: IO^ = io1 // error: separation |
| 34 | + | ^^^ |
| 35 | + | Separation failure: variable myIO's type IO^ hides parameter io1. |
| 36 | + | The parameter needs to be annotated with @consume to allow this. |
0 commit comments