Idris2/tests/idris2/error017/Issue962-case.idr
Guillaume ALLAIS 688e5c586c [ test ] Note that we cannot turn the whole check off
If we were to turn the whole check off instead of just making it
(not incase || isJust (isLHS mode)) then Issue962-case would fail
because `c` would get defaulted to `Integer` and not the `Int` that
is expected.
2021-04-16 18:12:40 +01:00

5 lines
68 B
Idris

test : Nat -> Int
test n =
let c = if n == Z then 0 else 1
in c