roc icon indicating copy to clipboard operation
roc copied to clipboard

Parse error: Double colon in type annotation

Open ziutech opened this issue 2 years ago • 0 comments

Code:

main :: Str # excess colon
main = "Hello world"

Error:

── NOT END OF FILE ────────────────────────────────────── hello-world/main.roc ─

I expected to reach the end of the file, but got stuck here:

6│  main :: Str
    ^

I think it would be nice if the message at least prompted about unexpected character.

ziutech avatar Oct 02 '22 11:10 ziutech