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
+8
View File
@@ -0,0 +1,8 @@
>>> enum class Build { Debug, Release }
>>> fun applySomething(build: Build) = when (build) {
... Build.Debug -> "OK"
... Build.Release -> "fail"
...}
>>> applySomething(Build.Debug)
OK