Skip to content

Pattern matching negative numbers fails #234

@ii8

Description

@ii8
test n =
  case n of
    -1 -> "minus one"
    _ -> "something else"
-- UNEXPECTED SYMBOL ------------------------------------------------- Main.gren

I ran into a minus sign unexpectedly in this pattern:

3|     -1 -> "minus one"

This is a bug inherited from elm I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThe issue has been reviewed and accepted for implementationbugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions