File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1237,7 +1237,8 @@ static const Decl *ancestorMemberLevelDeclForAvailabilityFixit(const Decl *D) {
1237
1237
while (D) {
1238
1238
D = relatedDeclForAvailabilityFixit (D);
1239
1239
1240
- if (D->getDeclContext ()->isTypeContext () &&
1240
+ if (!D->isImplicit () &&
1241
+ D->getDeclContext ()->isTypeContext () &&
1241
1242
DeclAttribute::canAttributeAppearOnDecl (DeclAttrKind::DAK_Available,
1242
1243
D)) {
1243
1244
break ;
Original file line number Diff line number Diff line change @@ -236,8 +236,7 @@ struct AssocConformanceDeprecated : Rider {
236
236
struct AssocConformanceAvailable1 : Rider {
237
237
// expected-error@-1 {{conformance of 'HasAvailableConformance1' to 'Horse' is only available in macOS 100 or newer}}
238
238
// expected-note@-2 {{in associated type 'Self.H' (inferred as 'HasAvailableConformance1')}}
239
- // FIXME expected-note@-3 {{add @available attribute to enclosing initializer}}
240
- // expected-note@-4 {{add @available attribute to enclosing struct}}
239
+ // expected-note@-3 {{add @available attribute to enclosing struct}}
241
240
typealias H = HasAvailableConformance1
242
241
}
243
242
You can’t perform that action at this time.
0 commit comments