Idris2-boot/tests/idris2/coverage006/foobar.idr

8 lines
183 B
Idris
Raw Normal View History

2020-03-18 17:39:59 +03:00
foo : (pf : Nat -> Either (S Z = Z) (Z = S Z)) -> Z = S Z
foo pf =
let baz : Z = S Z
baz with (pf 0)
baz | (Left Refl) impossible
baz | (Right pf') = pf'
in baz