Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/TryCatch.jet
T
2012-06-15 17:06:41 +04:00

16 lines
219 B
Plaintext

fun bar(x: Int): Int = x + 1
fun foo() {
val x: Int? = null
bar(<!TYPE_MISMATCH!>x<!>)
if (x == null) return
try {
bar(x)
}
catch (e: Exception) {
bar(x)
}
bar(x)
}