Files
kotlin-fork/idea/testData/quickfix/expressions/removeUselessCastUnderSmartCast.kt
T
Ilya Kirillov bd38363077 FIR IDE: use IGNORE_FIR instead of FIR_COMPARISON in hl quick fix tests
To explicitly specify which test are failing
2021-04-01 18:24:17 +02:00

9 lines
158 B
Kotlin
Vendored

// "Remove useless cast" "true"
fun test(x: Any): String? {
if (x is String) {
return x <caret>as String
}
return null
}
/* IGNORE_FIR */