Avatar
@swift-5.6.3 struct S { var _value: Int = 0 var value: Int { get { print("get") return _value } set { print("set") _value = newValue } } } var s = S() s[keyPath: \.value] = 42