Skip to content

Crash in compiler when using system.any by accident. #14255

@treeform

Description

@treeform

Reproduce the error with:

var a = newSeq[bool](1000) if any(a): echo "ok?"

Get compiler crash:

Error: internal error: getTypeDescAux(tyFromExpr) No stack traceback available To create a stacktrace, rerun compilation with ./koch temp c <file> 

I think i am using system.any which is a "meta type" and not sequtils.any. Even though I am using sequtils.any wrong. I expect to get an error some thing like: "system.any can't be created from an seq". Or even some thing less fancy like "invalid type" at line 2.

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