Let's say I have Two interfaces with same method name and signature and have default value for its parameter, implemented by a single class there will be a compilation error:
More than one overridden descriptor declares a default value for 'value-parameter b: Boolean = ... As the compiler can not make sure these values agree, this is not allowed.
Ex:
interface A {
fun f(b: Boolean = true)
}
interface B {
fun f(b: Boolean = false)
}
class C : A, B {
override fun f(b: Boolean) {
}
}
Is there a way to solve this issue or should I define two different methods