golang/go

reflect: StructOf should support embedding types with non-exported methods

Open

#20,015 建立於 2017年4月17日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Go (19,008 fork)batch import
NeedsFixcompiler/runtimehelp wanted

倉庫指標

Star
 (133,883 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南