mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This fixes an oversight related to `ReferenceWritableKeyPath` overloads of the KeyPath dynamic member lookup. Original check filtered out only `WritableKeyPath` if the storage is read-only, but it should check for both `WritableKeyPath` and `ReferenceWritableKeyPath`, otherwise program is going to crash at run time. Resolves: rdar://problem/51456614
267 KiB
267 KiB