Take into account JvmName annotation when generating accessors

#KT-17444 Fixed Target versions 1.1.5
This commit is contained in:
Dmitry Petrov
2017-07-10 18:02:32 +03:00
parent efb6756cbc
commit f4d63158cc
6 changed files with 51 additions and 2 deletions
@@ -0,0 +1,15 @@
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
@JvmName("fooA")
private fun String.foo(t: String?): String = this
private fun String.foo(t: String): String = this
fun runNoInline(fn: () -> String) = fn()
fun box() =
runNoInline { "O".foo("") } +
runNoInline { "K".foo(null) }