I'm trying to create a method like this: ``` fun ...
# announcements
m
I'm trying to create a method like this:
Copy code
fun <T> test(value: T): String where T : Cloneable, T : Serializable = value.toString()
And I'm getting the following compilation error:
Copy code
Overload resolution ambiguity:
public open fun toString(): kotlin.String defined in java.lang.Cloneable
public open fun toString(): kotlin.String defined in java.io.Serializable