summaryrefslogtreecommitdiff
path: root/Source/Dafny/Triggers/QuantifierSplitter.cs
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-23 00:11:00 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-23 00:11:00 -0700
commitbe66434c97446d311aada9aec42fdbc8eba26ea8 (patch)
tree9f8e8594e8acadbb503bbe6281c7ebd38921b1ac /Source/Dafny/Triggers/QuantifierSplitter.cs
parent084f7c82033315d605dce606ce64a26e1dcc0b3d (diff)
Shallow-copy quantifier attributes when splitting
Diffstat (limited to 'Source/Dafny/Triggers/QuantifierSplitter.cs')
-rw-r--r--Source/Dafny/Triggers/QuantifierSplitter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Dafny/Triggers/QuantifierSplitter.cs b/Source/Dafny/Triggers/QuantifierSplitter.cs
index ae76b780..83059f8d 100644
--- a/Source/Dafny/Triggers/QuantifierSplitter.cs
+++ b/Source/Dafny/Triggers/QuantifierSplitter.cs
@@ -66,7 +66,7 @@ namespace Microsoft.Dafny.Triggers {
}
foreach (var e in stream) {
var tok = new NestedToken(quantifier.tok, e.tok);
- yield return new ForallExpr(tok, quantifier.TypeArgs, quantifier.BoundVars, quantifier.Range, e, quantifier.Attributes) { Type = quantifier.Type };
+ yield return new ForallExpr(tok, quantifier.TypeArgs, quantifier.BoundVars, quantifier.Range, e, CopyAttributes(quantifier.Attributes)) { Type = quantifier.Type };
}
} else if (quantifier is ExistsExpr) {
IEnumerable<Expression> stream;
@@ -77,7 +77,7 @@ namespace Microsoft.Dafny.Triggers {
}
foreach (var e in stream) {
var tok = new NestedToken(quantifier.tok, e.tok);
- yield return new ExistsExpr(tok, quantifier.TypeArgs, quantifier.BoundVars, quantifier.Range, e, quantifier.Attributes) { Type = quantifier.Type };
+ yield return new ExistsExpr(tok, quantifier.TypeArgs, quantifier.BoundVars, quantifier.Range, e, CopyAttributes(quantifier.Attributes)) { Type = quantifier.Type };
}
} else {
yield return quantifier;