// RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s // https://github.com/apple/swift/issues/48296 protocol Foo { associatedtype Bar var bar: Bar { get } } // CHECK: Generic signature: extension Foo where Self: Collection, Bar: Collection, Self.SubSequence == Bar.SubSequence, /*redundant: */Self.Index == Bar.Index { subscript(_ bounds: Range) -> SubSequence { return bar[bounds] } }