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

Internal error caused by genericHead and stripGenericParams #10143

Open
GULPF opened this issue Dec 31, 2018 · 0 comments
Open

Internal error caused by genericHead and stripGenericParams #10143

GULPF opened this issue Dec 31, 2018 · 0 comments

Comments

@GULPF
Copy link
Member

GULPF commented Dec 31, 2018

Example

import typetraits

echo seq[int]
echo seq[int].genericHead
echo seq[int].stripGenericParams

Current Output

internal error: expr(nkType); unknown node kind for both the call to genericHead and the call to stripGenericParams.

Expected Output

seq[int]
seq
seq
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