Skip to content

Improve GenericTypeResolver API#466

Open
ggleyzer wants to merge 11 commits into
masterfrom
gene/generics
Open

Improve GenericTypeResolver API#466
ggleyzer wants to merge 11 commits into
masterfrom
gene/generics

Conversation

@ggleyzer
Copy link
Copy Markdown
Collaborator

An important part of the compiler type validation and runtime is resolution of generic/formal types. The GenericTypeResolver used to have two paths: one for resolving the FormalConstant and the other for resolving the generic type names, while the first one had a default implementation immediately turning the formal constant into its name. The problem with this approach was that some times unrelated formal constants of the same name would resolve the same way.

This change eliminates the name-based resolution in favor of the FormalConstant-based one.

@ggleyzer ggleyzer requested a review from cpurdy May 22, 2026 19:20
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.

1 participant