Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upWrong type of the exponentiation (^) operator. #526
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Duplicate of https://github.com/elm-lang/core/issues/194. |
jvoigtlaender
closed this
Mar 16, 2016
jvoigtlaender
referenced this issue
Mar 18, 2016
Closed
Exponentiation (^) can break Int/Float type safety #529
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
durkiewicz commentedMar 16, 2016
It is
number -> number -> number, but I think it should benumber -> number -> Floatbecause 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):