Sema: Allow unavailable decls to witness requirements in more conformances.

In https://github.com/apple/swift/pull/63898 conformance requirement
typechecking was relaxed to allow unavailable decls to witness conformance
requirements as long as the conforming nominal was also unavailable. However,
only nominals that were directly marked unavailable were accepted. Nominals
that are declared in unavailable scopes should also be allowed to have
unavailable wintesses.

Resolves rdar://107052715
This commit is contained in:
Allan Shortlidge
2023-03-22 12:37:50 -07:00
parent fd0f148a07
commit 5da4e2df40
3 changed files with 9 additions and 4 deletions

View File

@@ -7,9 +7,6 @@
// REQUIRES: VENDOR=apple
// FIXME: rdar://107052715 temporarily disabled the test; fails on ios simulator
// REQUIRES: rdar107052715
// CHECK: #if compiler(>=5.3) && $Actors
// CHECK-NEXT: public actor ActorWithImplicitAvailability {
public actor ActorWithImplicitAvailability {