Skip to content

Internal error caused by genericHead and stripGenericParams #10143

@GULPF

Description

@GULPF

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions