Idris2/tests/node/node023/Casts.idr
Johann Rudloff 043336ba5c [ fix #959 ] ES Codegen: Add casts from integer types to double
A new test is included to verify the cases mentioned in the original
issue.
2021-01-21 12:28:40 +00:00

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