mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[tests] Update tests as String.CharacterView is deprecated
This commit is contained in:
@@ -82,7 +82,7 @@ func testStringCollectionTypes(s: String) {
|
||||
acceptsBidirectionalCollection(s.unicodeScalars)
|
||||
acceptsRandomAccessCollection(s.unicodeScalars) // expected-error{{argument type 'String.UnicodeScalarView' does not conform to expected type 'RandomAccessCollection'}}
|
||||
|
||||
acceptsCollection(s.characters)
|
||||
acceptsBidirectionalCollection(s.characters)
|
||||
acceptsRandomAccessCollection(s.characters) // expected-error{{argument type 'String.CharacterView' does not conform to expected type 'RandomAccessCollection'}}
|
||||
acceptsCollection(s)
|
||||
acceptsBidirectionalCollection(s)
|
||||
acceptsRandomAccessCollection(s) // expected-error{{argument type 'String' does not conform to expected type 'RandomAccessCollection'}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user