mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
In this mode, javac AST and Symbol files are used during Kotlin compilation instead of PSI / binary stuff. Later, they are reused for Java file compilation. javac in this mode is integrated into kotlinc.
9 lines
154 B
Kotlin
Vendored
9 lines
154 B
Kotlin
Vendored
package test
|
|
|
|
fun checkEnum(e: Enum) = when(e) {
|
|
Enum.SOUTH -> println(1)
|
|
Enum.NORTH -> println(2)
|
|
Enum.WEST -> println(3)
|
|
Enum.EAST -> println(42)
|
|
}
|