File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2748,15 +2748,22 @@ static ArrayRef<Decl *> evaluateMembersRequest(
2748
2748
TypeChecker::checkConformance (conformance->getRootNormalConformance ());
2749
2749
}
2750
2750
2751
- // If the type conforms to Encodable or Decodable, even via an extension,
2752
- // the CodingKeys enum is synthesized as a member of the type itself.
2753
- // Force it into existence.
2754
2751
if (nominal) {
2752
+ // If the type conforms to Encodable or Decodable, even via an extension,
2753
+ // the CodingKeys enum is synthesized as a member of the type itself.
2754
+ // Force it into existence.
2755
2755
(void ) evaluateOrDefault (
2756
2756
ctx.evaluator ,
2757
2757
ResolveImplicitMemberRequest{nominal,
2758
2758
ImplicitMemberAction::ResolveCodingKeys},
2759
2759
{});
2760
+
2761
+ // Synthesize $Storage type and `var $storage` associated with
2762
+ // type wrapped type.
2763
+ if (nominal->hasTypeWrapper ()) {
2764
+ (void )nominal->getTypeWrapperStorageDecl ();
2765
+ (void )nominal->getTypeWrapperProperty ();
2766
+ }
2760
2767
}
2761
2768
2762
2769
// If the decl has a @main attribute, we need to force synthesis of the
You can’t perform that action at this time.
0 commit comments