Idris2/tests/idris2/error022/expected
Guillaume ALLAIS 384c8874c2 [ fix #1979 ] use virtualised locs rather than EmptyFCs
For error reporting purposes it's better to have an (approximate)
virtual location for code that was introduced by the elaborator
than to have an `EmptyFC` that does not help.
2021-10-07 16:07:03 +01:00

16 lines
301 B
Plaintext

1/1: Building UpdateLoc (UpdateLoc.idr)
Error: While processing right hand side of f. When unifying:
Nat
and:
Double
Mismatch between: Nat and Double.
UpdateLoc:5:5--5:21
1 | record Nat2 where
2 | nat : Nat
3 |
4 | f : Nat2 -> Nat2
5 | f = { nat $= floor }
^^^^^^^^^^^^^^^^