Skip to content

Commit

Permalink
codegen: Unalias before lookup type (#3247)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed Sep 5, 2024
1 parent ab1781b commit 4c4be0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/templates/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (s *Imports) Lookup(path string) string {
}

func (s *Imports) LookupType(t types.Type) string {
return types.TypeString(t, func(i *types.Package) string {
return types.TypeString(code.Unalias(t), func(i *types.Package) string {
return s.Lookup(i.Path())
})
}
Expand Down

0 comments on commit 4c4be0a

Please sign in to comment.