Idris2/tests/idris2/reg048/expected
Edwin Brady 2df3ecc2e3
Fix display of ambiguity errors (#2075)
We need to store the Context in errors at the point where the error
occurs, or we might get some nonsense in the message. There's still a
couple of places in Error where we don't do this right. This fixes one
of them, and improves a few messages in the process.
2021-10-30 23:08:53 +01:00

14 lines
408 B
Plaintext

1/1: Building inferror (inferror.idr)
Error: While processing right hand side of g. Ambiguous elaboration. Possible results:
Data.SortedMap.toList m
Prelude.toList m
inferror:9:17--9:23
5 | f m = case sortBy (\(x, _), (y, _) => compare x y) (SortedMap.toList m) of
6 | as => as
7 |
8 | g : Ord k => SortedMap k v -> List (k, v)
9 | g m = let kvs = toList m in
^^^^^^