Idris2/tests/idris2/basic003/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

17 lines
485 B
Plaintext

1/1: Building Ambig1 (Ambig1.idr)
Main> Bye for now!
1/1: Building Ambig2 (Ambig2.idr)
Error: While processing right hand side of keepUnique. Ambiguous elaboration. Possible results:
Main.Set.toList (Main.Set.fromList xs)
Main.Vect.toList (Main.Vect.fromList xs)
Ambig2:26:21--26:27
22 | export
23 | fromList : List a -> Set a
24 |
25 | keepUnique : List b -> List b
26 | keepUnique {b} xs = toList (fromList xs)
^^^^^^
Main> Bye for now!