mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
11 lines
155 B
Kotlin
11 lines
155 B
Kotlin
fun testWhen(i: Int): Int {
|
|
return when(i) {
|
|
0 -> 1
|
|
1 -> 2
|
|
2 -> return 3
|
|
3 -> throw Exception("No threes please")
|
|
else -> 999
|
|
}
|
|
}
|
|
|