[SR-5295] "type of expression is ambiguous" when using key-path in generic context #47870
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/master
Additional Detail from JIRA
md5: c814eec522b03be8a333d4c3202012f7
Issue Description:
When I try to define a generic sorting algorithm on
MutableCollection
I get an unexpected error:Oddly, a similar function compiles without error as a
Sequence
extension:The text was updated successfully, but these errors were encountered: