Skip to content

Commit 36e37ce

Browse files
committed
Update renaming test
1 parent 7e6a105 commit 36e37ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/1_stdlib/Renames.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func _ErrorType() {
108108

109109
func _ExistentialCollection<T>(i: AnyIterator<T>) {
110110
func fn1<T>(_: AnyGenerator<T>) {} // expected-error {{'AnyGenerator' has been renamed to 'AnyIterator'}} {{18-30=AnyIterator}} {{none}}
111-
func fn2<T : AnyCollectionType>(_: T) {} // expected-error {{'AnyCollectionType' has been renamed to 'AnyCollectionProtocol'}} {{16-33=AnyCollectionProtocol}} {{none}}
111+
func fn2<T : AnyCollectionType>(_: T) {} // expected-error {{'AnyCollectionType' has been renamed to '_AnyCollectionProtocol'}} {{16-33=_AnyCollectionProtocol}} {{none}}
112112
func fn3(_: AnyForwardIndex) {} // expected-error {{'AnyForwardIndex' has been renamed to 'AnyIndex'}} {{15-30=AnyIndex}} {{none}}
113113
func fn4(_: AnyBidirectionalIndex) {} // expected-error {{'AnyBidirectionalIndex' has been renamed to 'AnyIndex'}} {{15-36=AnyIndex}} {{none}}
114114
func fn5(_: AnyRandomAccessIndex) {} // expected-error {{'AnyRandomAccessIndex' has been renamed to 'AnyIndex'}} {{15-35=AnyIndex}} {{none}}
@@ -128,7 +128,7 @@ func _ExistentialCollection<T>(c: AnyBidirectionalCollection<T>) {
128128
func _ExistentialCollection<T>(c: AnyRandomAccessCollection<T>) {
129129
_ = c.underestimateCount() // expected-error {{'underestimateCount()' is unavailable: Please use underestimatedCount property instead.}} {{none}}
130130
}
131-
func _ExistentialCollection<C : AnyCollectionProtocol>(c: C) {
131+
func _ExistentialCollection<C : _AnyCollectionProtocol>(c: C) {
132132
_ = c.generate() // expected-error {{'generate()' has been renamed to 'makeIterator()'}} {{9-17=makeIterator}} {{none}}
133133
}
134134

0 commit comments

Comments
 (0)