becd713111
KT-973 Unreachable code
5 lines
73 B
Plaintext
5 lines
73 B
Plaintext
fun isZero(x: Int) = when(x) {
|
|
0 -> true
|
|
else -> throw Exception()
|
|
}
|