Add a ~mod* operator

This commit is contained in:
Nigel Tao committed 2019-11-12 21:30:45 +11:00
1 parent e1091ec182
commit cb7e9e0ce9
5 files changed
+35 -16

No files matched your search

+1 -1
View File
@@ -1448,7 +1448,7 @@ func (q *checker) bcheckExprBinaryOp1(op t.ID, lhs *a.Expr, lb bounds, rhs *a.Ex
}, nil
}
case t.IDXBinaryTildeModPlus, t.IDXBinaryTildeModMinus:
case t.IDXBinaryTildeModPlus, t.IDXBinaryTildeModMinus, t.IDXBinaryTildeModStar:
typ := lhs.MType()
if typ.IsIdeal() {
typ = rhs.MType()