Skip to content
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

Generics for macros are broken #12868

Open
dawkot opened this issue Dec 10, 2019 · 1 comment
Open

Generics for macros are broken #12868

dawkot opened this issue Dec 10, 2019 · 1 comment

Comments

@dawkot
Copy link

dawkot commented Dec 10, 2019

Example

macro foo[T] = echo T is int

foo[int]()

Current Output

false

Expected Output

true

Additional Information

$ nim -v
Nim Compiler Version 1.0.4
@krux02
Copy link
Contributor

krux02 commented Dec 10, 2019

As I don't think there is any need for generics in macros, I think the compiler should at least complain that generic macros are not supported with a nice error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants