From 0c4596c8dd07c5caa6b77da60c692e5da40c3503 Mon Sep 17 00:00:00 2001 From: he11olx Date: Fri, 12 May 2023 12:27:40 +0800 Subject: [PATCH] fix: re-import of identical package sym.typ.cat == binPkgT --- interp/gta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interp/gta.go b/interp/gta.go index 28f84aee2..f6893092f 100644 --- a/interp/gta.go +++ b/interp/gta.go @@ -261,7 +261,7 @@ func (interp *Interpreter) gta(root *node, rpath, importPath, pkgName string) ([ if sym, exists := sc.sym[name]; !exists { sc.sym[name] = &symbol{kind: pkgSym, typ: &itype{cat: binPkgT, path: ipath, scope: sc}} break - } else if sym.kind == pkgSym && sym.typ.cat == srcPkgT && sym.typ.path == ipath { + } else if sym.kind == pkgSym && sym.typ.cat == binPkgT && sym.typ.path == ipath { // ignore re-import of identical package break }