Fix ast.Expr.Str for impure calls

This commit is contained in:
Nigel Tao committed 2017-12-28 14:27:02 +11:00
1 parent e450f049cf
commit c403f06b25
1 file changed
+2
+2
View File
@@ -50,6 +50,8 @@ func (n *Expr) appendStr(buf []byte, tm *t.Map, parenthesize bool, depth uint32)
buf = n.lhs.Expr().appendStr(buf, tm, true, depth)
if n.flags&FlagsSuspendible != 0 {
buf = append(buf, '?')
} else if n.flags&FlagsImpure != 0 {
buf = append(buf, '!')
}
buf = append(buf, '(')
for i, o := range n.list0 {