Idris2/tests/node/node027/PID.idr
2021-12-22 22:25:21 +08:00

11 lines
154 B
Idris

import System
assert : Bool -> IO ()
assert b = if b
then pure ()
else assert_total $ idris_crash ""
main : IO ()
main = do
assert $ !getPID /= 0