We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11cba20 + d217cbb commit 951ed8eCopy full SHA for 951ed8e
lib/Sema/TypeCheckAccess.cpp
@@ -2254,7 +2254,8 @@ class DeclAvailabilityChecker : public DeclVisitor<DeclAvailabilityChecker> {
2254
// declaration slipped in when the compiler wasn't able to diagnose it and
2255
// can't be changed.
2256
if (nominal->getName().is("AnyColorBox") &&
2257
- nominal->getModuleContext()->getName().is("SwiftUI"))
+ (nominal->getModuleContext()->getName().is("SwiftUI") ||
2258
+ nominal->getModuleContext()->getName().is("SwiftUICore")))
2259
flags |= DeclAvailabilityFlag::
2260
AllowPotentiallyUnavailableAtOrBelowDeploymentTarget;
2261
0 commit comments