[SR-1466] Collection.Indices doesn't expose Comparable elements #44075
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Apple Swift version 3.0-dev (LLVM dffa09ffd8, Clang 9f0d189820, Swift 1c720b8)
(on OS X)
Additional Detail from JIRA
md5: f99df57548a484701b7b53e48286a839
Issue Description:
Comparable is a requirement of Collection.Index, yet the Sequence returned by Collection.Indices hides that its element type conforms to Comparable.
I can restrict the generic parameter thusly:
It seems this should always be true.
The text was updated successfully, but these errors were encountered: