package test class Test { private val x = object : ListUpdateCallback { override fun onInserted(position: Int, count: Int) {} } } interface ListUpdateCallback { fun onInserted(position: Int, count: Int) }