forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly report default argument inference errors (ponylang#2504)
* Properly report default argument inference errors errors for default arguments could leave the AST in an illegal state which was causing assertions when evaluating default args during TK_CALL evaluation in the expr pass. This PR makes those errors stop compilation immediately, so they are properly reported. * use ast_passes_subtree instead of expr_seq for default arguments as this does not result in double error messages when evaluating default args for function definitions and function calls
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 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