mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 16:21:46 +03:00
688e5c586c
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.
5 lines
68 B
Idris
5 lines
68 B
Idris
test : Nat -> Int
|
|
test n =
|
|
let c = if n == Z then 0 else 1
|
|
in c
|