Idris2/tests/idris2/reg022/case.idr

6 lines
227 B
Idris
Raw Normal View History

-- Previously this gave an 'unreachable case warning' and evaluated
-- to the first case! Should give foo : Nat -> Nat
foo : (x : Nat) -> case S x of
Z => Nat -> Nat
(S k) => Nat