|
1 | 1 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps.scala:7:20 ----------------------------------- |
2 | 2 | 7 | val g: A^ -> B^ = f // error |
3 | 3 | | ^ |
4 | | - | Found: (f : (x: A^) -> B^²) |
5 | | - | Required: A^ -> B^³ |
| 4 | + | Found: (f : (x: A^) -> B^²) |
| 5 | + | Required: 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 g. |
| 7 | + | Note that capability cap is not included in capture set {cap²} |
| 8 | + | because cap is not visible from cap² in value g. |
9 | 9 | | |
10 | | - | where: ^ refers to the universal root capability |
11 | | - | ^² and cap refer to a root capability associated with the result type of (x: A^): B^² |
12 | | - | ^³ and cap² refer to a fresh root capability in the type of value g |
| 10 | + | where: ^ and cap refer to the universal root capability |
| 11 | + | ^² refers to a root capability associated with the result type of (x: A^): B^² |
| 12 | + | ^³ and cap² refer to a fresh root capability in the type of value g |
13 | 13 | | |
14 | 14 | | longer explanation available when compiling with `-explain` |
15 | 15 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps.scala:9:25 ----------------------------------- |
|
20 | 20 | | |
21 | 21 | | Note that capability g* is not included in capture set {cap}. |
22 | 22 | | |
23 | | - | Note that the existential capture root in B^ |
24 | | - | cannot subsume the capability g* since that capability is not a `Sharable` capability.. |
25 | | - | |
26 | | - | where: ^ refers to the universal root capability |
27 | | - | ^² and cap refer to a root capability associated with the result type of (x: A^): B^² |
| 23 | + | where: ^ and cap refer to the universal root capability |
| 24 | + | ^² refers to a root capability associated with the result type of (x: A^): B^² |
28 | 25 | | |
29 | 26 | | longer explanation available when compiling with `-explain` |
30 | 27 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps.scala:10:20 ---------------------------------- |
31 | 28 | 10 | val _: A^ -> B^ = f // error |
32 | 29 | | ^ |
33 | | - | Found: (f : (x: A^) -> B^²) |
34 | | - | Required: A^ -> B^³ |
| 30 | + | Found: (f : (x: A^) -> B^²) |
| 31 | + | Required: A^ -> B^³ |
35 | 32 | | |
36 | | - | Note that capability cap is not included in capture set {cap²} |
37 | | - | because cap is not visible from cap² in value _$3. |
| 33 | + | Note that capability cap is not included in capture set {cap²} |
| 34 | + | because cap is not visible from cap² in value _$3. |
38 | 35 | | |
39 | | - | where: ^ refers to the universal root capability |
40 | | - | ^² 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 _$3 |
| 36 | + | where: ^ and cap refer to the universal root capability |
| 37 | + | ^² refers to a root capability associated with the result type of (x: A^): B^² |
| 38 | + | ^³ and cap² refer to a fresh root capability in the type of value _$3 |
42 | 39 | | |
43 | 40 | | longer explanation available when compiling with `-explain` |
44 | 41 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps.scala:12:20 ---------------------------------- |
|
63 | 60 | | |
64 | 61 | | Note that capability h* is not included in capture set {cap}. |
65 | 62 | | |
66 | | - | Note that the existential capture root in B^ |
67 | | - | cannot subsume the capability h* since that capability is not a `Sharable` capability.. |
68 | | - | |
69 | | - | where: ^ refers to the universal root capability |
70 | | - | ^² and cap refer to a root capability associated with the result type of (x: S^): B^² |
| 63 | + | where: ^ and cap refer to the universal root capability |
| 64 | + | ^² refers to a root capability associated with the result type of (x: S^): B^² |
71 | 65 | | |
72 | 66 | | longer explanation available when compiling with `-explain` |
73 | 67 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps.scala:26:19 ---------------------------------- |
74 | 68 | 26 | val _: S -> B^ = j // error |
75 | 69 | | ^ |
76 | | - | Found: (j : (x: S) -> B^) |
77 | | - | Required: S^² -> B^³ |
| 70 | + | Found: (j : (x: S) -> B^) |
| 71 | + | Required: S^² -> B^³ |
78 | 72 | | |
79 | | - | Note that capability cap is not included in capture set {cap²} |
80 | | - | because cap is not visible from cap² in value _$13. |
| 73 | + | Note that capability cap is not included in capture set {cap²} |
| 74 | + | because cap is not visible from cap² in value _$13. |
81 | 75 | | |
82 | | - | where: ^ and cap refer to a root capability associated with the result type of (x: S^²): B^ |
83 | | - | ^² refers to the universal root capability |
84 | | - | ^³ and cap² refer to a fresh root capability in the type of value _$13 |
| 76 | + | where: ^ refers to a root capability associated with the result type of (x: S^²): B^ |
| 77 | + | ^² and cap refer to the universal root capability |
| 78 | + | ^³ and cap² refer to a fresh root capability in the type of value _$13 |
85 | 79 | | |
86 | 80 | | longer explanation available when compiling with `-explain` |
87 | 81 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps.scala:27:25 ---------------------------------- |
|
0 commit comments