|
18 | 18 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:12:20 --------------------------
|
19 | 19 | 12 | val _: C^ -> C = x2 // error
|
20 | 20 | | ^^
|
21 |
| - | Found: (x2 : C^ -> C^²) |
| 21 | + | Found: C^ -> C^{x2*} |
22 | 22 | | Required: C^ -> C
|
23 | 23 | |
|
24 |
| - | where: ^ refers to the universal root capability |
25 |
| - | ^² refers to a fresh root capability in the type of value x2 |
| 24 | + | where: ^ refers to the universal root capability |
26 | 25 | |
|
27 | 26 | | longer explanation available when compiling with `-explain`
|
28 | 27 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:15:30 --------------------------
|
|
38 | 37 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:18:25 --------------------------
|
39 | 38 | 18 | val _: A^ -> C^ -> C = x4 // error
|
40 | 39 | | ^^
|
41 |
| - | Found: (x4 : A^ -> C^ -> C^²) |
| 40 | + | Found: A^ -> C^ -> C^{x4*} |
42 | 41 | | Required: A^ -> C^ -> C
|
43 | 42 | |
|
44 |
| - | where: ^ refers to the universal root capability |
45 |
| - | ^² refers to a fresh root capability in the type of value x4 |
| 43 | + | where: ^ refers to the universal root capability |
46 | 44 | |
|
47 | 45 | | longer explanation available when compiling with `-explain`
|
48 | 46 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:21:30 --------------------------
|
|
58 | 56 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:24:30 --------------------------
|
59 | 57 | 24 | val _: A^ -> (x: C^) => C = x6 // error
|
60 | 58 | | ^^
|
61 |
| - | Found: (x6 : A^ -> (x: C^) => C^²) |
62 |
| - | Required: A^ -> (x: C^) =>² C |
| 59 | + | Found: A^ -> (x: C^) ->{x6*} C^² |
| 60 | + | Required: A^ -> (x: C^) => C |
63 | 61 | |
|
64 |
| - | where: => refers to a fresh root capability in the type of value x6 |
65 |
| - | =>² refers to a fresh root capability in the type of value _$6 |
66 |
| - | ^ refers to the universal root capability |
67 |
| - | ^² refers to a root capability associated with the result type of (x: C^): C^² |
| 62 | + | where: => refers to a fresh root capability in the type of value _$6 |
| 63 | + | ^ refers to the universal root capability |
| 64 | + | ^² refers to a root capability associated with the result type of (x: C^): C^² |
68 | 65 | |
|
69 | 66 | | longer explanation available when compiling with `-explain`
|
70 | 67 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:27:25 --------------------------
|
|
82 | 79 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:30:20 --------------------------
|
83 | 80 | 30 | val _: C^ => C = y2 // error
|
84 | 81 | | ^^
|
85 |
| - | Found: (y2 : C^ => C^²) |
86 |
| - | Required: C^ =>² C |
| 82 | + | Found: C^ ->{y2} C^{y2*} |
| 83 | + | Required: C^ => C |
87 | 84 | |
|
88 |
| - | where: => refers to a fresh root capability in the type of value y2 |
89 |
| - | =>² refers to a fresh root capability in the type of value _$8 |
90 |
| - | ^ refers to the universal root capability |
91 |
| - | ^² refers to a fresh root capability in the type of value y2 |
| 85 | + | where: => refers to a fresh root capability in the type of value _$8 |
| 86 | + | ^ refers to the universal root capability |
92 | 87 | |
|
93 | 88 | | longer explanation available when compiling with `-explain`
|
94 | 89 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:33:30 --------------------------
|
95 | 90 | 33 | val _: A^ => (x: C^) => C = y3 // error
|
96 | 91 | | ^^
|
97 |
| - | Found: (y3 : A^ => (x: C^) =>² C^²) |
98 |
| - | Required: A^ =>³ (x: C^) =>⁴ C |
| 92 | + | Found: A^ ->{y3} (x: C^) ->{y3*} C^² |
| 93 | + | Required: A^ => (x: C^) =>² C |
99 | 94 | |
|
100 |
| - | where: => refers to a fresh root capability in the type of value y3 |
101 |
| - | =>² refers to a fresh root capability in the type of value y3 |
102 |
| - | =>³ refers to a fresh root capability in the type of value _$9 |
103 |
| - | =>⁴ refers to a fresh root capability in the type of value _$9 |
| 95 | + | where: => refers to a fresh root capability in the type of value _$9 |
| 96 | + | =>² refers to a fresh root capability in the type of value _$9 |
104 | 97 | | ^ refers to the universal root capability
|
105 | 98 | | ^² refers to a root capability associated with the result type of (x: C^): C^²
|
106 | 99 | |
|
107 | 100 | | longer explanation available when compiling with `-explain`
|
108 | 101 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:36:25 --------------------------
|
109 | 102 | 36 | val _: A^ => C^ => C = y4 // error
|
110 | 103 | | ^^
|
111 |
| - | Found: (y4 : A^ => C^ =>² C^²) |
112 |
| - | Required: A^ =>³ C^ =>⁴ C |
| 104 | + | Found: A^ ->{y4} C^ ->{y4*} C^{y4*} |
| 105 | + | Required: A^ => C^ =>² C |
113 | 106 | |
|
114 |
| - | where: => refers to a fresh root capability in the type of value y4 |
115 |
| - | =>² refers to a fresh root capability in the type of value y4 |
116 |
| - | =>³ refers to a fresh root capability in the type of value _$10 |
117 |
| - | =>⁴ refers to a fresh root capability in the type of value _$10 |
| 107 | + | where: => refers to a fresh root capability in the type of value _$10 |
| 108 | + | =>² refers to a fresh root capability in the type of value _$10 |
118 | 109 | | ^ refers to the universal root capability
|
119 |
| - | ^² refers to a fresh root capability in the type of value y4 |
120 | 110 | |
|
121 | 111 | | longer explanation available when compiling with `-explain`
|
122 | 112 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:39:30 --------------------------
|
|
134 | 124 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/existential-mapping.scala:42:30 --------------------------
|
135 | 125 | 42 | val _: A^ => (x: C^) => C = y6 // error
|
136 | 126 | | ^^
|
137 |
| - | Found: (y6 : A^ => (x: C^) =>² C^²) |
138 |
| - | Required: A^ =>³ (x: C^) =>⁴ C |
| 127 | + | Found: A^ ->{y6} (x: C^) ->{y6*} C^² |
| 128 | + | Required: A^ => (x: C^) =>² C |
139 | 129 | |
|
140 |
| - | where: => refers to a fresh root capability in the type of value y6 |
141 |
| - | =>² refers to a fresh root capability in the type of value y6 |
142 |
| - | =>³ refers to a fresh root capability in the type of value _$12 |
143 |
| - | =>⁴ refers to a fresh root capability in the type of value _$12 |
| 130 | + | where: => refers to a fresh root capability in the type of value _$12 |
| 131 | + | =>² refers to a fresh root capability in the type of value _$12 |
144 | 132 | | ^ refers to the universal root capability
|
145 | 133 | | ^² refers to a root capability associated with the result type of (x: C^): C^²
|
146 | 134 | |
|
|
0 commit comments