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

Emit error for constant assignments in defs #2007

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Emit error for constant assignments in defs #2007

merged 1 commit into from
Dec 6, 2023

Conversation

haldun
Copy link
Collaborator

@haldun haldun commented Dec 6, 2023

Closes #2004

I copied the error message from Ruby.

@haldun haldun requested a review from kddnewton December 6, 2023 22:06
Copy link
Collaborator

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was quick!

@kddnewton kddnewton merged commit 102089c into ruby:main Dec 6, 2023
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 this pull request may close these issues.

Constant assignment in methods should be a syntax error
2 participants