Skip to content
Snippets Groups Projects
Commit d2b31525 authored by sof's avatar sof
Browse files

[project @ 1998-03-05 20:34:11 by sof]

Exercise defaulting of _ccall_ results (bot not args) to ()
parent 47556217
No related branches found
No related tags found
No related merge requests found
--!!! cc002 -- ccall with ambiguous result (should be defaulted to ())
module ShouldCompile where
a :: IO ()
a = do
_ccall_ a
return ()
--!!! cc002 -- ccall with ambiguous argument
module Test where
f :: IO ()
f = _ccall_ foo (undefined ())
cc001.hs:5:
Cannot resolve the ambiguous context (PrelGHC.CCallable aJC)
`PrelGHC.CCallable aJC' arising from an argument in the _ccall_ to `foo', namely `(Prelude.undefined ())' at cc001.hs:5
Compilation had errors
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment