With this very simple function: ```fun Int.digits(...
# intellij
k
With this very simple function:
Copy code
fun Int.digits(base: Int = 10): List<Int> =
    if (this < base)
        listOf(this)
    else
        (this/base).digits() + this % base
IntelliJ IDEA (latest version, K2 mode) falsely warns that
this < base
is always false.
r
Hi! Thanks for reporting this; I believe that this was already fixed here: KTIJ-31635
thank you color 1