Add io_bind history_position arg

This commit is contained in:
Nigel Tao committed 2021-08-15 08:36:14 +10:00
1 parent b60a2cacd9
commit 28a54baa19
11 files changed
+87 -24

No files matched your search

+5
View File
@@ -258,6 +258,11 @@ func (q *checker) bcheckStatement(n *a.Node) error {
if _, err := q.bcheckExpr(n.Arg1(), 0); err != nil {
return err
}
if histPos := n.HistoryPosition(); histPos != nil {
if _, err := q.bcheckExpr(histPos, 0); err != nil {
return err
}
}
if err := q.bcheckBlock(n.Body()); err != nil {
return err
}