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

9 lines
156 B
Kotlin
Vendored

// WITH_RUNTIME
fun foo(): Any? = "foo"
fun main(args: Array<String>) {
if (foo() == null<caret>) {
throw KotlinNullPointerException()
}
}