Support underscores in assignment patterns

This commit is contained in:
Ayaz Hafiz 2022-07-22 16:06:32 -04:00
parent 569e90d682
commit beccc92c87
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 16 additions and 25 deletions

View file

@ -7438,6 +7438,20 @@ mod solve_expr {
"#
),
@r#"x : { a : [A { b : [B]* }*]* }*"#
)
);
}
#[test]
fn infer_type_with_underscore_destructure_assignment() {
infer_eq_without_problem(
indoc!(
r#"
Pair x _ = Pair 0 1
x
"#
),
"Num *",
);
}
}