Restrict an io_bind io arg to local variables only

This commit is contained in:
Nigel Tao committed 2020-12-24 14:11:48 +11:00
1 parent 78c7087eee
commit b81999f9fc
2 files changed
+15 -6

No files matched your search

-2
View File
@@ -234,8 +234,6 @@ func (g *gen) writeStatementIOBind(b *buffer, n *a.IOBind, depth uint32) error {
b.writes("{\n")
{
e := n.IO()
// TODO: restrict (in the type checker or parser) that e is either a
// local variable or args.foo?
prefix := vPrefix
if e.Operator() != 0 {
prefix = aPrefix