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
+18
View File
@@ -0,0 +1,18 @@
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
}
// METHOD : Kt11117Kt$test$o$1.<init>(LA;)V
// VARIABLE : NAME=x TYPE=Ljava/lang/String; INDEX=2
// VARIABLE : NAME=this TYPE=LKt11117Kt$test$o$1; INDEX=0
// VARIABLE : NAME=$receiver TYPE=LA; INDEX=1