gren-lang / compiler

Compiler for the Gren programming language
https://gren-lang.org
Other
342 stars 21 forks source link

Pattern matching negative numbers fails #234

Open ii8 opened 9 months ago

ii8 commented 9 months ago
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.