Idris2/tests/idris2/reg050/expected
Edwin Brady 2a5739c27a
Check primitives (fromInteger etc) reduce on LHS (#1903)
If they don't, we can't turn them into patterns to match on, and we end
up looping. Possibly we could throw a different and maybe more
informative error instead of just making an unmatchable pattern.
Fixes #1895
2021-09-05 12:37:59 +01:00

12 lines
409 B
Plaintext

1/1: Building loopy (loopy.idr)
Error: While processing right hand side of eatBinary. While processing right hand side of eatBinary,firstDigit. Patterns for eatBinary,firstDigit,f require matching on different types.
loopy:24:5--24:18
20 | firstDigit : List Char -> i
21 | firstDigit [] = 0
22 | firstDigit (d :: ds) = let
23 | f : Maybe i -> i
24 | f Nothing = 0
^^^^^^^^^^^^^