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

Multiple error message for wrong assignments #260

Closed
sharkdp opened this issue Nov 20, 2023 · 1 comment · Fixed by #265
Closed

Multiple error message for wrong assignments #260

sharkdp opened this issue Nov 20, 2023 · 1 comment · Fixed by #265
Labels
bug Something isn't working

Comments

@sharkdp
Copy link
Owner

sharkdp commented Nov 20, 2023

We used to just have a single descriptive error message when attempting to do an assignment like x = 3:

>>> x = 3
error: while parsing
  ┌─ <input:1>:1:3
  │
1 │ x = 3
  │   ^ Trailing '=' sign. Use `let x = …` if you intended to define a new constant.

but now we get

>>> x = 3
error: while parsing
  ┌─ <input:1>:1:3
  │
1 │ x = 3
  │   ^ Trailing '=' sign. Use `let x = …` if you intended to define a new constant.

error: while parsing
  ┌─ <input:1>:1:3
  │
1 │ x = 3
  │   ^ Expected one of: number, identifier, parenthesized expression

presumably since #228 (FYI @irevoire)

@sharkdp sharkdp added the bug Something isn't working label Nov 20, 2023
@irevoire
Copy link
Contributor

I'll look into it this week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants