Idris2/tests/idris2/total/total021/Issue-3030b.idr

19 lines
228 B
Idris
Raw Normal View History

data Oops = MkOops (Not Oops)
total
runOops : Oops -> Not Oops
runOops (MkOops nf) = nf
total
notOops : Not Oops
notOops x = runOops x x
covering
oops : Oops
oops = MkOops notOops
total
boom : Void
boom = runOops oops oops