honestly I feel like a receiver type might be able...
# announcements
g
honestly I feel like a receiver type might be able to alleviate this:
Copy code
with(ImplicitWidening){
  Math.pow(a.d, b.d);
}
where
ImplicitWidening
is an object with extension getter
d
==
toDouble()
. If Kotlin added implementations for casting then this gets more interesting.