|
1 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:3:2 ------------------------------------------ |
2 | | -3 | () => if x == null then y else y // error |
| 1 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:4:2 ------------------------------------------ |
| 2 | +4 | () => if x == null then y else y // error |
3 | 3 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
4 | 4 | | Found: {x} () -> ? C |
5 | 5 | | Required: () -> C |
6 | 6 | | |
7 | 7 | | longer explanation available when compiling with `-explain` |
8 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:6:2 ------------------------------------------ |
9 | | -6 | () => if x == null then y else y // error |
| 8 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:7:2 ------------------------------------------ |
| 9 | +7 | () => if x == null then y else y // error |
10 | 10 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
11 | 11 | | Found: {x} () -> ? C |
12 | 12 | | Required: Matchable |
13 | 13 | | |
14 | 14 | | longer explanation available when compiling with `-explain` |
15 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:13:2 ----------------------------------------- |
16 | | -13 | def f(y: Int) = if x == null then y else y // error |
| 15 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:14:2 ----------------------------------------- |
| 16 | +14 | def f(y: Int) = if x == null then y else y // error |
17 | 17 | | ^ |
18 | 18 | | Found: {x} Int -> Int |
19 | 19 | | Required: Matchable |
20 | | -14 | f |
| 20 | +15 | f |
21 | 21 | | |
22 | 22 | | longer explanation available when compiling with `-explain` |
23 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:20:2 ----------------------------------------- |
24 | | -20 | class F(y: Int) extends A: // error |
| 23 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:21:2 ----------------------------------------- |
| 24 | +21 | class F(y: Int) extends A: // error |
25 | 25 | | ^ |
26 | 26 | | Found: {x} A |
27 | 27 | | Required: A |
28 | | -21 | def m() = if x == null then y else y |
29 | | -22 | F(22) |
| 28 | +22 | def m() = if x == null then y else y |
| 29 | +23 | F(22) |
30 | 30 | | |
31 | 31 | | longer explanation available when compiling with `-explain` |
32 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:25:2 ----------------------------------------- |
33 | | -25 | new A: // error |
| 32 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:26:2 ----------------------------------------- |
| 33 | +26 | new A: // error |
34 | 34 | | ^ |
35 | 35 | | Found: {x} A |
36 | 36 | | Required: A |
37 | | -26 | def m() = if x == null then y else y |
| 37 | +27 | def m() = if x == null then y else y |
38 | 38 | | |
39 | 39 | | longer explanation available when compiling with `-explain` |
40 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:31:24 ---------------------------------------- |
41 | | -31 | val z2 = h[() -> Cap](() => x) // error |
| 40 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:32:24 ---------------------------------------- |
| 41 | +32 | val z2 = h[() -> Cap](() => x) // error |
42 | 42 | | ^^^^^^^ |
43 | 43 | | Found: {x} () -> {*} C |
44 | 44 | | Required: () -> box {*} C |
45 | 45 | | |
46 | 46 | | longer explanation available when compiling with `-explain` |
47 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:32:5 ----------------------------------------- |
48 | | -32 | (() => C()) // error |
| 47 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:33:5 ----------------------------------------- |
| 48 | +33 | (() => C()) // error |
49 | 49 | | ^^^^^^^^^ |
50 | 50 | | Found: ? () -> {*} C |
51 | 51 | | Required: () -> box {*} C |
|
0 commit comments