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.
1 parent fc8cc33 commit f9ef2dbCopy full SHA for f9ef2db
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