Idris2/tests/idris2/total/total021/Issue-524.idr
2023-09-07 20:26:18 -07:00

15 lines
164 B
Idris

data Bad = MkBad (Not Bad)
hmmm : Bad -> Not Bad
hmmm (MkBad n) = n
ok : Not Bad
ok bad = hmmm bad bad
bad : Bad
bad = MkBad ok
total
ohno : Void
ohno = ok bad