// RUN: %target-swift-frontend -typecheck -verify %s protocol P {} class GenericBase: P {} class Derived: GenericBase {} func foo(_ x: T) {} foo(Derived())