Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proc type is not inferred when passing to library fun and the return type doesn't match #219

Closed
waj opened this issue Oct 9, 2014 · 0 comments

Comments

@waj
Copy link
Member

waj commented Oct 9, 2014

The following code:

lib Foo
  fun bar(f : Int32 -> Int32)
end

Foo.bar ->(x) { 1.1 }

Gives the error: function argument 'x' must have a type

Instead I'd expect it to say: argument 'f' of 'Foo#bar' must be (Int32 -> Int32), not (Int32 -> Float64) or even better, something like return type must be Int32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant