Skip to content

Commit b1c81e5

Browse files
committed
[test] Update api-digester source compatibility tests
DictionaryIterator & SetIterator have been renamed Dictionary.Iterator and Set.Iterator, with compatibility typealiases.
1 parent 3bb720c commit b1c81e5

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

stdlib/public/core/Dictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ extension Dictionary: Sequence {
572572
/// `(key: Key, value: Value)`.
573573
@inlinable
574574
@inline(__always)
575-
public func makeIterator() -> Dictionary<Key, Value>.Iterator {
575+
public func makeIterator() -> Iterator {
576576
return _variant.makeIterator()
577577
}
578578
}

stdlib/public/core/Set.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ extension Set: Sequence {
233233
/// Returns an iterator over the members of the set.
234234
@inlinable
235235
@inline(__always)
236-
public func makeIterator() -> Set<Element>.Iterator {
236+
public func makeIterator() -> Iterator {
237237
return _variant.makeIterator()
238238
}
239239

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* FIXME: Bogus */
2+
TypeAlias DictionaryIterator.Element has been removed
3+
TypeAlias SetIterator.Element has been removed
4+
Var DictionaryIterator.customMirror has been removed
5+
Var SetIterator.customMirror has been removed
6+
Func DictionaryIterator.next() has been removed
7+
Func SetIterator.next() has been removed
8+
9+
/* Renamed Decls (FIXME: Targets are Dictionary.Iterator & Set.Iterator) */
10+
Struct DictionaryIterator has been renamed to Struct Iterator
11+
Struct SetIterator has been renamed to Struct Iterator
12+
13+
/* FIXME: Bogus */
14+
Func Dictionary.makeIterator() has return type change from DictionaryIterator<Dictionary<Key, Value>.Key, Dictionary<Key, Value>.Value> to Dictionary<Key, Value>.Iterator
15+
Func Set.makeIterator() has return type change from SetIterator<Element> to Set<Element>.Iterator

0 commit comments

Comments
 (0)