Files
kotlin-fork/idea/testData/intentions/foldInitializerAndIfToElvis/Comments2.kt.after
T
Dmitry Jemerov 3178dee759 Insert line break before elvis when converting if to elvis
This ensures correct indentation
2017-12-22 10:35:23 +01:00

8 lines
203 B
Plaintext
Vendored

fun foo(p: List<String?>): Int {
val v = p[0]
?: // v is null
// we should do something with it
return -1 // let's return -1
// end of if
return v.length
}