diff options
author | 2013-12-14 16:56:04 -0800 | |
---|---|---|
committer | 2013-12-14 16:56:04 -0800 | |
commit | 340d806c655bee13b655c369b4e9b3245d01e953 (patch) | |
tree | 6eb07152e0b7ca3aa899461e647967120f86ae1b /Source/Core/Absy.cs | |
parent | 42b80a61e83e8d569700340ee9ad8f8aa3a270a8 (diff) |
fixed type checking errors in QED stuff
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r-- | Source/Core/Absy.cs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs index d1651ff4..6c333143 100644 --- a/Source/Core/Absy.cs +++ b/Source/Core/Absy.cs @@ -2363,10 +2363,7 @@ namespace Microsoft.Boogie { tc.Error(this, "atomic specification allowed only in a yielding procedure");
return;
}
- bool oldYields = tc.Yields;
- tc.Yields = isAtomicSpecification;
this.Condition.Typecheck(tc);
- tc.Yields = oldYields;
Contract.Assert(this.Condition.Type != null); // follows from postcondition of Expr.Typecheck
if (!this.Condition.Type.Unify(Type.Bool)) {
tc.Error(this, "postconditions must be of type bool");
|