mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 20:51:43 +03:00
384c8874c2
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.
16 lines
301 B
Plaintext
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 }
|
|
^^^^^^^^^^^^^^^^
|
|
|