mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
Update tests to check eq unbound float is resolved to dec
This commit is contained in:
parent
ed7d4f8f63
commit
3605008fce
3 changed files with 22 additions and 5 deletions
|
@ -8414,4 +8414,21 @@ mod solve_expr {
|
|||
"[Ok a]* -> a",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn resolve_eq_for_float_forces_dec() {
|
||||
infer_queries!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
n : Num *
|
||||
|
||||
main = n == 1.
|
||||
# ^
|
||||
"#
|
||||
),
|
||||
@"n : Dec"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue