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

bug: catch invalid assignments and throw a better error message #2808

Open
kmr-srbh opened this issue Sep 4, 2024 · 0 comments
Open

bug: catch invalid assignments and throw a better error message #2808

kmr-srbh opened this issue Sep 4, 2024 · 0 comments

Comments

@kmr-srbh
Copy link
Contributor

kmr-srbh commented Sep 4, 2024

'a' = 1
(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ lpython ./examples/example.py
semantic error: Unsupported type in check_is_assign_to_input_param()
 --> ./examples/example.py:1:1
  |
1 | 'a' = 1
  | ^^^ 


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.

I think the invalid assignment above should have been caught earlier and reported with a better error message.

@kmr-srbh kmr-srbh changed the title bug: catch invalid assignments and throw a beautiful error message bug: catch invalid assignments and throw a better error message Sep 10, 2024
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

No branches or pull requests

1 participant