IC Mangling: Change test since we pass boxed inline class to java method

#KT-28214
This commit is contained in:
Ilmir Usmanov
2020-12-10 15:13:52 +01:00
parent cbb8eb494a
commit 69bb65496f
@@ -15,8 +15,10 @@ fun box(): String {
val mh = MethodHandles.lookup().unreflect(::foo.javaMethod!!)
// TODO: it's unclear whether this should throw or not, see KT-28214.
val r1 = mh.invokeExact(Z("OK")) as String
if (r1 != "OK") return "Fail r1: $r1"
return mh.invokeExact("OK") as String
return try {
mh.invokeExact(Z("OK"))
"FAIL"
} catch (ignored: java.lang.invoke.WrongMethodTypeException) {
"OK"
}
}