diff --git a/node.go b/node.go index 743a85d..a88f698 100644 --- a/node.go +++ b/node.go @@ -1280,7 +1280,7 @@ func (this *conversionState) convertAssignment(n *assign.Assign, isTopLevelState // we need to propagate errors switch n.Expression.(type) { case *expr.FunctionCall, *expr.StaticCall, *expr.New: - ret := "_, " + lvalue + " = " + rvalue + "\n" + ret := lvalue + ", err = " + rvalue + "\n" ret += "if err != nil {\n" ret += this.currentErrHandler ret += "}\n"