JVM: Handle inline class equality in when statement with declaration

#KT-34268 Fixed
This commit is contained in:
Steven Schäfer
2019-10-16 19:23:49 +02:00
committed by Alexander Udalov
parent bbdbc2896b
commit 4878c7967a
7 changed files with 43 additions and 7 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
fun box(): String {
return when(val foo = 42UL) {
42UL -> "OK"
else -> "Fail"
}
}