Bad diagnostic for .init
+ argument label mismatch + overloads
#81778
Labels
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
expressions
Feature: expressions
overload resolution
Area → compiler → type checker: Overload resolution (ranking)
swift 6.2
type checker
Area → compiler: Semantic analysis
Description
No response
Reproduction
Expected behavior
This combination of issues is causing us to prefer the more abstract
append(contentsOf:)
solution. I would expect it to carry more reasons to be disfavored due to the additional argument label mismatch and absence of a viable initializer.Environment
Swift version 6.2-dev (LLVM c23e68dd0fa9228, Swift 278248e)
Additional information
No response
The text was updated successfully, but these errors were encountered: