blob: a5591fa4981fda35c291c0ecf346cc6a07967842 [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