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

Add types to classes in state directory #458

Merged
merged 4 commits into from
Jul 20, 2024

Conversation

Little-Rubyist
Copy link
Contributor

No description provided.

@@ -8,7 +8,7 @@ class State
class ResolvedConflict < Struct.new(:symbol, :reduce, :which, :same_prec, keyword_init: true)
def report_message
s = symbol.display_name
r = reduce.rule.precedence_sym.display_name
r = reduce.rule.precedence_sym&.display_name
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seemed to be nullable. is it acceptable to have nil in the r variable?
Currently allows nil to pass type checking.

Copy link
Collaborator

@ydah ydah left a comment

Choose a reason for hiding this comment

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

Thank you

@ydah ydah merged commit 23d308c into ruby:master Jul 20, 2024
16 checks passed
@Little-Rubyist Little-Rubyist deleted the add_types_to_state branch July 26, 2024 02:52
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.

None yet

2 participants