Commit 810a98c
committed
Teach "find imports" to equate overlay modules with their underlying modules
The operation that finds the best import for a given declaration was
treating an overload module as being distinct from its underlying
module, even though they both have the same name and are imported
together. Teach it to treat those modules as equivalent, so we
correctly identify the right import declaration for something that
comes from the underlying module.
Fixes rdar://129401319.1 parent 6ca531c commit 810a98c
File tree
2 files changed
+17
-2
lines changed- lib/AST
- test/Concurrency
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2668 | 2668 | | |
2669 | 2669 | | |
2670 | 2670 | | |
| 2671 | + | |
2671 | 2672 | | |
2672 | 2673 | | |
2673 | | - | |
| 2674 | + | |
| 2675 | + | |
2674 | 2676 | | |
2675 | 2677 | | |
2676 | 2678 | | |
| |||
2679 | 2681 | | |
2680 | 2682 | | |
2681 | 2683 | | |
2682 | | - | |
| 2684 | + | |
| 2685 | + | |
2683 | 2686 | | |
2684 | 2687 | | |
2685 | 2688 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments