[SR-5688] Unhelpful diagnostic when missing a ? in a KeyPath expression #48258
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
Attachment: Download
Environment
Xcode 9.0.0 ß5
Apple Swift version 4.0 (swiftlang-900.0.59 clang-900.0.34.2)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: c71e85e71edfd0319c05a4dfe3d8443e
Issue Description:
This code:
gives this diagnostic:
That's really unhelpful. The issue here is that a
?
is missing. It should be\A.b?.c
.The text was updated successfully, but these errors were encountered: