Sema: Improve MemberImportVisibility diagnostics for cross import overlays.

When `MemberImportVisibility` is enabled and a declaration from a cross import
overlay is diagnosed because it has not been imported, suggest imports of the
declaring and bystanding modules instead of the cross import overlay module
(which is an implementation detail).

Resolves rdar://149307959.
This commit is contained in:
Allan Shortlidge
2025-04-21 15:11:06 -07:00
parent e9253b749f
commit 9e67cf00cf
6 changed files with 195 additions and 33 deletions

View File

@@ -3,5 +3,7 @@
import Swift
public struct DeclaringLibraryTy {}
public struct DeclaringLibraryTy {
public init()
}
public struct ShadowTy {}