summaryrefslogtreecommitdiff
path: root/Source/Dafny/Rewriter.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2016-01-06 19:00:18 -0800
committerGravatar Rustan Leino <unknown>2016-01-06 19:00:18 -0800
commit4c81e90e18b1d142c50453470fe9647693ef8de4 (patch)
tree438e031018e66ea1a0f6be95d24645134967ac1f /Source/Dafny/Rewriter.cs
parentc14d705d57c1dfcee481367bd6744feb6774dfae (diff)
Removed Contract.Requires from method overrides (preconditions of overrides are inherited
from the overridden method and Code Contracts will copy those preconditions to make sure the right run-time checking happens; when Code Contracts finds preconditions on overrides, it emits warnings).
Diffstat (limited to 'Source/Dafny/Rewriter.cs')
-rw-r--r--Source/Dafny/Rewriter.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/Dafny/Rewriter.cs b/Source/Dafny/Rewriter.cs
index 13b16066..2e18c4e6 100644
--- a/Source/Dafny/Rewriter.cs
+++ b/Source/Dafny/Rewriter.cs
@@ -89,7 +89,6 @@ namespace Microsoft.Dafny
internal class ForAllStmtVisitor : TopDownVisitor<bool>
{
protected override bool VisitOneStmt(Statement stmt, ref bool st) {
- Contract.Requires(stmt != null);
if (stmt is ForallStmt) {
ForallStmt s = (ForallStmt)stmt;
if (s.Kind == ForallStmt.ParBodyKind.Proof) {