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

Wrong type of the exponentiation (^) operator. #526

Closed
durkiewicz opened this Issue Mar 16, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@durkiewicz

durkiewicz commented Mar 16, 2016

It is number -> number -> number, but I think it should be number -> number -> Float because you can get a non-integer even when you pass two integers to the function. The following code compiles without errors in Elm 0.16 (which is in my opinion wrong):

x : Int
x = 2 ^ -1
@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
Contributor

jvoigtlaender commented Mar 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment