mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
19 lines
363 B
Kotlin
Vendored
19 lines
363 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.test.assertEquals
|
|
import kotlin.test.assertFalse
|
|
|
|
fun box(): String {
|
|
val x = Int::class.javaPrimitiveType!!.kotlin
|
|
val y = Int::class.javaObjectType.kotlin
|
|
|
|
assertEquals(x, y)
|
|
assertEquals(x.hashCode(), y.hashCode())
|
|
assertFalse(x === y)
|
|
|
|
return "OK"
|
|
}
|