Commit Graph

4 Commits

Author SHA1 Message Date
Holly Borla
b774acd1f0 [Property Wrappers] If a property wrapper accessor is synthesized using the
enclosing-self subscript, infer availability from accessors on the subscript
declaration.
2021-04-15 12:44:16 -07:00
Mishal Shah
22f61df98b Use %target-cpu in the tests to support running on Apple Silicon hardware 2021-04-08 23:26:18 -07:00
Holly Borla
e1de140dbb [Property Wrappers] Intersect the availability of the wrapped/projected value
setter with the availability of the enclosing scope when inferring the
availability of the synthesized setters for an applied property wrapper.
2021-04-01 18:11:05 -07:00
Joe Groff
85b549a51b Sema: Synthesized setters get the availability of the decl they're synthesized from.
If a modify/mutableAddress coroutine is defined with availability, or a property wrapper adds a setter with availability,
then the implicit synthesized setter should be as available as those declarations it's synthesized from. rdar://problem/65152582
2020-07-10 10:33:59 -07:00