-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dyno ambiguity issue between fields and secondary methods with wr…
…ong receiver (#25231) Fix a dyno resolver bug, in which secondary methods on a different receiver are considered candidates for resolving identifiers in methods, causing ambiguity. The fix is implemented by attempting method resolution with an implicit `this.` before the identifier if we've found apparent ambiguity, since method resolution already knows how to filter based on receiver type. Also adds testing for the fixed cases. Resolves Cray/chapel-private#6284. Note to reviewer: The commit history on this one is a bit of a mess as I went a few directions, so it's better to review the changes as a whole. [reviewed by @mppf , thanks!] Future work: - #25376 Testing: - [x] dyno tests - [x] reproducer from original issue now resolves properly
- Loading branch information
Showing
2 changed files
with
188 additions
and
37 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