Skip to content

Commit 08e0b70

Browse files
committed
Fix UnicodeDecoders prototype test
1 parent 7eae042 commit 08e0b70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Prototypes/UnicodeDecoders.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extension _Unicode {
3939
struct DefaultScalarView<
4040
CodeUnits: BidirectionalCollection,
4141
Encoding: UnicodeEncoding
42-
> where CodeUnits.Iterator.Element == Encoding.CodeUnit {
42+
> where CodeUnits.Element == Encoding.CodeUnit, CodeUnits._Element == CodeUnits.Element {
4343
var codeUnits: CodeUnits
4444
init(
4545
_ codeUnits: CodeUnits,
@@ -166,7 +166,7 @@ public struct _ReverseIndexingIterator<
166166

167167
@_inlineable
168168
@inline(__always)
169-
public mutating func next() -> Elements._Element? {
169+
public mutating func next() -> Elements.Element? {
170170
guard _fastPath(_position != _elements.startIndex) else { return nil }
171171
_position = _elements.index(before: _position)
172172
return _elements[_position]
@@ -232,7 +232,7 @@ func checkDecodeUTF<Codec : UnicodeCodec & UnicodeEncoding>(
232232
var result = assertionSuccess()
233233

234234
func check<C: Collection>(_ expected: C, _ description: String)
235-
where C.Iterator.Element == UInt32
235+
where C.Element == UInt32
236236
{
237237
if !expected.elementsEqual(decoded) {
238238
if result.description == "" { result = assertionFailure() }

0 commit comments

Comments
 (0)