diff options
author | qunyanm <unknown> | 2015-03-17 12:37:09 -0700 |
---|---|---|
committer | qunyanm <unknown> | 2015-03-17 12:37:09 -0700 |
commit | 2184631376ff382b8b63908929b16ddd97afdc90 (patch) | |
tree | fdd431adbefa1d56b8a71f8fa431a03fc9b01002 /Source | |
parent | eb3c12b3f4151d55e244f14eaefc02aaaeadc7c8 (diff) |
Fix issue #63. ForceSubstitutionOfQuantifiedVars for SetComprehesion.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Dafny/Translator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Dafny/Translator.cs b/Source/Dafny/Translator.cs index a150eecd..f3572948 100644 --- a/Source/Dafny/Translator.cs +++ b/Source/Dafny/Translator.cs @@ -13418,9 +13418,9 @@ namespace Microsoft.Dafny { newExpr = new NamedExpr(e.tok, e.Name, body, contract, e.ReplacerToken);
} else if (expr is ComprehensionExpr) {
var e = (ComprehensionExpr)expr;
- // For quantifiers we want to make sure that we don't introduce name clashes with
+ // For quantifiers and setComprehesion we want to make sure that we don't introduce name clashes with
// the enclosing scopes.
- var newBoundVars = CreateBoundVarSubstitutions(e.BoundVars, expr is ForallExpr || expr is ExistsExpr);
+ var newBoundVars = CreateBoundVarSubstitutions(e.BoundVars, expr is ForallExpr || expr is ExistsExpr || expr is SetComprehension);
Expression newRange = e.Range == null ? null : Substitute(e.Range);
Expression newTerm = Substitute(e.Term);
Attributes newAttrs = SubstAttributes(e.Attributes);
|