Skip to content

"i + ret i" hits assertion "Cannot create binary operator with two operands of differing type!" #770

Closed
@jruderman

Description

@jruderman
fn f(i: int) -> int { i + ret i; }
fn main() {
    f(2);
}

Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary operator with two operands of differing type!"), function Create, file Instructions.cpp, line 1580.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions