Files
swift-mirror/validation-test/compiler_crashers_2/0002-rdar19792768.swift
2015-04-24 20:31:43 +00:00

20 lines
436 B
Swift

// RUN: %target-swift-frontend %s -emit-silgen
// rdar://problem/19792768
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) {}
func f() {
foo(
[ (10, 1010), (20, 1020), (30, 1030) ],
[ (10, 1010), (20, 1020), (30, 1030) ])
}