9 lines
200 B
Kotlin
Vendored
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)
|
|
} |