From 440de8eb87dff5f519066ef1df1847309a1c56d7 Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Mon, 8 Aug 2022 14:54:28 +0100 Subject: [PATCH] [cxx-interop] NFC: Add explicit `override` to associated types --- stdlib/public/Cxx/CxxSequence.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/Cxx/CxxSequence.swift b/stdlib/public/Cxx/CxxSequence.swift index ef0a1915f0355..b54d3988eb0cc 100644 --- a/stdlib/public/Cxx/CxxSequence.swift +++ b/stdlib/public/Cxx/CxxSequence.swift @@ -65,8 +65,8 @@ extension Optional: UnsafeCxxInputIterator where Wrapped: UnsafeCxxInputIterator /// types must conform to `UnsafeCxxInputIterator`. public protocol CxxSequence: Sequence { associatedtype RawIterator: UnsafeCxxInputIterator - associatedtype Element = RawIterator.Pointee - associatedtype Iterator = CxxIterator + override associatedtype Element = RawIterator.Pointee + override associatedtype Iterator = CxxIterator // `begin()` and `end()` have to be mutating, otherwise calling // `self.sequence.begin()` will copy `self.sequence` into a temporary value,