Fix for KT-9828: DX error on MutableMap.MutableEntry<String, Int> deconstruction: attempt to set or access a value of type java.lang.Object using a local variable of type int.
#KT-9828 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import java.util.*
|
||||
|
||||
fun box(): String {
|
||||
val hashMap = HashMap<String, Int>()
|
||||
hashMap.put("one", 1)
|
||||
hashMap.put("two", 2)
|
||||
for ((key, value) in hashMap) {
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user