[SR-7295] Misleading error message #49843
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 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9
swift-DEVELOPMENT-SNAPSHOT-2018-03-17-a.xctoolchain
swift-4.1-DEVELOPMENT-SNAPSHOT-2018-02-21-a.xctoolchain
Additional Detail from JIRA
md5: e3b89e1a826c748fefa3c35be1982431
Issue Description:
The code above results in a confusing error message:
Removing the second doSomething changes the error to the more clear:
It would be clearer if the second error message is the one produced in both cases.
There's also the confusing part that one _ or () can no longer be used to ignore a tuple parameter. The closure must be changed to (, _)
The text was updated successfully, but these errors were encountered: