blob: b2c27984eafebd5b60f7263ed49cf69315fbb67b [file] [log] [blame]
// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
protocol P {
init(value: Int)
}
class C {
init(value: Int, otherValue: String = "") {}
}
func make<T: P & C>(type: T.Type) -> T {
// CHECK: [[INIT:.*]] = witness_method $T, #P.init
return T.init(value: 0)
}