8000 RBS: Handle RBS annotations inside `case` .. `in` patterns by Morriar · Pull Request #8901 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RBS: Handle RBS annotations inside case .. in patterns #8901

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

Merged
merged 2 commits into from
May 21, 2025

Conversation

Morriar
Copy link
Collaborator
@Morriar Morriar commented May 21, 2025

Motivation

So this is properly understood:

case ARGV.first
in String
  ARGV.first #: as !nil
else
  ARGV #: as untyped
end

Also extracted consumeCommentsInsideNode to eliminate some repetition.

Test plan

See included automated tests.

Morriar added 2 commits May 21, 2025 18:33
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar requested a review from a team as a code owner May 21, 2025 22:41
@Morriar Morriar requested review from elliottt and removed request for a team May 21, 2025 22:41
@Morriar Morriar self-assigned this May 21, 2025
@elliottt elliottt merged commit 6a63619 into sorbet:master May 21, 2025
14 checks passed
@Morriar Morriar deleted the at-rbs-fix-case-pattern branch May 22, 2025 13:56
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.

2 participants
0