mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
16 lines
324 B
Kotlin
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() {}
|
|
} |