<@U0CHHN4F4> Is there any reason why this shouldn...
# scripting
j
@ilya.chernikov Is there any reason why this shouldn't work in a Kotlin Script??
Copy code
enum class Build { Debug, Release }
fun applySomething(build: Build) = when (build) {
    Build.Debug -> "environmentDebug"
    Build.Release -> "environmentRelease"
}
This seems like a scripting bug, yes? https://github.com/gradle/kotlin-dsl/issues/526 Just want to make sure that this isn't a "works as expected"
i
Looks like it is a scripting bug. I’ve reproduced something similar on the simple script. Will dig deeper tomorrow.
j
Thanks!
b
Great
i
We’ve found the issue on our side - https://youtrack.jetbrains.com/v2/issue/KT-20707
👍 1