[NI] Use original descriptor for functions imported from object during JS mangling

^KT-35904 Fixed
This commit is contained in:
Victor Petukhov
2020-01-28 18:23:31 +03:00
parent fa924065ca
commit 4490efab3e
4 changed files with 35 additions and 4 deletions
@@ -0,0 +1,21 @@
// !LANGUAGE: +NewInference
// EXPECTED_REACHABLE_NODES: 1329
// Issue: KT-35904
import A.bar
import A.bar2
object A {
inline fun <T> bar(x: T) = 42
inline val <T> T.bar2 get() = 42
}
fun <T> T.foo1(): Int = bar(this)
fun <T> T.foo2(): Int = this.bar2
fun box(): String {
10.foo1()
10.foo2()
return "OK"
}