Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Throw.fir.kt
T

9 lines
200 B
Kotlin
Vendored

fun bar(x: Int): RuntimeException = RuntimeException(x.toString())
fun foo() {
val x: Int? = null
if (x == null) throw bar(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
throw bar(x)
throw bar(x)
}