// file one.kt package a.b.one object Some { fun justFunc() = println("justFunc()") fun importedFunc() = println("importedFunc()") } // file two.kt package a.b.two import a.b.one.Some import a.b.one.Some.importedFunc fun main(args: Array) { // this line works properly Some.justFunc() // this one fails with exception importedFunc() }