mirror of
https://github.com/apple/swift.git
synced 2026-10-28 21:15:56 +01:00
When a readonly weak/assign property is redeclared readwrite, the synthesized setter was dropped: applyPropertyOwnership had rewritten the property's type into a reference-storage wrapper (@sil_weak/@sil_unmanaged) while the setter parameter stays the bare referent, so the type-equality guard falsely failed. Compare through getReferenceStorageReferent() so both sides are referent types.