8d9618348d
Delete the old ones in package kotlin.reflect.jvm because otherwise the code using those functions will become red in a lot less meaningful way (overload resolution ambiguity) than if they're deleted (unresolved import) Based on the work originally done by @dnpetrov #KT-8380 Fixed
13 lines
271 B
Kotlin
Vendored
13 lines
271 B
Kotlin
Vendored
class A
|
|
|
|
fun box(): String {
|
|
val a1 = javaClass<A>().kotlin
|
|
val a2 = A::class
|
|
|
|
if (a1 != a2) return "Fail equals"
|
|
if (a1.hashCode() != a2.hashCode()) return "Fail hashCode"
|
|
if (a1.toString() != a2.toString()) return "Fail toString"
|
|
|
|
return "OK"
|
|
}
|