Idris2/tests/idris2/coverage/coverage006/foobar.idr
2023-09-07 14:57:22 +01:00

8 lines
184 B
Idris

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