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 (<caret>entry in map.entries) {
|
||||
if (entry.key == "my_name") println("My index is ${entry.value}")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user