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

Pattern matching negative numbers fails #234

Open
ii8 opened this issue Dec 13, 2023 · 0 comments
Open

Pattern matching negative numbers fails #234

ii8 opened this issue Dec 13, 2023 · 0 comments
Labels
accepted The issue has been reviewed and accepted for implementation bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ii8
Copy link

ii8 commented Dec 13, 2023

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.

@robinheghan robinheghan added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed accepted The issue has been reviewed and accepted for implementation labels Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted The issue has been reviewed and accepted for implementation bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants