[SR-13776] Undiagnosed generic argument mismatch for equatable requirement #56173
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
generic constraints
Feature → generics: generic constraints
generics
Feature: generic declarations and types
type checker
Area → compiler: Semantic analysis
Environment
Swift 5.3 XCode 12.2 Beta 3 (12B5035g)
Additional Detail from JIRA
md5: db9280c22e3407f5d282c9e01341fd33
Issue Description:
The problem here is that both collections elements are not constrained to be equal(C1.Element == C2.Element) so infer the `E` generic type of `f` from the arguments is ambiguous.
The text was updated successfully, but these errors were encountered: