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

Do not allow name that starts with a capital letter as type alias name #565

Conversation

pocke
Copy link
Member

@pocke pocke commented Jan 2, 2021

Fix #564

RBS will deny a token that starts with a capital letter as a type alias name by this patch.


The diff of parser.y looks large so I was worried it includes an environment-specific difference at first.
But the diff is not problematic because I've confirmed touch lib/rbs/parser.y && rake parser doesn't make any diff on the master branch in the same environment.

@pocke pocke marked this pull request as ready for review January 2, 2021 14:55
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

🙇‍♂️

@soutaro soutaro merged commit 9b7beda into ruby:master Jan 7, 2021
@pocke pocke deleted the Do_not_allow_name_that_starts_with_a_capital_letter_as_type_alias_name branch January 7, 2021 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Type Alias can start with a capital letter accidentally
2 participants