Skip to content

Commit f9ef2db

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 fc8cc33 commit f9ef2db

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
@@ -2255,7 +2255,8 @@ class DeclAvailabilityChecker : public DeclVisitor<DeclAvailabilityChecker> {
22552255
// declaration slipped in when the compiler wasn't able to diagnose it and
22562256
// can't be changed.
22572257
if (nominal->getName().is("AnyColorBox") &&
2258-
nominal->getModuleContext()->getName().is("SwiftUI"))
2258+
(nominal->getModuleContext()->getName().is("SwiftUI") ||
2259+
nominal->getModuleContext()->getName().is("SwiftUICore")))
22592260
flags |= DeclAvailabilityFlag::
22602261
AllowPotentiallyUnavailableAtOrBelowDeploymentTarget;
22612262

0 commit comments

Comments
 (0)