mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 01:41:44 +03:00
ecf4765c4b
* [ fix ] Fix issue with eager evaluation of crashing functions * Mark functions that call unsafe builtins as non-constant * Better detection of crash primop when deciding if functions can be constant
10 lines
148 B
Idris
10 lines
148 B
Idris
import System
|
|
partial
|
|
unreachable : a
|
|
unreachable = idris_crash "unreachable"
|
|
|
|
main : IO Int
|
|
main = do
|
|
exitSuccess
|
|
assert_total unreachable
|