You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/neg-custom-args/captures/boundschecks3.check
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,22 +3,30 @@
3
3
| ^
4
4
| Type argument box test.Tree^ does not conform to upper bound test.Tree in inferred type test.C[box test.Tree^]
5
5
|
6
+
| where: ^ refers to the universal root capability
7
+
|
6
8
| longer explanation available when compiling with `-explain`
7
9
-- [E057] Type Mismatch Error: tests/neg-custom-args/captures/boundschecks3.scala:10:11 --------------------------------
8
10
10 | type T = C[Tree^] // error
9
11
| ^
10
12
| Type argument box test.Tree^ does not conform to upper bound test.Tree in inferred type test.C[box test.Tree^]
11
13
|
14
+
| where: ^ refers to the universal root capability
15
+
|
12
16
| longer explanation available when compiling with `-explain`
13
17
-- [E057] Type Mismatch Error: tests/neg-custom-args/captures/boundschecks3.scala:11:11 --------------------------------
14
18
11 | val bar: T -> T = ??? // error
15
19
| ^
16
20
|Type argument box test.Tree^ does not conform to upper bound test.Tree in subpart test.C[box test.Tree^] of inferred type test.C[box test.Tree^] -> test.C[box test.Tree^]
17
21
|
22
+
|where: ^ refers to the universal root capability
23
+
|
18
24
| longer explanation available when compiling with `-explain`
19
25
-- [E057] Type Mismatch Error: tests/neg-custom-args/captures/boundschecks3.scala:12:11 --------------------------------
20
26
12 | val baz: C[Tree^] -> Unit = ??? // error
21
27
| ^
22
28
|Type argument box test.Tree^ does not conform to upper bound test.Tree in subpart test.C[box test.Tree^] of inferred type test.C[box test.Tree^] -> Unit
23
29
|
30
+
|where: ^ refers to the universal root capability
31
+
|
24
32
| longer explanation available when compiling with `-explain`
0 commit comments