I’ve created a class BDC(val v: BigDecimal) which implements some operations over BigDecimal.
Now I want to define two operators - one for nullable and other for non-nullable version of BDC
operator fun plus(other: BDC): BDC = …
operator fun plus(other: BDC?): BDC? = …
Compiler says that both of them have the same JVM signature.
How to achieve my goal to have operator which accepts nullable and non-nullable version of a type ?