[SR-10000] Incorrect diagnostic invoking inline closure with missing parens #52403
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
Swift 4.2 in Xcode 10.1 as well as the Swift 5 version in Xcode 10.2 Beta 3.
Additional Detail from JIRA
md5: 2e4adb2aaa8d36c75363a6abeaf24f27
Issue Description:
The following code produces a diagnostic with a bogus message and in the wrong line:
The error is in the following line, because it's missing parenthesis, it should be:
I believe it must think that the following line is a closure that's being passed to the
f
function, but even if that's the case, the argument "param" is not an "extra argument", unless I'm misunderstanding it.The text was updated successfully, but these errors were encountered: