Files
kotlin-fork/idea/testData/intentions/branched/ifThenToElvis/notApplicableForFunction.kt
T
2014-03-12 16:02:55 +04:00

12 lines
180 B
Kotlin

//IS_APPLICABLE: false
fun maybeFoo(): String? {
return "foo"
}
fun main(args: Array<String>) {
if (maybeFoo() == null<caret>)
maybeFoo()
else
"bar"
}