diff --git a/reflect/fields.go b/reflect/fields.go index 73e593c2f..6659c29fa 100644 --- a/reflect/fields.go +++ b/reflect/fields.go @@ -109,6 +109,10 @@ func HasFields(m any, in ...string) (out []string, err error) { } switch fv.Kind() { case reflect.Ptr: + if ft.Anonymous { + inspect(fv.Interface()) + continue + } inst := fv.Interface() mp[ft.Name] = inst case reflect.Struct: