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

let in select has a bad error #11

Closed
Licenser opened this issue Nov 28, 2019 · 2 comments
Closed

let in select has a bad error #11

Licenser opened this issue Nov 28, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request language

Comments

@Licenser
Copy link
Member

when we have a let in select we should print a nicer error

@Licenser Licenser added the enhancement New feature or request label Nov 28, 2019
@mfelsche
Copy link
Member

The current error is:

Error: 
    6 | 
    7 | select 
    8 | let a = event.foo;
      | ^^^ Found the token `let` but expected one of `!`, `\``, `$`, `(`, `+`, `-`, `<ident>`, `[`, `absent`, `args`, `bool`, `event`, `float`, `for`, `group`, `heredoc`, `int`, `match`, `merge`, `nil`, `not`, `patch`, `present`, `recur`, `state`, `window`, `{`
      |     NOTE: Did you mean to use `!`?
    9 | from in into out;
   10 | # select event from foo/err into out/err;

Is this the bad error reported here? Or can we consider this issue fixed?

@Licenser
Copy link
Member Author

Licenser commented Oct 9, 2023

this has improved since

@Licenser Licenser closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language
Projects
None yet
Development

No branches or pull requests

2 participants