mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
199 B
Kotlin
Vendored
10 lines
199 B
Kotlin
Vendored
enum class Build { Debug, Release }
|
|
|
|
fun applySomething(build: Build) = when (build) {
|
|
Build.Debug -> "OK"
|
|
Build.Release -> "fail"
|
|
}
|
|
|
|
val rv = applySomething(Build.Debug)
|
|
|
|
// expected: rv: OK |