mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
make decimal math ops correctly report overflow
This commit is contained in:
parent
2b5ec3dcf1
commit
23ea151d5f
8 changed files with 155 additions and 165 deletions
|
@ -752,7 +752,7 @@ mod gen_num {
|
|||
z : Dec
|
||||
z = 3
|
||||
|
||||
x - y - z
|
||||
(x - y) - z
|
||||
"#
|
||||
),
|
||||
RocDec::from_str_to_i128_unsafe(&"-3.9"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue