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

`auto` return type in macros causes internal error #10904

jxy opened this issue Mar 25, 2019 · 1 comment


None yet
2 participants
Copy link

commented Mar 25, 2019

An auto return type specified in a macro definition causes an internal error of the compiler. The commit bf592c4 introduced the bug.


import macros
macro m:auto = newStmtList()

Current Output

t.nim(2, 16) Error: internal error: assignment requested for type: untyped
No stack traceback available
To create a stacktrace, rerun compilation with ./koch temp c <file>

This comment has been minimized.

Copy link

commented Mar 26, 2019

I noticed because it affects (it can be fixed with minor changes, but it is probably worth fixing in the compiler instead)

@Araq Araq closed this in 3cf846e Mar 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.