Fix compilation of addChecked for Dec

This commit is contained in:
Ayaz Hafiz 2023-06-06 17:34:35 -05:00
parent 0c632b1731
commit b3966a588a
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 50 additions and 9 deletions

View file

@ -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
);
}