Use original descriptors for functions when generating stubs

Descriptors for builtin class members on JVM are substituted.
This commit is contained in:
Dmitry Petrov
2017-06-26 16:14:15 +03:00
parent 5e5a1bd686
commit ae71833a12
5 changed files with 540 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
// !DUMP_DEPENDENCIES
// WITH_RUNTIME
// FULL_JDK
fun <K, V> Map<out K, V>.plus(pair: Pair<K, V>): Map<K, V> =
if (this.isEmpty()) mapOf(pair) else LinkedHashMap(this).apply { put(pair.first, pair.second) }