Quy D X Nguyen
07/05/2019, 3:19 PM@JvmName("fracCancelTimes")
operator fun <T: Key, U: Key> SIUnit<Fraction<T, U>>.times(other: SIUnit<U>) = SIUnit<T>(value * other.value)
@JvmName("fracCancelTimesCommute")
operator fun <T: Key, U: Key> SIUnit<U>.times(other: SIUnit<Fraction<T, U>>) = SIUnit<T>(value * other.value)
So I've realized that there is no way to do something like this with inline classes as @JvmName does not work. I propose either the extension of @JvmName to these functions or maybe a @HashName annotation to allow the hash name to changed and to allow this sort of generic overloading on inline classes.