Skip to content

Commit 3bc817d

Browse files
committed
Revert
1 parent 71d9da3 commit 3bc817d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bind/package.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ func (p *Package) getDoc(parent string, o types.Object) string {
122122
}
123123
// Check for typed consts
124124
scopeName := p.pkg.Scope().Lookup(n)
125-
constType := scopeName.Type().(*types.Named)
125+
constType := scopeName.Type()
126126
if constType == nil {
127127
return ""
128128
}
129129
for _, t := range p.doc.Types {
130-
if t.Name == constType.Obj().Name() {
130+
if p.pkg.Path()+"."+t.Name == constType.String() {
131131
for _, c := range t.Consts {
132132
for _, cn := range c.Names {
133133
if n == cn {

0 commit comments

Comments
 (0)