mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 02:31:50 +03:00
2df3ecc2e3
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.
17 lines
485 B
Plaintext
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!
|