Idris2-boot/tests/idris2/basic017/CaseInf.idr

9 lines
150 B
Idris
Raw Normal View History

test3ok : Nat
test3ok = case (the Nat 1, 2) of
(x, y) => x + y
test3bad : Nat
test3bad = case (1, 2) of
(x, y) => x + y