Files
kotlin-fork/idea/testData/inspectionsLocal/branched/ifThenToElvis/nullCheckWithSelector.kt
T
2019-06-07 12:23:54 +07:00

5 lines
97 B
Kotlin
Vendored

class My(val x: Int)
fun foo(arg: My?): Int {
return if (<caret>arg != null) arg.x else 42
}