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