Idris2-boot/tests/idris2/basic017/CaseInf.idr
Edwin Brady a65d1efa38 Throw error if case type is not inferred
This is probably quite rare to want, but we could consider putting this
under a delayOnFailure
2019-06-29 19:39:11 +01:00

9 lines
150 B
Idris

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