Skip to content

Commit f8720d5

Browse files
committed
Sema: Force synthesized conformance to Differentiable in EmittedMembersRequest
1 parent 31a7859 commit f8720d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/TypeCheckDecl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2451,6 +2451,7 @@ EmittedMembersRequest::evaluate(Evaluator &evaluator,
24512451
forceConformance(Context.getProtocol(KnownProtocolKind::Decodable));
24522452
forceConformance(Context.getProtocol(KnownProtocolKind::Encodable));
24532453
forceConformance(Context.getProtocol(KnownProtocolKind::Hashable));
2454+
forceConformance(Context.getProtocol(KnownProtocolKind::Differentiable));
24542455

24552456
// The projected storage wrapper ($foo) might have dynamically-dispatched
24562457
// accessors, so force them to be synthesized.

0 commit comments

Comments
 (0)