|
1 | 1 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps2.scala:5:23 ----------------------------------
|
2 | 2 | 5 | val _: (x: C) => C = b // error
|
3 | 3 | | ^
|
4 |
| - | Found: (b : C => C) |
5 |
| - | Required: (x: C^) =>² C^² |
| 4 | + | Found: (b : C => C) |
| 5 | + | Required: (x: C^) =>² C^² |
6 | 6 | |
|
7 |
| - | where: => refers to a fresh root capability in the type of value b |
8 |
| - | =>² refers to a fresh root capability in the type of value _$1 |
9 |
| - | ^ refers to the universal root capability |
10 |
| - | ^² refers to a root capability associated with the result type of (x: C^): C^² |
| 7 | + | Note that the existential capture root in C^ |
| 8 | + | cannot subsume the capability cap.. |
11 | 9 | |
|
12 |
| - | Note that the existential capture root in C^ |
13 |
| - | cannot subsume the capability cap.. |
| 10 | + | Note that capability cap is not included in capture set {cap²}. |
| 11 | + | |
| 12 | + | where: => refers to a fresh root capability in the type of value b |
| 13 | + | =>² refers to a fresh root capability in the type of value _$1 |
| 14 | + | ^ refers to the universal root capability |
| 15 | + | ^² refers to a root capability associated with the result type of (x: C^): C^² |
| 16 | + | cap is a fresh root capability classified as SharedCapability in the type of value b |
| 17 | + | cap² is a fresh root capability in the type of value b |
14 | 18 | |
|
15 | 19 | | longer explanation available when compiling with `-explain`
|
16 | 20 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps2.scala:6:18 ----------------------------------
|
17 | 21 | 6 | val _: C => C = a // error
|
18 | 22 | | ^
|
19 |
| - | Found: (a : (x: C) => C) |
20 |
| - | Required: C^ =>² C^² |
| 23 | + | Found: (a : (x: C) => C) |
| 24 | + | Required: C^ =>² C^² |
21 | 25 | |
|
22 |
| - | where: => refers to a fresh root capability in the type of value a |
23 |
| - | =>² refers to a fresh root capability in the type of value _$2 |
24 |
| - | ^ refers to the universal root capability |
25 |
| - | ^² refers to a fresh root capability classified as SharedCapability in the type of value _$2 |
| 26 | + | Note that capability cap is not included in capture set {cap²}. |
26 | 27 | |
|
27 |
| - | Note that capability cap is not included in capture set {cap}. |
| 28 | + | where: => refers to a fresh root capability in the type of value a |
| 29 | + | =>² refers to a fresh root capability in the type of value _$2 |
| 30 | + | ^ refers to the universal root capability |
| 31 | + | ^² refers to a fresh root capability classified as SharedCapability in the type of value _$2 |
| 32 | + | cap is a fresh root capability in the type of value a |
| 33 | + | cap² is a fresh root capability in the type of value _$2 |
28 | 34 | |
|
29 | 35 | | longer explanation available when compiling with `-explain`
|
30 | 36 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps2.scala:8:18 ----------------------------------
|
31 | 37 | 8 | val _: C => C = (x: C) => a(x) // error
|
32 | 38 | | ^^^^^^^^^^^^^^
|
33 |
| - | Found: (x: C^) ->{a} C^² |
34 |
| - | Required: C^ => C^³ |
| 39 | + | Found: (x: C^) ->{a} C^² |
| 40 | + | Required: C^ => C^³ |
35 | 41 | |
|
36 |
| - | where: => refers to a fresh root capability in the type of value _$4 |
37 |
| - | ^ refers to the universal root capability |
38 |
| - | ^² refers to a root capability associated with the result type of (x: C^): C^² |
39 |
| - | ^³ refers to a fresh root capability classified as SharedCapability in the type of value _$4 |
| 42 | + | Note that capability cap is not included in capture set {cap²} |
| 43 | + | because cap is not visible from cap² in value _$4. |
40 | 44 | |
|
41 |
| - | Note that capability <cap of (x: C^): C^> is not included in capture set {cap} |
42 |
| - | because <cap of (x: C^): C^> is not visible from cap in value _$4. |
| 45 | + | where: => refers to a fresh root capability in the type of value _$4 |
| 46 | + | ^ refers to the universal root capability |
| 47 | + | ^² refers to a root capability associated with the result type of (x: C^): C^² |
| 48 | + | ^³ refers to a fresh root capability classified as SharedCapability in the type of value _$4 |
| 49 | + | cap is a root capability associated with the result type of (x: C^): C^² |
| 50 | + | cap² is a fresh root capability classified as SharedCapability in the type of value _$4 |
43 | 51 | |
|
44 | 52 | | longer explanation available when compiling with `-explain`
|
45 | 53 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps2.scala:14:18 ---------------------------------
|
46 | 54 | 14 | val _: C -> C = a // error
|
47 | 55 | | ^
|
48 |
| - | Found: (a : (x: C) -> C) |
49 |
| - | Required: C^ -> C^² |
| 56 | + | Found: (a : (x: C) -> C) |
| 57 | + | Required: C^ -> C^² |
50 | 58 | |
|
51 |
| - | where: ^ refers to the universal root capability |
52 |
| - | ^² refers to a fresh root capability classified as SharedCapability in the type of value _$6 |
| 59 | + | Note that capability cap is not included in capture set {cap²} |
| 60 | + | because cap is not visible from cap² in value _$6. |
53 | 61 | |
|
54 |
| - | Note that capability <cap of (x: C^): C^> is not included in capture set {cap} |
55 |
| - | because <cap of (x: C^): C^> is not visible from cap in value _$6. |
| 62 | + | where: ^ refers to the universal root capability |
| 63 | + | ^² refers to a fresh root capability classified as SharedCapability in the type of value _$6 |
| 64 | + | cap is a root capability associated with the result type of (x: C^): C^³ |
| 65 | + | cap² is a fresh root capability classified as SharedCapability in the type of value _$6 |
56 | 66 | |
|
57 | 67 | | longer explanation available when compiling with `-explain`
|
58 | 68 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps2.scala:15:23 ---------------------------------
|
|
61 | 71 | | Found: (x: C^) ->{b} C^²
|
62 | 72 | | Required: (x: C^) -> C^³
|
63 | 73 | |
|
| 74 | + | Note that capability b is not included in capture set {}. |
| 75 | + | |
64 | 76 | | where: ^ refers to the universal root capability
|
65 | 77 | | ^² refers to a root capability associated with the result type of (x: C^): C^²
|
66 | 78 | | ^³ refers to a root capability associated with the result type of (x: C^): C^³
|
67 | 79 | |
|
68 |
| - | Note that capability b is not included in capture set {}. |
69 |
| - | |
70 | 80 | | longer explanation available when compiling with `-explain`
|
71 | 81 | -- [E007] Type Mismatch Error: tests/neg-custom-args/captures/scoped-caps2.scala:16:29 ---------------------------------
|
72 | 82 | 16 | val _: C -> C = (x: C) => a(x) // error
|
73 | 83 | | ^^^^
|
74 |
| - | Found: C^{x} |
75 |
| - | Required: C^ |
| 84 | + | Found: C^{x} |
| 85 | + | Required: C^ |
76 | 86 | |
|
77 |
| - | where: ^ refers to a fresh root capability classified as SharedCapability in the type of value _$8 |
| 87 | + | Note that capability x is not included in capture set {cap} |
| 88 | + | because (x : C) in enclosing function is not visible from cap in value _$8. |
78 | 89 | |
|
79 |
| - | Note that capability x is not included in capture set {cap} |
80 |
| - | because (x : C) in enclosing function is not visible from cap in value _$8. |
| 90 | + | where: ^ refers to a fresh root capability classified as SharedCapability in the type of value _$8 |
| 91 | + | cap is a fresh root capability classified as SharedCapability in the type of value _$8 |
81 | 92 | |
|
82 | 93 | | longer explanation available when compiling with `-explain`
|
0 commit comments