-
-
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
Template calls with no parentheses have type None if proc has the same name #13209
Comments
|
No |
There is no rule in the spec that says "for a choice of symbols, pick the template because templates can be called without |
I was just thinking in a void context with no discard, the template wins. But I can see how annoying that would be to implement. The error message took a while for me to decipher though. This isn't as confusing, but demonstrates the lack of information: proc foo(a: int) = echo a
proc foo(a: string) = echo a
let y = foo
Do I open a seperate issue for this? |
Yes, please. |
#6359 reported it already |
Even when the proc has parameters.
Example
Current Output
Expected Output
The
typing
statement is of node kind OpenSymChoiceThe text was updated successfully, but these errors were encountered: