Hello!
I want to have a functional interface like the following:
fun interface Test {
fun getSomething(myParameter: String = "defaultValue", mySecondParameter: Map<String, String> = emptyMap()): String
}
But it gives the error: single abstract member cannot declare default values
.
Why is that? Is there any workaround for it?
Thanks!