Why is there no smart cast in this case? ``` val s...
# announcements
l
Why is there no smart cast in this case?
Copy code
val s: CharSequence = "Whatever"
assert(s is String)
println(s.compareTo("Something")) // Unresolved reference compareTo
l
Right, thank you