// RUN: %target-parse-verify-swift protocol P { } @objc protocol OP { } func f1(t: T) { } // expected-note 2{{in call to function 'f1'}} func f2(t: T) { } func f3(t: T) { } func testPassExistential(p: P, op: OP, opp: protocol, any: Any) { f1(p) // expected-error{{generic parameter 'T' cannot be bound to non-@objc protocol type 'P'}} f3(p) f2(op) f3(op) f1(opp) // expected-error{{generic parameter 'T' cannot be bound to non-@objc protocol type 'protocol'}} f2(opp) f3(opp) f3(any) }