Skip to content

Commit 608f5fc

Browse files
authored
Merge pull request #75455 from tshortli/inheritance-availability-exception
Sema: Update inheritance availability checking exception
2 parents 47acc09 + f9ef2db commit 608f5fc

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)