summaryrefslogtreecommitdiff
path: root/Source/Dafny/Resolver.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2014-01-03 18:06:06 -0800
committerGravatar Rustan Leino <unknown>2014-01-03 18:06:06 -0800
commit4f86193513fa07374bc8295b875a0879b207621a (patch)
tree8596cba8fbccacb857070855398366de699f6ab0 /Source/Dafny/Resolver.cs
parentacee5277ceb3070404a2643c647b017edc5c5c4c (diff)
Improved the name-clashing situation when substituting to produce printable AdditionalInformation for forall-statement ensures clauses.
Diffstat (limited to 'Source/Dafny/Resolver.cs')
-rw-r--r--Source/Dafny/Resolver.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs
index 8901402c..fe2c2d4a 100644
--- a/Source/Dafny/Resolver.cs
+++ b/Source/Dafny/Resolver.cs
@@ -2453,7 +2453,7 @@ namespace Microsoft.Dafny
for (int i = 0; i < cs.Method.Ins.Count; i++) {
argsSubstMap.Add(cs.Method.Ins[i], cs.Args[i]);
}
- var substituter = new Translator.Substituter(cs.Receiver, argsSubstMap, new Dictionary<TypeParameter, Type>(), new Translator());
+ var substituter = new Translator.AlphaConverting_Substituter(cs.Receiver, argsSubstMap, new Dictionary<TypeParameter, Type>(), new Translator());
foreach (var ens in cs.Method.Ens) {
var p = substituter.Substitute(ens.E); // substitute the call's actuals for the method's formals
resolver.ReportAdditionalInformation(s.Tok, "ensures " + Printer.ExprToString(p) + ";", s.Tok.val.Length);