Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
script
/
kt20707.kts
blob: 3ddef76bccc63e53a5ee4738bc9f49196c077314 [
file
] [
log
] [
blame
]
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