[SR-3397] Various Index types should be nested inside their Collection types #45985
Labels
affects ABI
Flag: Affects ABI
good first issue
Good for newcomers
improvement
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 3c83d1b6fbe2723eae39af2904d67ffe
Issue Description:
A number of collections declare a custom index type. Due to historical compiler constraints on nested generics, these are declared outside their collection types. This restriction is now lifted and they should be moved to be nested types.
For example,
DictionaryIndex
should beDictionary.Index
, andClosedRangeIndex
should beClosedRange.Index
.For Swift 3 compatibility reasons, deprecated typealiases should be created. Currently, these will not be extensible if anyone is doing this (unlikely but possible), so compiler work to allow this would be required for true backwards compatibility.
The text was updated successfully, but these errors were encountered: