[JS BE] Support val in when subject
#KT-25014 Fixed
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !LANGUAGE: +VariableDeclarationInWhenSubject
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
fun sparse(x: Int): Int {
|
||||
return when (val xx = (x % 4) * 100) {
|
||||
|
||||
Reference in New Issue
Block a user