// !CHECK_TYPE import kotlin.reflect.KFunction1 class A(val t: T) { fun foo(): T = t } fun bar() { val x = A::foo checkSubtype, String>>(x) }