[SR-10203] Subscripts setter on key-path calls getter of the destination property #52603
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
key paths
Feature: key paths (both native and Objective-C)
standard library
Area: Standard library umbrella
swift 5.9
unexpected behavior
Bug: Unexpected behavior or incorrect output
Environment
Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: 13afefaa36d850c75676dbe3a222ba64
Issue Description:
This example unexpectedly crashes:
Discussion on the forums: https://forums.swift.org/t/keypaths-subscript-setter-accesses-the-properties-getter/22212
The text was updated successfully, but these errors were encountered: