-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update logic for raises in handle We now check in the generate stage whether a raise is covered correctly. Looks like we might not even need it in the unification stage. * Add expr type to covered expressions in handle - Fix generate stage to insert return (and assign) in proper locations within try except. * Check whether parents of exception covered Which is also valid. Remove `Raises` `Expect`, which gets rid of a lot of unnecessary logic in the unification stage. * Cleanup * Restore logic for same value of two types * Move shared logic match, handle to constrain_cases * Dynamically add raises to Environment Useful if exceptions in Mamba are not dealt with locally, but say in the function signature, which is allowed. * Add return in nested_exception_check.py The fact that the test still passed means that something is going wrong here under the hood. An issue has been made: #386
- Loading branch information
1 parent
1b1ccce
commit dfe3b63
Showing
25 changed files
with
241 additions
and
160 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
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
Oops, something went wrong.