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

Disabled type resolving for local method generic parameters #1327

Merged
merged 1 commit into from
May 1, 2024

Conversation

art-divin
Copy link
Collaborator

@art-divin art-divin commented May 1, 2024

Resolves #1326

Context

Currently, Sourcery does not serialize GenericParameters for methods. GenericRequirements are parsed though; however, they do not contain sufficient metadata to disable type lookup if there are conflicting types from enclosing scope (i.e. class generics, typealiases etc.)

Details

This PR exits early when there is an ongoing type resolution while resolving types for method arguments.
In case if there is a local method-specific generic parameter, type resolution is stopped.

@art-divin art-divin added this to the 2.2.4 milestone May 1, 2024
@art-divin art-divin self-assigned this May 1, 2024
@art-divin art-divin merged commit 08567d9 into master May 1, 2024
2 checks passed
@art-divin art-divin deleted the fix-ignore-scoped-generic-parameters-for-methods branch May 1, 2024 15:51
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.

Typealias resolution replaces unrelated generic types
1 participant