blob: 09960db5098eaa531bc120d509c2cc7d364df72f [file]
// "Replace 'if' expression with elvis expression" "false"
// ACTION: Add non-null asserted (!!) call
// ACTION: Introduce local variable
// DISABLE-ERRORS
class Test {
var x: String? = ""
fun test() {
val i = if (x != null) {
bar()
<caret>x.length
} else {
0
}
}
fun bar() {}
}