mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 02:31:50 +03:00
2a5739c27a
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
12 lines
409 B
Plaintext
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
|
|
^^^^^^^^^^^^^
|
|
|