blob: 70a04d5bc8b4016914f37e58c2fab99db0761363 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
// SR-5726
protocol Foo
{
associatedtype Bar
var bar: Bar { get }
}
extension Foo where Self: Collection, Bar: Collection, Self.SubSequence == Bar.SubSequence, Self.Index == Bar.Index
{
subscript(_ bounds: Range<Index>) -> SubSequence
{
return bar[bounds]
}
}