mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Fix compilation of addChecked for Dec
This commit is contained in:
parent
0c632b1731
commit
b3966a588a
2 changed files with 50 additions and 9 deletions
|
@ -3924,3 +3924,19 @@ fn bool_in_switch() {
|
|||
bool
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-dev", feature = "gen-wasm"))]
|
||||
fn add_checked_frac_infer() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
main = Num.addChecked 2.0dec 4.0dec == Ok 6.0dec
|
||||
"#
|
||||
),
|
||||
true,
|
||||
bool
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue