Files
kotlin-fork/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/doesNotinlineValueOutsideOfScope.kt
T
2017-12-26 18:39:47 +03:00

14 lines
177 B
Kotlin
Vendored

fun maybeFoo(): String? {
return "foo"
}
val x = maybeFoo()
fun main(args: Array<String>) {
<caret>if (x != null) {
x.length
} else {
null
}
}