Files
kotlin-fork/idea/testData/intentions/branched/ifThenToDoubleBang/notApplicableForFunction.kt
T
2014-04-22 22:33:08 +04:00

13 lines
219 B
Kotlin

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