Hi
fun main(args : Array<String>) {
val s : Any = "abc"
println(s is String)
println(s is jet.String)
println(s is java.lang.String)
println(s is CharSequence)
println(s is Iterable<*>)
}
The above all show true except the “Iterable”. Shouldn’t the kotlin API doc somehow display the String class hierachy with these membership in them?
Also would it make sense to make “Iterable” return true for String since it works in a for loop?
Another suggestion on improving kotlin API doc is I don’t see proper link to “jet” package, and yet other classes in API doc reference them in many places (sometimes the link is broken when viewing “jet.Any” for example). I don’t mean just the “Extension” under “kotlin” package, I would like to see actual “jet.String” class itself for example. I think these might be helpful to users.
Thanks,
Zemian