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

11 lines
209 B
Plaintext
Vendored

// "Replace 'if' expression with safe access expression" "true"
// WITH_RUNTIME
class Test {
var x: Any? = null
fun test() {
(x as? String)?.let { foo(it) }
}
fun foo(s: String) = 1
}