-
-
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
Inconsistent compilation error between generic procs: proc x[T]() vs. proc y(T: type) #15760
Labels
Comments
This seems like a such a simple bug, are there similar other issues? The workaround here is to use |
metagn
added a commit
to metagn/Nim
that referenced
this issue
Aug 29, 2023
metagn
added a commit
to metagn/Nim
that referenced
this issue
Aug 29, 2023
Araq
pushed a commit
that referenced
this issue
Aug 30, 2023
* handle typedesc params in VM fixes #15760 * add test * fix getType(typedesc) test
narimiran
pushed a commit
that referenced
this issue
Sep 11, 2023
narimiran
pushed a commit
that referenced
this issue
Sep 18, 2023
narimiran
pushed a commit
that referenced
this issue
Sep 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example
Current Output
Expected Output
I consider both
x
andy
as generic proc, but the compiler seems evaluatey
too eagerly / too early.The text was updated successfully, but these errors were encountered: