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

nimony: subscripts with invocations as special case #202

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Dec 13, 2024

As outlined here, would also have a special case for generic routines but there is nothing to call for them yet. Anything that is not an invocation is treated as an overloaded call to [], which needs to have magic overloads.

Note for the future: nim-lang/Nim#9997, standalone instantiations of symchoices shouldn't generate a symchoice of the instantiated symbols as Nim currently does, instead it should probably be treated as an "instantiation choice" either remaining as a bracket over a symchoice or its own node kind that can later be type-fit to a specific instantiation

src/nimony/sem.nim Outdated Show resolved Hide resolved
@Araq Araq merged commit b3ae012 into nim-lang:master Dec 13, 2024
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