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

semcheck substituted return type of generic calls #334

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Jan 6, 2025

requestRoutineInstance only substitutes the return type and doesn't semcheck it, only giving the cursor of the return type from the delayed instantiated proc declaration. So we semcheck the given return type in resolveOverloads, though we could also do this inside requestRoutineInstance and put the semchecked type in the delayed proc too.

@Araq Araq merged commit 7036636 into nim-lang:master Jan 6, 2025
3 checks passed
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.

2 participants