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:
@@ -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 }
|
||||
Reference in New Issue
Block a user