Record resolved delegation call for primary ctor if single result

Do the same thing as for secondary constructor (looks like it was a
workaround for R&I bug that was used only for secondary constructors
for some reason).

 #KT-17464 Fixed Target versions 1.1.5
This commit is contained in:
Dmitry Petrov
2017-07-24 11:07:52 +03:00
parent c9ad290ad5
commit b81ca31aae
7 changed files with 99 additions and 1 deletions
@@ -0,0 +1,5 @@
open class A(val array: Array<Any>)
class B : A(arrayOf("OK"))
fun box() = B().array[0].toString()
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// FULL_JDK
open class B(val map: LinkedHashMap<String, String>)
class C : B(linkedMapOf("O" to "K"))
fun box() =
C().map.entries.first().let { it.key + it.value }