Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New analyzer: fix issues with order-dependent results (#7158)
When we add a placeholder, we should do it through `mark_incomplete`, since the name needs to added to the set of missing names. Otherwise a later definition can take precedence over an earlier definition, if the first definition initially creates a placeholder. Fixes #7157 and probably another issue related to type aliases, which was exposed by the fix.
- Loading branch information
Showing
3 changed files
with
114 additions
and
24 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