Add statusPkg arg to ast.NewExpr

This commit is contained in:
Nigel Tao committed 2017-12-29 13:33:46 +11:00
1 parent 139bcfa7f1
commit 1004d898d5
8 files changed
+35 -33

No files matched your search

+2 -2
View File
@@ -224,7 +224,7 @@ var reasons = [...]struct {
if xc0 == nil {
return errFailed
}
t1 := a.NewExpr(a.FlagsTypeChecked, t.IDXBinaryPlus, 0, xb0.Node(), nil, xc0.Node(), nil)
t1 := a.NewExpr(a.FlagsTypeChecked, t.IDXBinaryPlus, 0, 0, xb0.Node(), nil, xc0.Node(), nil)
if err := proveReasonRequirement(q, t.IDXBinaryLessThan, xa, t1); err != nil {
return err
}
@@ -249,7 +249,7 @@ var reasons = [...]struct {
return errFailed
}
// a <= (c - b)
t1 := a.NewExpr(a.FlagsTypeChecked, t.IDXBinaryMinus, 0, xc.Node(), nil, xb.Node(), nil)
t1 := a.NewExpr(a.FlagsTypeChecked, t.IDXBinaryMinus, 0, 0, xc.Node(), nil, xb.Node(), nil)
if err := proveReasonRequirement(q, t.IDXBinaryLessEq, xa, t1); err != nil {
return err
}