Is it somehow possible to create an operator extension function is the underlying Java class already defines the operator as a regular function (minus in this example):
operator fun SomeClass.minus(b: SomeClass) = minus(b)
d
diesieben07
06/23/2021, 1:47 PM
It will just accept the Java method as an operator fun, even if it is not explicitly marked as such.