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

iterate overloads when resolving symchoice based on type, fix untyped #24252

Open
wants to merge 4 commits into
base: devel
Choose a base branch
from

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Oct 7, 2024

fixes #20240

When resolving a symchoice based on type matches, paramTypesMatch only considers the symbols already in the symchoice. However for nkOpenSymChoice, newly introduced overloads must also be considered. To fix this, OverloadIter is used, same as in calls.

Also fixes a mistake from #23033 where the compiler attempts to resolve untyped symchoice arguments based on scope, when it should be just for typed.

@metagn metagn changed the title iterate overloads when resolving symchoice based on type iterate overloads when resolving symchoice based on type, fix untyped Oct 7, 2024
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.

mixin'd pre-existing symbols only work as expected in calls
1 participant