Skip to content

Commit 440de8e

Browse files
authored
[cxx-interop] NFC: Add explicit override to associated types
1 parent a5dbf98 commit 440de8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Cxx/CxxSequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ extension Optional: UnsafeCxxInputIterator where Wrapped: UnsafeCxxInputIterator
6565
/// types must conform to `UnsafeCxxInputIterator`.
6666
public protocol CxxSequence: Sequence {
6767
associatedtype RawIterator: UnsafeCxxInputIterator
68-
associatedtype Element = RawIterator.Pointee
69-
associatedtype Iterator = CxxIterator<Self>
68+
override associatedtype Element = RawIterator.Pointee
69+
override associatedtype Iterator = CxxIterator<Self>
7070

7171
// `begin()` and `end()` have to be mutating, otherwise calling
7272
// `self.sequence.begin()` will copy `self.sequence` into a temporary value,

0 commit comments

Comments
 (0)