How does scala.math.BigDecimal
is implicitly converted to scala.math.Numeric
?
For example: for Int
chain of implicit conversion is traced like: Int
to RichInt
(conversion defined in Predef
) and method
protected implicit def num: Numeric[T]
from parent class scala.runtime.ScalaNumberProxy
.
The tricky part with scala.math.BigDecimal
is that it does not have any wrappers.
Thanks in advance.