|
1 |
| --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:11:8 ------------------------------------- |
2 |
| -11 | x = q // error |
| 1 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:12:8 ------------------------------------- |
| 2 | +12 | x = q // error |
3 | 3 | | ^
|
4 | 4 | | Found: (q : () => Unit)
|
5 | 5 | | Required: () ->{p, q²} Unit
|
|
8 | 8 | | q² is a parameter in method test
|
9 | 9 | |
|
10 | 10 | | longer explanation available when compiling with `-explain`
|
11 |
| --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:12:9 ------------------------------------- |
12 |
| -12 | x = (q: Proc) // error |
| 11 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:13:9 ------------------------------------- |
| 12 | +13 | x = (q: Proc) // error |
13 | 13 | | ^^^^^^^
|
14 | 14 | | Found: () => Unit
|
15 | 15 | | Required: () ->{p, q} Unit
|
16 | 16 | |
|
17 | 17 | | longer explanation available when compiling with `-explain`
|
18 |
| --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:13:9 ------------------------------------- |
19 |
| -13 | y = (q: Proc) // error |
| 18 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:14:9 ------------------------------------- |
| 19 | +14 | y = (q: Proc) // error |
20 | 20 | | ^^^^^^^
|
21 | 21 | | Found: () => Unit
|
22 | 22 | | Required: () ->{p} Unit
|
|
25 | 25 | | cannot be included in capture set {p} of variable y
|
26 | 26 | |
|
27 | 27 | | longer explanation available when compiling with `-explain`
|
28 |
| --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:14:8 ------------------------------------- |
29 |
| -14 | y = q // error, was OK under unsealed |
| 28 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/outer-var.scala:15:8 ------------------------------------- |
| 29 | +15 | y = q // error, was OK under unsealed |
30 | 30 | | ^
|
31 | 31 | | Found: (q : () => Unit)
|
32 | 32 | | Required: () ->{p} Unit
|
|
35 | 35 | | cannot be included in outer capture set {p}
|
36 | 36 | |
|
37 | 37 | | longer explanation available when compiling with `-explain`
|
38 |
| --- Error: tests/neg-custom-args/captures/outer-var.scala:16:57 --------------------------------------------------------- |
39 |
| -16 | var finalizeActions = collection.mutable.ListBuffer[() => Unit]() // error, was OK under unsealed |
| 38 | +-- Error: tests/neg-custom-args/captures/outer-var.scala:17:57 --------------------------------------------------------- |
| 39 | +17 | var finalizeActions = collection.mutable.ListBuffer[() => Unit]() // error, was OK under unsealed |
40 | 40 | | ^^^^^^^^^^
|
41 | 41 | | Type variable A of object ListBuffer cannot be instantiated to box () => Unit since
|
42 | 42 | | that type captures the root capability `cap`.
|
0 commit comments