runtime: allow comparing interfaces in reflectValueEqual()

This commit is contained in:
Damian Gryski
2021-11-23 13:40:13 -08:00
committed by Ayke
parent 18f4ffd656
commit 18242bc26a
3 changed files with 17 additions and 0 deletions
+2
View File
@@ -74,6 +74,8 @@ func reflectValueEqual(x, y reflect.Value) bool {
}
}
return true
case reflect.Interface:
return reflectValueEqual(x.Elem(), y.Elem())
default:
runtimePanic("comparing un-comparable type")
return false // unreachable