forked from chapel-lang/chapel
-
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.
Dyno: Fix erroneous ambiguity error for nested functions (chapel-lang…
…#26058) Logic in ``resolveIdentifier`` was looking for ambiguity errors between parenless methods and locally-declared variables, but was instead issuing errors for paren-ful methods and nested functions as well. This commit changes resolveIdentifier to only run these errors if a parenless method is found and if there are redeclarations other than the paren-less method. ``test15`` in ``testMethodCalls`` is temporarily retired as it is not actually considered to be an ambiguity in production. This instead appears to be a bug in which we incorrectly prefer the method over the nested function. [reviewed-by @riftEmber]
- Loading branch information
Showing
4 changed files
with
83 additions
and
40 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