|
1 | 1 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/cc-existential-conformance.scala:8:24 -------------------- |
2 | 2 | 8 | val y: A -> Fun[B^] = x // error |
3 | 3 | | ^ |
4 | | - | Found: (x : A -> (x²: A) -> B^) |
5 | | - | Required: A -> A -> B^² |
| 4 | + | Found: (x : A -> (x²: A) -> B^) |
| 5 | + | Required: A -> A -> B^² |
6 | 6 | | |
7 | | - | Note that capability cap is not included in capture set {cap²} |
8 | | - | because cap is not visible from cap² in value y. |
| 7 | + | Note that capability cap is not included in capture set {cap²} |
| 8 | + | because cap is not visible from cap² in value y. |
9 | 9 | | |
10 | | - | where: ^ and cap refer to a root capability associated with the result type of (x²: A): B^ |
11 | | - | ^² and cap² refer to a fresh root capability in the type of value y |
12 | | - | x is a value in method test |
13 | | - | x² is a reference to a value parameter |
| 10 | + | where: ^ refers to a root capability associated with the result type of (x²: A): B^ |
| 11 | + | ^² and cap² refer to a fresh root capability in the type of value y |
| 12 | + | cap is the universal root capability |
| 13 | + | x is a value in method test |
| 14 | + | x² is a reference to a value parameter |
14 | 15 | | |
15 | 16 | | longer explanation available when compiling with `-explain` |
16 | 17 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/cc-existential-conformance.scala:9:29 -------------------- |
17 | 18 | 9 | val z: A -> (x: A) -> B^ = y // error |
18 | 19 | | ^ |
19 | | - | Found: A -> A -> B^{y*} |
20 | | - | Required: A -> (x: A) -> B^ |
| 20 | + | Found: A -> A -> B^{y*} |
| 21 | + | Required: A -> (x: A) -> B^ |
21 | 22 | | |
22 | | - | Note that capability y* is not included in capture set {cap}. |
| 23 | + | Note that capability y* is not included in capture set {cap}. |
23 | 24 | | |
24 | | - | Note that the existential capture root in B^² |
25 | | - | cannot subsume the capability y* since that capability is not a `Sharable` capability.. |
26 | | - | |
27 | | - | where: ^ and cap refer to a root capability associated with the result type of (x: A): B^ |
28 | | - | ^² refers to the universal root capability |
| 25 | + | where: ^ refers to a root capability associated with the result type of (x: A): B^ |
| 26 | + | cap is the universal root capability |
29 | 27 | | |
30 | 28 | | longer explanation available when compiling with `-explain` |
31 | 29 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/cc-existential-conformance.scala:13:19 ------------------- |
32 | 30 | 13 | val y: Fun[B^] = x // error |
33 | 31 | | ^ |
34 | | - | Found: (x : (x²: A) -> B^) |
35 | | - | Required: A -> B^² |
| 32 | + | Found: (x : (x²: A) -> B^) |
| 33 | + | Required: A -> B^² |
36 | 34 | | |
37 | | - | Note that capability cap is not included in capture set {cap²} |
38 | | - | because cap is not visible from cap² in value y. |
| 35 | + | Note that capability cap is not included in capture set {cap²} |
| 36 | + | because cap is not visible from cap² in value y. |
39 | 37 | | |
40 | | - | where: ^ and cap refer to a root capability associated with the result type of (x²: A): B^ |
41 | | - | ^² and cap² refer to a fresh root capability in the type of value y |
42 | | - | x is a value in method test2 |
43 | | - | x² is a reference to a value parameter |
| 38 | + | where: ^ refers to a root capability associated with the result type of (x²: A): B^ |
| 39 | + | ^² and cap² refer to a fresh root capability in the type of value y |
| 40 | + | cap is the universal root capability |
| 41 | + | x is a value in method test2 |
| 42 | + | x² is a reference to a value parameter |
44 | 43 | | |
45 | 44 | | longer explanation available when compiling with `-explain` |
46 | 45 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/cc-existential-conformance.scala:14:24 ------------------- |
47 | 46 | 14 | val z: (x: A) -> B^ = y // error |
48 | 47 | | ^ |
49 | | - | Found: A -> B^{y*} |
50 | | - | Required: (x: A) -> B^ |
51 | | - | |
52 | | - | Note that capability y* is not included in capture set {cap}. |
| 48 | + | Found: A -> B^{y*} |
| 49 | + | Required: (x: A) -> B^ |
53 | 50 | | |
54 | | - | Note that the existential capture root in B^² |
55 | | - | cannot subsume the capability y* since that capability is not a `Sharable` capability.. |
| 51 | + | Note that capability y* is not included in capture set {cap}. |
56 | 52 | | |
57 | | - | where: ^ and cap refer to a root capability associated with the result type of (x: A): B^ |
58 | | - | ^² refers to the universal root capability |
| 53 | + | where: ^ refers to a root capability associated with the result type of (x: A): B^ |
| 54 | + | cap is the universal root capability |
59 | 55 | | |
60 | 56 | | longer explanation available when compiling with `-explain` |
0 commit comments