fn(env$0) =>
fn(expr$1, expected_type$2) =>
match @core.type-declaration-to-type-ast(expr: $2) {
#none(_) =>
#error(#invalid_type_declaration({message: "the expected type is not a type expression"})),
#some(expected_type$3) =>
@core.type-check-against(expr: $1, env: $0, expected_type: $3)
}