Write script descriptor type to ASM_TYPE slice

#KT-20707 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-10-10 13:26:24 +02:00
parent eb32f5478a
commit a79c2bf999
5 changed files with 39 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
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