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

Fix fetch_annotation signature #2213

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Fix fetch_annotation signature #2213

merged 1 commit into from
Feb 21, 2025

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Feb 20, 2025

This code works by miracle.

We call fetch_annotation within a select but the method return void. It only works because the T::Private::Types::Void::VOID used by sorbet-runtime to replace the actual value is truthy.

@Morriar Morriar added the bugfix label Feb 20, 2025
@Morriar Morriar self-assigned this Feb 20, 2025
@Morriar Morriar requested a review from a team as a code owner February 20, 2025 23:33
@KaanOzkan
Copy link
Contributor

CI issue is known #2212. Tried a quick filtering fix but the assertion requires a Spoom::ExecResult and not a String

This code works by miracle.

We call `fetch_annotation` within a `select` but the method return `void`.
It only works because the `T::Private::Types::Void::VOID` used by
`sorbet-runtime` to replace the actual value is truthy.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar merged commit f3b7011 into main Feb 21, 2025
18 checks passed
@Morriar Morriar deleted the at-fix-annotations branch February 21, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants