This commit is contained in:
Asparuh Krastev 2023-10-26 14:20:13 +03:00
parent 3bc817dcb1
commit 113c72fdd4
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ func (p *Package) getDoc(parent string, o types.Object) string {
}
// Check for typed consts
scopeName := p.pkg.Scope().Lookup(n)
if scopeName == nil {
return ""
}
constType := scopeName.Type()
if constType == nil {
return ""