mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
11 lines
95 B
Kotlin
11 lines
95 B
Kotlin
enum class A {
|
|
A1, A2
|
|
}
|
|
|
|
fun test(a: A): Int =
|
|
when(a) {
|
|
A.A1 -> 1
|
|
A.A2 -> 2
|
|
}
|
|
|