Call SetMBounds when bounds-checking expressions

This commit is contained in:
Nigel Tao committed 2018-07-07 18:15:28 +10:00
1 parent a506657c53
commit ba3b97ec69
2 files changed
+10 -2

No files matched your search

+4
View File
@@ -346,6 +346,10 @@ func (q *checker) tcheckExpr(n *a.Expr, depth uint32) error {
}
depth++
if n.MType() != nil {
return nil
}
switch op := n.Operator(); {
case op.IsXUnaryOp():
return q.tcheckExprUnaryOp(n, depth)