tests: Update external tests (1.1.2-dev-393)
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.reflect.*
|
||||
import kotlin.reflect.jvm.*
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
inline fun <reified T> f() = 1
|
||||
|
||||
fun g() {}
|
||||
|
||||
class Foo {
|
||||
inline fun <reified T> h(t: T) = 1
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(::g, ::g.javaMethod!!.kotlinFunction)
|
||||
|
||||
val h = Foo::class.members.single { it.name == "h" } as KFunction<*>
|
||||
assertEquals(h, h.javaMethod!!.kotlinFunction)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user