Closed brainrake closed 5 years ago
Ubuntu 16.04 64bit, processor Core i7
I'm getting different error:
> over9000 powerLevel = \
| if powerLevel > 9000 then "It's over 9000!"
-- SYNTAX PROBLEM -------------------------------------------- repl-temp-000.elm
The = operator is reserved for defining variables. Maybe you want == instead? Or
maybe you are defining a variable, but there is whitespace before it?
Thanks for the report! I am finishing up an overhaul of the parser that will produce nicer error messages, so my development build is now producing:
-- UNFINISHED IF ------------------------------------------------------ temp.elm
I was expecting to see an `else` branch after this:
1| a = if True then 1
^
I know what to do when the condition is `True`, but not when it is `False`.
Add an else branch to handle that scenario!
Actually talks about needing an else
branch now!
Error message: