Files
2024-04-15 11:52:39 +00:00

16 lines
324 B
Kotlin

// "Replace 'if' expression with safe access expression" "false"
// ACTION: Add non-null asserted (x!!) call
// ACTION: Introduce local variable
// DISABLE-ERRORS
class Test {
var x: String? = ""
fun test() {
if (x != null) {
bar()
<caret>x.length
}
}
fun bar() {}
}