Idris2/tests/idris2/positivity004/Issue524.idr

19 lines
203 B
Idris

module Issue524
%logging totality 20
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