Avatar
Avatar
Yuta Saito
@swift-5.6.3 -O 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
set