Kotlin - Variables and Type System
Find the error in this Kotlin code snippet:
fun check(x: Any) {
if (x is Int) {
println(x + 10)
} else if (x is String) {
println(x.length)
}
}