You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classA {
vara = false
}
classB {
leta = A()
}
letb: B = B()
letkeyPath: WritableKeyPath<A, Bool> = \.ab.a[keyPath: \.a] = true// This compiles and works as expectedb.a[keyPath: keyPath] = true// Compilation error: Cannot assign through subscript: 'a' is a 'let' constantvara = b.aa[keyPath: keyPath] = true// Workaround
I would expect the last line to work just as the line before it.
The text was updated successfully, but these errors were encountered:
Environment
Xcode 12.4
Additional Detail from JIRA
md5: 109ad3aa3be28c66d6315bd2a6d417ea
Issue Description:
I would expect the last line to work just as the line before it.
The text was updated successfully, but these errors were encountered: