mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The default IndexingIterator for a custom collection is not suitable for subclasses that specialize the element type the way libSyntax does. Overriding it with a more specific iterator, even with something like covariant overrides, would not work because it the iterator is generic over its base collection, not its element type. Provide a custom iterator parameterized by the element type instead.
5.4 KiB
5.4 KiB