Remove the obsolete Effect.RootCause concept

This commit is contained in:
Nigel Tao committed 2018-12-01 13:37:33 +11:00
1 parent 9741eada02
commit 5cae1f8c82
6 files changed
+19 -60

No files matched your search

+1 -1
View File
@@ -531,7 +531,7 @@ func (q *checker) tcheckExprCall(n *a.Expr, depth uint32) error {
if err != nil {
return err
}
if ne, fe := n.Effect(), f.Effect(); ne|a.EffectRootCause != fe|a.EffectRootCause {
if ne, fe := n.Effect(), f.Effect(); ne != fe {
return fmt.Errorf("check: %q has effect %q but %q has effect %q",
n.Str(q.tm), ne, f.QQID().Str(q.tm), fe)
}