I just can't understand why it is possible to extend function type in kotlin ? And then why we can't extend String?
then, which is also a type.
interface CustomFunctionType : () -> Unit {
// this is possible, buy how?
}
I just can't understand why it is possible to extend function type in kotlin ? And then why we can't extend String?
then, which is also a type.
interface CustomFunctionType : () -> Unit {
// this is possible, buy how?
}