summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Chalice/src/Resolver.scala3
1 files changed, 0 insertions, 3 deletions
diff --git a/Chalice/src/Resolver.scala b/Chalice/src/Resolver.scala
index 14bd7d1c..4b702a8e 100644
--- a/Chalice/src/Resolver.scala
+++ b/Chalice/src/Resolver.scala
@@ -669,9 +669,6 @@ object Resolver {
expr.typ = BoolClass
case expr@ Holds(e) =>
if(inPredicate) context.Error(expr.pos, "holds cannot be mentioned in monitor invariants or predicates")
- if(! specContext)
- context.Error(expr.pos, "holds is allowed only in positive predicate contexts");
- //todo: check that we are not in a monitor invariant
ResolveExpr(e, context, twoStateContext, false)
expr.typ = BoolClass
case expr@ RdHolds(e) =>