[SR-11387] Misleading error message with ambiguous let statement #53788
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
type checker
Area → compiler: Semantic analysis
Environment
Apple Swift version 5.1 (swiftlang-1100.0.257.2 clang-1100.0.31.3)
Additional Detail from JIRA
md5: e924a38185ed9bc492289cae8c7588a0
Issue Description:
Consider this small snippet:
The issue here is that
.y
is not qualified withX
, so it ends up being ambiguous, but the reported error is:Which is false and quite confusing.
The text was updated successfully, but these errors were encountered: