|
2 | 2 | 63 | Result:
|
3 | 3 | 64 | Future: // error, type mismatch
|
4 | 4 | | ^
|
5 |
| - | Found: Result.Ok[Future[T^?]^{fr, contextual$1}] |
| 5 | + | Found: Result.Ok[Future[T^'s1]^{fr, contextual$1}] |
6 | 6 | | Required: Result[Future[T], Nothing]
|
7 | 7 | | Note that capability fr is not included in capture set {}.
|
8 | 8 | 65 | fr.await.ok
|
|
18 | 18 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/effect-swaps-explicit.scala:69:10 ------------------------
|
19 | 19 | 69 | Future: fut ?=> // error, type mismatch
|
20 | 20 | | ^
|
21 |
| - |Found: (contextual$9: boundary.Label[Result[Future[T^?]^?, E^?]^?]^?) ?->{fr, async} Future[T^?]^{fr, contextual$9} |
22 |
| - |Required: (boundary.Label[Result[Future[T^?]^?, E^?]]^) ?=> Future[T^?]^? |
| 21 | + |Found: (contextual$9: boundary.Label[Result[Future[T^'s2]^'s3, E^'s4]^'s5]^'s6) ?->{fr, async} Future[T^'s7]^{fr, contextual$9} |
| 22 | + |Required: (boundary.Label[Result[Future[T^'s8]^'s9, E^'s10]]^) ?=> Future[T^'s8]^'s9 |
23 | 23 | |
|
24 | 24 | |where: ?=> refers to a fresh root capability created in method fail4 when checking argument to parameter body of method make
|
25 | 25 | | ^ refers to the universal root capability
|
26 | 26 | |
|
27 |
| - |Note that capability contextual$9 cannot be included in outer capture set ?. |
| 27 | + |Note that capability contextual$9 cannot be included in outer capture set 's9. |
28 | 28 | 70 | fr.await.ok
|
29 | 29 | |
|
30 | 30 | | longer explanation available when compiling with `-explain`
|
31 | 31 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/effect-swaps-explicit.scala:73:35 ------------------------
|
32 | 32 | 73 | Result.make[Future[T], E]: lbl ?=> // error: type mismatch
|
33 | 33 | | ^
|
34 |
| - |Found: (lbl: boundary.Label[Result[Future[T^?]^?, E^?]^?]^?) ?->{fr, async} Future[T^?]^{fr, lbl} |
| 34 | + |Found: (lbl: boundary.Label[Result[Future[T^'s11]^'s12, E^'s13]^'s14]^'s15) ?->{fr, async} Future[T^'s16]^{fr, lbl} |
35 | 35 | |Required: (boundary.Label[Result[Future[T], E]]^) ?=> Future[T]
|
36 | 36 | |
|
37 | 37 | |where: ?=> refers to a fresh root capability created in method fail5 when checking argument to parameter body of method make
|
|
0 commit comments