Files
kotlin-fork/idea/testData/inspectionsLocal/foldInitializerAndIfToElvis/OtherVar1.kt
T

12 lines
192 B
Kotlin
Vendored

// PROBLEM: none
class C {
var v: String? = null
fun foo(p: List<String?>): Int {
val v = p[0]
<caret>if (this.v == null) return -1
return v!!.length
}
}