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

8 lines
138 B
Kotlin

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