[SR-15179] Duplicate argument mismatch diagnostic for tuple implosion failure #57502
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 version 5.6-dev (LLVM ca88d53176e346a, Swift d6d814c7f391f42)
Target: x86_64-apple-macosx11.0
Additional Detail from JIRA
md5: dce889110b5a8aedc0926684f1f93583
Issue Description:
For the following:
We don't permit the implosion of the parameters of
fn
into a tuple, and end up with two fixes, one for the argument mismatch, and one for a contextual missing argument. This leads to a duplicate diagnostic:The same also happens for variadic and isolated parameters, e.g:
Both calls to
tuplify
produce duplicate diagnosticsThe text was updated successfully, but these errors were encountered: