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