In Kotlin, i'm trying to define an Interface with only one method. When trying to the following code:
fun interface someInterFace
{
fun someFunc()
}
I'm getting the following error message: "expecting function name or receiver type" Can someone explain me what i'm doing wrong? I'm using it exactly as it described in: Functional (SAM) interfaces