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

compilation failure is treated as success #15

Open
Licenser opened this issue Jun 11, 2017 · 1 comment
Open

compilation failure is treated as success #15

Licenser opened this issue Jun 11, 2017 · 1 comment

Comments

@Licenser
Copy link

compiling the following code:

module example

export add/2

let add x y = x + y

let run () = add 2 1.0

fails as the awesome statical typing tells me I can't add 2 and 1.0 the error is printed:

UNIFY FAIL:  t_int AND t_float
LINE 7
Compile error: {cannot_unify,example,7,t_int,t_float}

However the shell still starts and doesn't fail.

@srenatus
Copy link

+1 it's a little confusing -- I'd think that this might be resolved by the overhaul everything PR, too. 🤔

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

2 participants