[SR-12745] Improve diagnostic for keypath used without 'keyPath:' label #55190
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Additional Detail from JIRA
md5: f275a7e564eae783d7eb298a952cad8d
Issue Description:
If you have code like
The master compiler seems to be producing a suboptimal error. (Compiler explorer: https://godbolt.org/z/JPSdNZ) (also reproduced at ad00350 on master)
It would be nice to special case this error and provide a fix-it for adding a `keyPath:` label.
The text was updated successfully, but these errors were encountered: