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 2e8b497 commit d217cbbCopy full SHA for d217cbb
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