-
-
Notifications
You must be signed in to change notification settings - Fork 818
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix[ux]: fix false positive for overflow in type checker (#4385)
this commit fixes a false positive for integer overflow in the typechecker involving nested pow operations by filtering `OverflowException` in `_validate_op`. the previous code assumed that `validate_numeric_op` could throw anything besides `InvalidOperation`, but for the `Pow` binop, it can throw `OverflowException`. --------- Co-authored-by: Charles Cooper <[email protected]>
- Loading branch information
1 parent
c8691ac
commit 12ab491
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters