Files
kotlin-fork/idea/testData/quickfix/smartCastImpossibleInIfThen/ifThen5.kt
T

11 lines
208 B
Kotlin
Vendored

// "Replace 'if' expression with safe access expression" "true"
// WITH_RUNTIME
class Test {
var x: Any? = null
fun test() {
if (x is String) foo(x<caret>)
}
fun foo(s: String) = 1
}