mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 10:02:03 +03:00
0c030020de
When implicitly binding a variable, use the location of the head function/constructor that expects it. This way we can differentiate multiple implicits bound on the same LHS. Note that this does not resolve the issue 34: there the location is then further muddled by the fact that where-bound functions are lifted to the toplevel.
15 lines
397 B
Plaintext
15 lines
397 B
Plaintext
1/1: Building TwoNum (TwoNum.idr)
|
|
Error: While processing right hand side of f. While processing right hand side of f,g. Multiple solutions found in search of:
|
|
Num a
|
|
|
|
TwoNum:4:7--4:8
|
|
1 | f : Num a => a
|
|
2 | f = g where
|
|
3 | g : Num a => a
|
|
4 | g = 0
|
|
^
|
|
|
|
Possible correct results:
|
|
conArg (implicitly bound at TwoNum:4:3--4:4)
|
|
conArg (implicitly bound at TwoNum:2:1--2:2)
|