class A { class Nested } fun A.main() { ::Nested val y = A::Nested y : KFunction0 } fun Int.main() { ::Nested val y = A::Nested y : KFunction0 }