mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
This should lead to better Java/Kotlin correspondence since the Java extractor will naturally name trap files for JVM names, and avoids a specific bug (tested) where MapsKt.iterator's two overloads (one taking `Map` and one `MutableMap`) are JvmName'd differently since their Java-lowered signatures would be identical. Without this change only one of the iterator overloads would get extracted leaving the other one a dangling reference.
4 lines
194 B
Kotlin
4 lines
194 B
Kotlin
fun getIter(m: MutableMap<String, Int>): MutableIterator<MutableMap.MutableEntry<String, Int>> = m.iterator()
|
|
|
|
fun getIter2(m: Map<String, Int>): Iterator<Map.Entry<String, Int>> = m.iterator()
|