Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
controlFlowAnalysis
/
kt1156.kt
blob: 5ebe95197a33a55580c202c9507d866930787518 [
file
]
// FIR_IDENTICAL
//KT-1156 Throwing exception on the right side of elvis operator marks code unreachable
fun foo
(
maybe
:
Int
?)
{
val i
:
Int
=
maybe
?:
throw
RuntimeException
(
"No value"
)
System
.
out
.
println
(
i
)
}