diff options
author | mueller <unknown> | 2010-07-16 08:01:54 +0000 |
---|---|---|
committer | mueller <unknown> | 2010-07-16 08:01:54 +0000 |
commit | 5476d7a5710ee060cae6abf64b83bce3fee64e11 (patch) | |
tree | 64eccf340657d3662a8cfa5d7d01234401ff84d5 /Chalice/src/Resolver.scala | |
parent | 13c9d58997d2d40657980b1c8a9bdc9fa99485e7 (diff) |
Chalice: Removed the restriction that "holds" must occur only in positive positions.
Diffstat (limited to 'Chalice/src/Resolver.scala')
-rw-r--r-- | Chalice/src/Resolver.scala | 3 |
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) =>
|