JVM: Handle inline class equality in when statement with declaration
#KT-34268 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
bbdbc2896b
commit
4878c7967a
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
return when(val foo = 42UL) {
|
||||
42UL -> "OK"
|
||||
else -> "Fail"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user