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

11 lines
201 B
Kotlin

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