From e68fa9e5a826b0320d633f363fbb99e54bb6f349 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 18 Jun 2022 22:18:13 +0800 Subject: [PATCH] compileSelectorExpr fix: clIdentCanAutoCall --- cl/expr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl/expr.go b/cl/expr.go index 09731b73b..7a20c8c3e 100644 --- a/cl/expr.go +++ b/cl/expr.go @@ -335,7 +335,7 @@ func compileSelectorExprLHS(ctx *blockCtx, v *ast.SelectorExpr) { func compileSelectorExpr(ctx *blockCtx, v *ast.SelectorExpr, flags int) { switch x := v.X.(type) { case *ast.Ident: - if at, kind := compileIdent(ctx, x, flags|clIdentSelectorExpr); kind != objNormal { + if at, kind := compileIdent(ctx, x, flags|clIdentCanAutoCall|clIdentSelectorExpr); kind != objNormal { if compilePkgRef(ctx, at, v.Sel, flags, kind) { return }