mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[DiagnosticVerifier] ensure expansion ancestors are populated
Simply GSI->ancestors is not enough if the ancestors list has not been populated yet. Ensure this is done by calling getAncestors.
This commit is contained in:
@@ -233,6 +233,9 @@ MAIN_ACTOR MAIN_ACTOR __attribute__((__swift_attr__("@MainActor"))) @protocol Tr
|
||||
|
||||
SENDABLE @interface SendableClass : NSObject @end
|
||||
|
||||
// expected-expansion@+3:13{{
|
||||
// expected-note@1 5{{conformance of 'NonSendableClass' to 'Sendable' has been explicitly marked unavailable here}}
|
||||
// }}
|
||||
NONSENDABLE @interface NonSendableClass : NSObject @end // expected-note {{class 'NonSendableClass' does not conform to the 'Sendable' protocol}}
|
||||
|
||||
ASSUME_NONSENDABLE_BEGIN
|
||||
|
||||
Reference in New Issue
Block a user