Skip to content

_|_ (bottom) in an expression alt or if doesn't typecheck #727

Closed
@marijnh

Description

@marijnh
fn foo() -> int {
    ret alt true {
      true { 1 }
      false { fail; }
    };
}

... produces mismatched types: expected int but found () (types differ)

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