Skip to content

Commit 052e79b

Browse files
committed
Sema: Don't ask for stored properties of resilient types in checkInvertibleConformanceCommon()
1 parent 72cc0fe commit 052e79b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/TypeCheckInvertible.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ static void checkInvertibleConformanceCommon(DeclContext *dc,
154154
ctx.Diags.diagnose(conformanceLoc,
155155
diag::invertible_conformance_other_source_file,
156156
getInvertibleProtocolKindName(ip), nominalDecl);
157+
158+
// Skip further work to avoid asking for stored properties of
159+
// resilient types.
160+
return;
157161
}
158162
}
159163

0 commit comments

Comments
 (0)