Idris2/tests/refc/reg001/Issue1843.idr

8 lines
141 B
Idris

test : () -> IO ()
test () = putStrLn "a test"
test _ = putStrLn "oopsie"
main : IO ()
main = do test ()
putStrLn "foo" >>= test