Idris2/tests/idris2/total/total021/Issue-524.idr

15 lines
164 B
Idris
Raw Normal View History

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