// !CHECK_TYPE import kotlin.reflect.KFunction0 class A { fun main() { val x = ::A checkSubtype>(x) } } class SomeOtherClass { fun main() { val x = ::A checkSubtype>(x) } }