blob: 619090f4849db49d4e9915ed61b29b3cd1f792bc [file]
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