diff options
author | Jason Koenig <unknown> | 2012-07-05 11:54:03 -0700 |
---|---|---|
committer | Jason Koenig <unknown> | 2012-07-05 11:54:03 -0700 |
commit | 992a12ac28bb9ab1b51e047ec3a5840a0c37cc64 (patch) | |
tree | 125482ab84c06d2fcc6e5b8bf4fd624656bcf8d8 /Source/Dafny/Resolver.cs | |
parent | c30399af4efff99373f901bd914e8b3d8bb811dc (diff) |
Dafny: Fixed bug in autocontracts where the post resolver was run even if there were resolution errors.
Diffstat (limited to 'Source/Dafny/Resolver.cs')
-rw-r--r-- | Source/Dafny/Resolver.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs index 1463c4c0..81d79085 100644 --- a/Source/Dafny/Resolver.cs +++ b/Source/Dafny/Resolver.cs @@ -174,11 +174,14 @@ namespace Microsoft.Dafny { literalDecl.Signature.Refines = refinedSig;
var sig = literalDecl.Signature;
// set up environment
+ var errorCount = ErrorCount;
ResolveModuleDefinition(m, sig);
- refinementTransformer.PostResolve(m);
- // give rewriter a chance to do processing
- rewriter.PostResolve(m);
+ if (ErrorCount == errorCount) {
+ refinementTransformer.PostResolve(m);
+ // give rewriter a chance to do processing
+ rewriter.PostResolve(m);
+ }
} else if (decl is AliasModuleDecl) {
var alias = (AliasModuleDecl)decl;
// resolve the path
|