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

Implemented typealias unboxing during type resolution #1288

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

art-divin
Copy link
Collaborator

Resolves #1015

Context

During type resolution, type is looked up in "recognized types" map using TypeName.actualTypeName or TypeName.name in case first one is nil.

This resolution by type name is lacking support of looking up typealias which are already parsed and stored in ParserResultsComposed.

This PR adds a simple lookup as a last resort before the type is looked up in the type hashmap.

@art-divin art-divin added this to the 2.1.8 milestone Mar 4, 2024
@art-divin art-divin self-assigned this Mar 4, 2024
@art-divin art-divin merged commit bc7e843 into master Mar 4, 2024
2 checks passed
@art-divin art-divin deleted the resolve-typealiases branch March 4, 2024 20:24
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.

Type.based not working on type if typealias is used
1 participant