[SR-4446] Wrong implementation chosen when invoking generic protocol methods with unlabeled arguments #47023
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
macOS 10.12.3 (16D32)
Xcode 8.3 beta 4 (8W143q)
Additional Detail from JIRA
md5: 8467c3c04bb021546c57495b6eded8ff
Issue Description:
Given a protocol with an associated type, if the protocol declares a method with an unlabeled argument of the associated type and is extended with a default implementation, the default implementation will be invoked even when a conforming type provides its own implementation.
See the attached playground for additional notes and an example.
The text was updated successfully, but these errors were encountered: