-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fixes #8301; disallow typedesc being assigned to result #20664
Conversation
Why specialize for void? There is no mechanism that deals with this for any typedesc. proc foo: auto = int
foo() # expr: var not init result_436207618 |
Thank you! I'm gonna to do it for |
Whats useful for using |
The Nim manual only mentions |
It would be nice to have compile time procs return |
Nothing is special about assignment here either: proc foo(x: auto) = discard
foo(void)
This is already not allowed but then why is it for assignments? |
This pull request is stale because it has been open for 1 year with no activity. Contribute more commits on the pull request and rebase it on the latest devel, or it will be closed in 30 days. Thank you for your contributions. |
This pull request has been marked as stale and closed due to inactivity after 395 days. |
fixes #8301
tyVoid
matchestyAnthing
; the same thing goes forfitNode
;