mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-27 05:34:40 +03:00
13 lines
225 B
Idris
13 lines
225 B
Idris
|
-- Idris2
|
||
|
|
||
|
import System
|
||
|
import System.Concurrency
|
||
|
|
||
|
||| Test releasing without acquiring errors correctly
|
||
|
main : IO ()
|
||
|
main =
|
||
|
do m <- makeMutex
|
||
|
mutexRelease m
|
||
|
putStrLn "Released w/o acquiring (SHOULDN'T HAPPEN)"
|
||
|
|