JVM_IR JavaSamConversionEqualsHashCode
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// !LANGUAGE: +JavaSamConversionEqualsHashCode
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// FULL_JDK
|
||||
|
||||
fun foo() {}
|
||||
|
||||
fun box(): String {
|
||||
val r1 = Runnable(::foo)
|
||||
val r2 = Runnable(::foo)
|
||||
|
||||
if (r1 != r2)
|
||||
return "r1 != r2"
|
||||
if (r1.hashCode() != r2.hashCode())
|
||||
return "r1.hashCode() != r2.hashCode()"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user