9 lines
211 B
Plaintext
9 lines
211 B
Plaintext
//KT-1156 Throwing exception on the right side of elvis operator marks code unreachable
|
|
|
|
//+JDK
|
|
|
|
fun foo(maybe: Int?) {
|
|
val i : Int = maybe ?: throw RuntimeException("No value")
|
|
System.out?.println(i)
|
|
}
|