https://kotlinlang.org logo
#compiler
Title
# compiler
m

mp

01/27/2020, 7:29 PM
Why would the compiler not allow me to call
intValue()
on
BigDecimal
? https://pl.kotl.in/kC_HQAcM2
e

ephemient

01/27/2020, 8:06 PM
Kotlin hides Java's
Number
interface and replaces it with its own; you want the method
.toInt()
m

mp

01/27/2020, 8:42 PM
That's pretty confusing 😕 would be nice to have an IDE hint there
2 Views