The following code produces the lint warning "Could be replaced with unboxed last":
fun foo() {
val range = 1..3
range.endInclusive
}
Replacing endInclusive with last clears the warning.
But why? What is wrong with this code? I would have expected endInclusive to be the correct property to use for an IntRange.
(I'm using Kotlin 1.3.70 in Android Studio 3.6.1.)
