mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Make sure to constrain dbgs with existential correctly
This commit is contained in:
parent
2dc19207a3
commit
bd06714fd2
2 changed files with 20 additions and 1 deletions
|
@ -8529,4 +8529,23 @@ mod solve_expr {
|
|||
print_can_decls: true
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn constrain_dbg_flex_var() {
|
||||
infer_queries!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
polyDbg = \x ->
|
||||
#^^^^^^^{-1}
|
||||
dbg x
|
||||
x
|
||||
|
||||
main = polyDbg ""
|
||||
"#
|
||||
),
|
||||
@"polyDbg : a -[[polyDbg(1)]]-> a"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue