mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
runtime: allow comparing interfaces in reflectValueEqual()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user