Skip to content

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

@durkiewicz

Description

@durkiewicz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions