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

Compile T.type_alias #291

Merged
merged 1 commit into from May 12, 2021
Merged

Conversation

jeffcarbs
Copy link
Contributor

@jeffcarbs jeffcarbs commented Apr 20, 2021

Motivation

We're have a T.type_alias defined in an internal gem that we want to use inside a consuming application. Seems like it ought to come over in the RBI since the constant is available at runtime.

Implementation

Currently tapioca ignores T.type_alias since it starts with T::Private::Types::. This PR updates the spot where that bailout happens and adds a special case to handle it.

Tests

Extended one test and added another.

Copy link
Member

@paracycle paracycle left a comment

Choose a reason for hiding this comment

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

Thanks for rebasing this. I've tested this change on our monolith and it works great.

@paracycle paracycle merged commit a075b6c into Shopify:master May 12, 2021
@shopify-shipit shopify-shipit bot temporarily deployed to production May 19, 2021 17:37 Inactive
@jeffcarbs jeffcarbs deleted the compile-type-alias branch December 20, 2021 20:13
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