mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
23 lines
515 B
Swift
23 lines
515 B
Swift
// RUN: %target-swift-frontend %s -emit-silgen
|
|
|
|
// rdar://problem/19792730
|
|
|
|
public func foo<
|
|
Expected : Sequence,
|
|
Actual : Sequence,
|
|
T : Comparable
|
|
>(expected: Expected, actual: Actual)
|
|
where
|
|
Expected.Iterator.Element == Actual.Iterator.Element,
|
|
Expected.Iterator.Element == T {}
|
|
|
|
public func foo<
|
|
Expected : Sequence,
|
|
Actual : Sequence,
|
|
T : Comparable
|
|
>(expected: Expected, actual: Actual)
|
|
where
|
|
Expected.Iterator.Element == Actual.Iterator.Element,
|
|
Expected.Iterator.Element == (T, T) {}
|
|
|