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