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
importSwiftUIstructX {
varmyCoolField: Int
}
structU: View {
@Bindingvara: Intvarbody: someView { Spacer() }
}
structV: View {
@Statevarx: Xvarbody: someView {
U(a: $x.myField) // error: value of type 'Binding<X>' has no dynamic member 'myField' using key path from root type 'X'
}
}
We should try to improve this diagnostic, it is not obvious why it is saying "dynamic member" and "key path", even though the user has not written any dynamic member or key paths in their code. Maybe we can detect the typo and offer a fix-it with a rename?
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: e30a9df3ce3556174247cabd938e3797
Issue Description:
We should try to improve this diagnostic, it is not obvious why it is saying "dynamic member" and "key path", even though the user has not written any dynamic member or key paths in their code. Maybe we can detect the typo and offer a fix-it with a rename?
The text was updated successfully, but these errors were encountered: