Thanks to visit codestin.com
Credit goes to github.com

Skip to content

assert is not typechecked as AssertError #7

@dmitrys99

Description

@dmitrys99

This works:

a = match x {
  | F => v
  | _ => throw AssertError
}

This doesn't work

a = match x {
  | F = v
  | _ = assert(false)
}
error: the appropriate match for 'assert' of type '(bool -> CLine.arg@12)' is not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions