Support Array<KClass> in instantiated annotations

#KT-47703 Fixed
This commit is contained in:
Leonid Startsev
2021-12-15 16:05:29 +00:00
committed by Space
parent 4df34a20e7
commit 2eac2ff3a2
5 changed files with 87 additions and 29 deletions
@@ -45,7 +45,7 @@ fun box(): String {
)
val s = anno.toString()
val targetJVM = "@test.Anno(s=OK, i=42, f=2.718281828, u=43, e=E0, a=@test.A(b=1, s=1, i=1, f=1.0, d=1.0, l=1, c=c, bool=true), " +
"k=interface test.A (Kotlin reflection is not available), arr=[], intArr=[1, 2], arrOfE=[E0], arrOfA=[@test.Empty()])"
"k=interface test.A, arr=[], intArr=[1, 2], arrOfE=[E0], arrOfA=[@test.Empty()])"
val targetJS = "@test.Anno(s=OK, i=42, f=2.718281828, u=43, e=E0, a=@test.A(b=1, s=1, i=1, f=1, d=1, l=1, c=c, bool=true), k=class A, arr=[...], intArr=[...], arrOfE=[...], arrOfA=[...])"
val targetNative = targetJVM
.replace(" (Kotlin reflection is not available)", "")