Kotlin - Variables and Type System
What is the issue with this Kotlin function?
fun displayLength(obj: Any) {
if (obj is String) {
println(obj.length)
} else {
println(obj.length)
}
}