Skip to content

Commit

Permalink
Missing cloning case
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed Aug 14, 2023
1 parent 11d4a0d commit 20118e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/DafnyCore/AST/Members/Lemma.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public Lemma(RangeToken rangeToken, Name name,
[Captured] List<TypeParameter> typeArgs,
[Captured] List<Formal> ins, [Captured] List<Formal> outs,
[Captured] List<AttributedExpression> req,
List<FrameExpression> reads,
[Captured] List<FrameExpression> reads,
[Captured] Specification<FrameExpression> mod,
[Captured] List<AttributedExpression> ens,
[Captured] Specification<Expression> decreases,
Expand Down
1 change: 1 addition & 0 deletions Source/DafnyCore/AST/Members/Method.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public Method(Cloner cloner, Method original) : base(cloner, original) {
}

this.Req = original.Req.ConvertAll(cloner.CloneAttributedExpr);
this.Reads = original.Reads.ConvertAll(cloner.CloneFrameExpr);
this.Mod = cloner.CloneSpecFrameExpr(original.Mod);
this.Decreases = cloner.CloneSpecExpr(original.Decreases);
this.Ens = original.Ens.ConvertAll(cloner.CloneAttributedExpr);
Expand Down

0 comments on commit 20118e6

Please sign in to comment.