mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-28 02:23:44 +03:00
043336ba5c
A new test is included to verify the cases mentioned in the original issue.
11 lines
257 B
Idris
11 lines
257 B
Idris
%foreign "javascript:lambda: (x) => console.log('ok')"
|
|
prim__ok : Double -> PrimIO ()
|
|
|
|
main : HasIO io => io ()
|
|
main = do
|
|
primIO $ prim__ok 0
|
|
primIO $ prim__ok 99
|
|
primIO $ prim__ok 100
|
|
primIO $ prim__ok (-1)
|
|
primIO $ prim__ok 1234567890
|