|
1 | 1 | [error] examples/neg/lambdas/inference.effekt:13:8: Expected type
|
2 |
| - (Int => Bool at {}) => String |
| 2 | + (Int => Bool at {}) => String at {} |
3 | 3 | but got type
|
4 |
| - (Int => Unit at {}) => String |
| 4 | + (Int => Unit at {}) => String at ?C |
5 | 5 |
|
6 | 6 | Type mismatch between Bool and Unit.
|
7 | 7 | comparing the argument types of
|
8 | 8 | (Int => Unit at {}) => String (given)
|
9 | 9 | (Int => Bool at {}) => String (expected)
|
10 | 10 | when comparing the return type of the function.
|
11 |
| - hof2(fun(f: (Int) => Unit at {}) { "" }) |
12 |
| - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
13 |
| -[error] examples/neg/lambdas/inference.effekt:13:8: Expected type |
14 |
| - (Int => Bool at {}) => String at {} |
| 11 | + hof2(box { (f: (Int) => Unit at {}) => "" }) |
| 12 | + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | +[error] examples/neg/lambdas/inference.effekt:13:12: Expected type |
| 14 | + (Int => Bool at {}) => String |
15 | 15 | but got type
|
16 |
| - (Int => Unit at {}) => String at ?C |
| 16 | + (Int => Unit at {}) => String |
17 | 17 |
|
18 | 18 | Type mismatch between Bool and Unit.
|
19 | 19 | comparing the argument types of
|
20 | 20 | (Int => Unit at {}) => String (given)
|
21 | 21 | (Int => Bool at {}) => String (expected)
|
22 | 22 | when comparing the return type of the function.
|
23 |
| - hof2(fun(f: (Int) => Unit at {}) { "" }) |
24 |
| - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
25 |
| -[error] examples/neg/lambdas/inference.effekt:13:12: Type Int => Unit at {} does not match the declared type Int => Bool at {}. |
| 23 | + hof2(box { (f: (Int) => Unit at {}) => "" }) |
| 24 | + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 25 | +[error] examples/neg/lambdas/inference.effekt:13:15: Type Int => Unit at {} does not match the declared type Int => Bool at {}. |
26 | 26 | when comparing the return type of the function.
|
27 |
| - hof2(fun(f: (Int) => Unit at {}) { "" }) |
28 |
| - ^^^^^^^^^^^^^^^^^^^^^^ |
| 27 | + hof2(box { (f: (Int) => Unit at {}) => "" }) |
| 28 | + ^^^^^^^^^^^^^^^^^^^^^^ |
0 commit comments