mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
298 B
Kotlin
Vendored
16 lines
298 B
Kotlin
Vendored
package test
|
|
|
|
import kotlin.reflect.KClass
|
|
import kotlin.test.*
|
|
|
|
class K
|
|
|
|
class Test {
|
|
fun kClass(): Any = K::class
|
|
|
|
fun doTest(k1: KClass<*>, k2: KClass<*>) {
|
|
// KClass instances should be equal for classes loaded with the child and the parent
|
|
assertEquals(k1, k2)
|
|
}
|
|
}
|