blob: d3a5f39c66b1792ab21b4a63ac10cd8b4988ca06 [file] [log] [blame]
// RUN: %target-swift-frontend %s -emit-silgen | %FileCheck %s
// rdar://16238241
// Make sure we can parse where clause with conformance & same-type requirements.
protocol Runcible {
associatedtype Mince
associatedtype Quince
}
struct Spoon<T: Runcible> {}
// CHECK: sil @foo : $@convention(thin) <T where T : Runcible, T == T.Mince> () -> @out Spoon<T>
sil @foo : $@convention(thin) <T where T: Runcible, T == T.Mince> () -> @out Spoon<T> {
entry(%0 : @trivial $*Spoon<T>):
return undef : $()
}