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