IC Mangling: Change test since we pass boxed inline class to java method
#KT-28214
This commit is contained in:
+6
-4
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user