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 47acc09 + f9ef2db commit 608f5fcCopy full SHA for 608f5fc
lib/Sema/TypeCheckAccess.cpp
@@ -2255,7 +2255,8 @@ class DeclAvailabilityChecker : public DeclVisitor<DeclAvailabilityChecker> {
2255
// declaration slipped in when the compiler wasn't able to diagnose it and
2256
// can't be changed.
2257
if (nominal->getName().is("AnyColorBox") &&
2258
- nominal->getModuleContext()->getName().is("SwiftUI"))
+ (nominal->getModuleContext()->getName().is("SwiftUI") ||
2259
+ nominal->getModuleContext()->getName().is("SwiftUICore")))
2260
flags |= DeclAvailabilityFlag::
2261
AllowPotentiallyUnavailableAtOrBelowDeploymentTarget;
2262
0 commit comments