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

Unclear error message if parentheses are missing #322

Closed
justprosh opened this issue Oct 5, 2021 · 0 comments · Fixed by #353
Closed

Unclear error message if parentheses are missing #322

justprosh opened this issue Oct 5, 2021 · 0 comments · Fixed by #353

Comments

@justprosh
Copy link
Member

Code snippet:

func timestamp_sec(node: string) -> u64:
    on node:
        result <- Peer.timestamp_sec
    <- result

Error message:

7  func timestamp_sec(node: string) -> u64:
8      on node:
9          result <- Peer.timestamp_sec
          ^===========================
          Syntax error: Expected one of these strings: '<-', 'catch', 'co', 'else', 'for', 'if', 'on', 'otherwise', 'par', 'try'
          OR Expected symbols from 'A' to 'Z'
          OR Expected one of these strings: '<<-' on 8:15
          OR Expected symbol ':' on 8:15
          OR Expected symbol '=' on 8:15
          OR Expected symbol '(' on 8:36
10     <- result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant