Idris2/tests/idris2/interface/interface016/expected
Guillaume Allais 0c030020de [ re #3314, #34 ] Tighten the location information for implicits
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.
2024-06-17 16:32:24 +01:00

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)