golang/go
View on GitHubreflect: StructOf should support embedding types with non-exported methods
Open
#20,015 opened on Apr 17, 2017
NeedsFixcompiler/runtimehelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
There's this code in reflect/type.go:
if ift.nameOff(m.name).pkgPath() != "" {
// TODO(sbinet)
panic("reflect: embedded interface with unexported method(s) not implemented")
}
See also #5748.