Skip to content

Commit 951ed8e

Browse files
authored
Merge pull request #75456 from tshortli/inheritance-availability-exception-6.0
[6.0] Sema: Update inheritance availability checking exception
2 parents 11cba20 + d217cbb commit 951ed8e

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)