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

14 lines
253 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
fun main(args: Array<String>) {
val foo: String? = null
if (foo != null<caret>) {
foo
}
else {
print ("Hello")
throw NullPointerException("'foo' must not be null")
}
}