Skip to content

Commit

Permalink
compileSelectorExpr fix: clIdentCanAutoCall
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jun 18, 2022
1 parent a5bbe44 commit e68fa9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e68fa9e

Please sign in to comment.