11 lines
250 B
Plaintext
11 lines
250 B
Plaintext
fun bar(x: Int): RuntimeException = RuntimeException(x.toString())
|
|
|
|
fun foo() {
|
|
val x: Int? = null
|
|
|
|
if (x == null || 1 < 2) throw bar(<!TYPE_MISMATCH!>x<!>)
|
|
if (x == null) return
|
|
throw bar(x)
|
|
throw <!UNREACHABLE_CODE!>bar(x)<!>
|
|
}
|