Files
kotlin-fork/idea/testData/quickfix/expressions/afterRemoveUselessCastInParens.kt
T
2015-03-24 16:40:59 +03:00

8 lines
119 B
Kotlin

// "Remove cast" "true"
fun test(x: Any): Int {
if (x is String) {
return x.length()
}
return -1
}