Error when trying to define Functional (SAM) interfaces

前端 未结 0 880
無奈伤痛
無奈伤痛 2020-12-15 06:18

In Kotlin, i\'m trying to define an Interface with only one method. When trying to the following code:

  fun interface someInterFace
{
    fun someFunc()
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题