mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Only assert that rigids are introduced at given rank behind flag
Closes #2489
This commit is contained in:
parent
5e47e4767e
commit
fe28d1554b
2 changed files with 24 additions and 7 deletions
|
@ -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",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue