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:
Michael Bogdanov
2016-02-29 10:04:35 +03:00
parent 2d5b7a8768
commit 16afe74dc1
5 changed files with 49 additions and 0 deletions
+16
View File
@@ -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()
}