Simplify for now works even if no variables are declared inside loop #KT-12145 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(map: Map<String, Int>) {
|
||||
for ((key, value) in map) {
|
||||
if (key == "my_name") println("My index is ${value}")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user