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