// !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION import kotlin.reflect.KFunction0 class A { class Nested fun main() { val x = ::Nested val y = A::Nested checkSubtype>(x) checkSubtype>(y) } companion object { fun main() { ::Nested val y = A::Nested checkSubtype>(y) } } } class B { fun main() { ::Nested val y = A::Nested checkSubtype>(y) } }