Only assert that rigids are introduced at given rank behind flag

Closes #2489
This commit is contained in:
Ayaz Hafiz 2022-04-29 16:26:10 -04:00
parent 5e47e4767e
commit fe28d1554b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 24 additions and 7 deletions

View file

@ -6215,4 +6215,23 @@ mod solve_expr {
"a -> Task a *",
);
}
#[test]
fn export_rigid_to_lower_rank() {
infer_eq_without_problem(
indoc!(
r#"
app "test" provides [ foo ] to "./platform"
F a : { foo : a }
foo = \arg ->
x : F b
x = arg
x.foo
"#
),
"F b -> b",
)
}
}