Skip to content

Commit 7ba5617

Browse files
committed
Update api-digester/source-stability.swift test
The swift-api-digester doesn't know about generic typealiases (yet?). So it picks up some changes that are not actually source-breaking from the previous patch.
1 parent 7eaff4a commit 7ba5617

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test/api-digester/source-stability.swift.expected

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/* DictionaryIndex => Dictionary.Index,
2+
* SetIndex => Set.Index
3+
*
4+
* Note: The old names are still available via generic typealiases,
5+
* however swift-api-digester doesn't pick that up yet. */
6+
TypeAlias Dictionary.Index has been removed
7+
TypeAlias Set.Index has been removed
8+
Struct DictionaryIndex has been removed
9+
Struct SetIndex has been removed
10+
111
/* Removed declarations */
212
Protocol BidirectionalIndexable has been removed (deprecated)
313
Protocol ExpressibleByStringInterpolation has been removed (deprecated)
@@ -7,5 +17,18 @@ Protocol MutableIndexable has been removed (deprecated)
717
Protocol RandomAccessIndexable has been removed (deprecated)
818
Protocol RangeReplaceableIndexable has been removed (deprecated)
919

20+
/* More DictionaryIndex / SetIndex */
21+
Var Dictionary.endIndex has declared type change from DictionaryIndex<Key, Value> to Dictionary<Key, Value>.Index
22+
Var Dictionary.startIndex has declared type change from DictionaryIndex<Key, Value> to Dictionary<Key, Value>.Index
23+
Var Set.endIndex has declared type change from SetIndex<Element> to Set<Element>.Index
24+
Var Set.startIndex has declared type change from SetIndex<Element> to Set<Element>.Index
25+
Func Dictionary.index(after:) has return type change from DictionaryIndex<Key, Value> to Dictionary<Key, Value>.Index
26+
Func Dictionary.index(forKey:) has return type change from DictionaryIndex<Key, Value>? to Dictionary<Key, Value>.Index?
27+
Func Dictionary.remove(at:) has 1st parameter type change from DictionaryIndex<Key, Value> to Dictionary<Key, Value>.Index
28+
Func Set.index(after:) has return type change from SetIndex<Element> to Set<Element>.Index
29+
Func Set.index(of:) has return type change from SetIndex<Element>? to Set<Element>.Index?
30+
Func Set.remove(at:) has 1st parameter type change from SetIndex<Element> to Set<Element>.Index
31+
1032
/* Function type change */
1133
Func UnsafePointer.withMemoryRebound(to:capacity:_:) has 3rd parameter type change from (UnsafeMutablePointer<T>) throws -> Result to (UnsafePointer<T>) throws -> Result
34+

0 commit comments

Comments
 (0)