Skip to content

Commit 8d8aa6e

Browse files
authored
Merge pull request #60437 from apple/egorzhdan/explicit-override
[cxx-interop] NFC: Add explicit `override` to associated types
2 parents 6ff7d67 + 440de8e commit 8d8aa6e

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)