//no nested class access via instance reference error fun test() { A.f("") } class A() { class object { object f { fun invoke(i: Int) = i } } }