Fix tests
This commit is contained in:
compiler/testData/codegen/boxWithStdlib/reflection/mapping/platformStatic/companionObjectFunction.kt
Vendored
+2
-3
@@ -1,8 +1,7 @@
|
||||
import kotlin.jvm.JvmStatic as static
|
||||
import kotlin.reflect.KFunction
|
||||
import kotlin.reflect.jvm.*
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.failsWith
|
||||
import kotlin.test.*
|
||||
|
||||
class C {
|
||||
companion object {
|
||||
@@ -25,7 +24,7 @@ fun box(): String {
|
||||
return "Fail: no Kotlin function found for static bridge for @JvmStatic method in companion object C::foo"
|
||||
assertEquals(3, k2.call(C, "ghi"))
|
||||
|
||||
failsWith(javaClass<NullPointerException>()) { k2.call(null, "")!! }
|
||||
assertFailsWith(javaClass<NullPointerException>()) { k2.call(null, "")!! }
|
||||
|
||||
val j2 = k2.javaMethod
|
||||
assertEquals(j, j2)
|
||||
|
||||
Reference in New Issue
Block a user