Add a skeleton of an adler.update method.

This commit is contained in:
Nigel Tao committed 2017-10-19 18:58:17 +11:00
1 parent 5b0d6f6f3e
commit 50369c782c
5 files changed
+38 -2

No files matched your search

+4
View File
@@ -429,6 +429,10 @@ func (c *Checker) checkFuncSignature(node *a.Node) error {
}
n.Out().Node().SetTypeChecked()
// TODO: check somewhere that, if n.Out() is non-empty (or we are
// suspendible), that we end with a return statement? Or is that an
// implicit "return out"?
qid := n.QID()
if other, ok := c.funcs[qid]; ok {
return &Error{