[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:
Henrik G. Olsson
2025-11-14 20:02:20 -08:00
parent 62ba94ef12
commit 69f6f477cd
4 changed files with 12 additions and 3 deletions

View File

@@ -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