Skip to content

Commit d217cbb

Browse files
committed
Sema: Update inheritance availability checking exception.
The changes from #62327 need to be updated for compatibility with the SDKs accompanying Xcode 16. Resolves rdar://132438383 and #75175.
1 parent 2e8b497 commit d217cbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/TypeCheckAccess.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,8 @@ class DeclAvailabilityChecker : public DeclVisitor<DeclAvailabilityChecker> {
22542254
// declaration slipped in when the compiler wasn't able to diagnose it and
22552255
// can't be changed.
22562256
if (nominal->getName().is("AnyColorBox") &&
2257-
nominal->getModuleContext()->getName().is("SwiftUI"))
2257+
(nominal->getModuleContext()->getName().is("SwiftUI") ||
2258+
nominal->getModuleContext()->getName().is("SwiftUICore")))
22582259
flags |= DeclAvailabilityFlag::
22592260
AllowPotentiallyUnavailableAtOrBelowDeploymentTarget;
22602261

0 commit comments

Comments
 (0)