How does `ReversedCollection.reverse` typecheck?

As per my caveat, the observation was based on reading @taylorswift's documentation website, which uses language stating that the conformance to BidirectionalCollection exists only when Base conforms also: that would be redundant since Base always conforms, but also not impossible to spell (extension ReversedCollection: BidirectionalCollection where Base: BidirectionalCollection).

Checking the original source, ReversedCollection indeed conforms unconditionally to BidirectionalCollection (which is what I'd have guessed to begin with), so this can't explain the symbol graph issue.

1 Like