Skip to content

"Calling a function with a bad signature!" with uncalled type-parameteric function #775

Closed
@jruderman

Description

@jruderman
fn empty[T]() -> vec[T] { ret []; }
fn main() { empty[int]; }

Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"), function init, file Instructions.cpp, line 191.

Which is strange, because "calling a function" is exactly what this testcase doesn't do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions