mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +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.
8 lines
160 B
Kotlin
Vendored
8 lines
160 B
Kotlin
Vendored
package test
|
|
|
|
private fun getKind() = when(ReturnEnum().getKind()) {
|
|
Kind.FIRST -> println(1)
|
|
Kind.SECOND -> println(2)
|
|
Kind.THIRD -> println(42)
|
|
}
|