mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user