Delete generated test cases, move testData to boxWithStdlib
This commit is contained in:
committed by
Alexander Udalov
parent
b311255d96
commit
714708eac7
+17
@@ -0,0 +1,17 @@
|
||||
data class A(val x: Int) {
|
||||
fun hashCode(other: Any): Int = 0
|
||||
}
|
||||
|
||||
data class B(val x: Int) {
|
||||
fun hashCode(other: B, another: Any): Int = 0
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
javaClass<A>().getDeclaredMethod("hashCode")
|
||||
javaClass<A>().getDeclaredMethod("hashCode", javaClass<Any>())
|
||||
|
||||
javaClass<B>().getDeclaredMethod("hashCode")
|
||||
javaClass<B>().getDeclaredMethod("hashCode", javaClass<B>(), javaClass<Any>())
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user