-
-
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
Regression of type inference when using templates and a proc with the same name as one of them #20807
Comments
It is the same issue as #20450 |
Overloading between |
I came across this in #20091 but I thought it was an unrelated bug with calling templates with MCS instead. Seq type inference currently replaces the Lines 2408 to 2411 in a15872b
|
What happened?
The following code doesn't compile
Note that the
test
proc must have the same name as thetest
template and at least one parameter in order to reproduce the issue. It compiles If we changes = @[]
tos = newSeq[string]()
.Nim Version
Nim Compiler Version 1.7.3 [MacOSX: amd64]
Compiled at 2022-11-10
Copyright (c) 2006-2022 by Andreas Rumpf
git hash: 82e99f2
active boot switches: -d:release
Current Standard Output Logs
Expected Standard Output Logs
No response
Possible Solution
No response
Additional Information
It works fine with Nim 1.6.8
The text was updated successfully, but these errors were encountered: