Files
kotlin/compiler/testData/codegen/patternMatching/exceptionOnNoMatch.jet
2012-01-18 13:31:42 +04:00

5 lines
73 B
Plaintext

fun isZero(x: Int) = when(x) {
0 -> true
else -> throw Exception()
}