[NI] Fix tests (was a type checker bug, see KT-18380)
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
d4e8a30dcf
commit
756f7d6e9c
Vendored
+1
-1
@@ -14,7 +14,7 @@ class M {
|
||||
fun topLevelFun() {}
|
||||
val topLevelProp = ""
|
||||
|
||||
fun checkEquals(x: KCallable<*>, y: KCallable<*>) {
|
||||
fun <T> checkEquals(x: KCallable<T>, y: KCallable<T>) {
|
||||
assertEquals(x, y)
|
||||
assertEquals(y, x)
|
||||
assertEquals(x.hashCode(), y.hashCode())
|
||||
|
||||
Vendored
+2
-2
@@ -13,8 +13,8 @@ object Delegate {
|
||||
}
|
||||
|
||||
operator fun getValue(x: Any?, p: KProperty<*>) {
|
||||
assertEquals(prop, p)
|
||||
assertEquals(p, prop)
|
||||
assertEquals(prop as Any, p)
|
||||
assertEquals(p as Any, prop)
|
||||
assertEquals(p.hashCode(), prop.hashCode())
|
||||
assertEquals("property x (Kotlin reflection is not available)", p.toString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user