From 0d5816fd5121db186d2fbfcde1afb38491a2596d Mon Sep 17 00:00:00 2001 From: "Giau. Tran Minh" Date: Fri, 6 Sep 2024 00:24:52 +0700 Subject: [PATCH] codegen: Revert Unalias before lookup type (#3247) This reverts commit 4c4be0aeaaad758e703724fe4a6575768017ac53. --- codegen/templates/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/templates/import.go b/codegen/templates/import.go index eb26ea79682..c26bdeab7f5 100644 --- a/codegen/templates/import.go +++ b/codegen/templates/import.go @@ -116,7 +116,7 @@ func (s *Imports) Lookup(path string) string { } func (s *Imports) LookupType(t types.Type) string { - return types.TypeString(code.Unalias(t), func(i *types.Package) string { + return types.TypeString(t, func(i *types.Package) string { return s.Lookup(i.Path()) }) }