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

14 lines
198 B
Kotlin
Vendored

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