Fix for KT-11117: Android Kotlin DEX transformation error when I use arrayOf as an anonymous object property
#KT-11117 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class A(val value: String)
|
||||
|
||||
fun A.test(): String {
|
||||
val o = object {
|
||||
val z: String
|
||||
init {
|
||||
val x = value + "K"
|
||||
z = x
|
||||
}
|
||||
}
|
||||
return o.z
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return A("O").test()
|
||||
}
|
||||
Reference in New Issue
Block a user