Skip to content

make typedesc arg of init procs not require generic param #674

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

metagn
Copy link
Contributor

@metagn metagn commented Feb 15, 2025

A fix to nim-lang/Nim#24688 could imply that typedesc args with types like Foo[T] should not match a type Foo, especially if the T is inferred. init procs are usually called as such i.e. init(ctx, NetName), so their parameters are given a type typedesc[NetName] rather than typedesc[NetName[T]]. Hopefully this is not too much of an incompatibility.

@metagn
Copy link
Contributor Author

metagn commented Mar 29, 2025

Tested in Nim CI in nim-lang/Nim#24690, seems to work, CI here seems to be broken for other reasons

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