Add rank-generalization test

This commit is contained in:
Ayaz Hafiz 2023-01-10 12:46:34 -06:00
parent cb9f776781
commit dc30dbc8a4
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -8656,4 +8656,22 @@ mod solve_expr {
"###
);
}
#[test]
fn rank_no_overgeneralization() {
infer_queries!(
indoc!(
r#"
app "test" provides [main] to "./platform"
main =
#^^^^{-1}
\x ->
y = \z -> x z
y
"#
),
@"main : (a -[[]]-> b) -[[main(0)]]-> (a -[[y(2) (a -[[]]-> b)]]-> b)"
);
}
}