fn(arms$0, variants$1, target_type$950, env$2, expected_type$3, index$4) =>
match @core.list-get(list: $0, index: $4) {
#none(_) =>
@core.check-union-exhaustiveness(
variants: $1,
patterns: @core.match-arm-patterns(arms: $0, index: 0, acc: []),
env: $2,
index: 0,
return_type: $3
),
#some(item$1014) =>
match match @core.match-arm-env(arm: $1014, variants: $1, target_type: $950, env: $2) {
#ok(arm_env$10) =>
@core.type-check-against(expr: $1014.body, env: $10, expected_type: $3),
#error(err$11) =>
#error($11)
} {
#ok(body_type$12) =>
@core.type-check-match-arms-against(
arms: $0,
variants: $1,
target_type: $950,
env: $2,
expected_type: $3,
index: @core.plus(left: $4, right: 1)
),
#error(err$13) =>
#error($13)
}
}