diff options
author | 2014-01-10 13:02:21 -0800 | |
---|---|---|
committer | 2014-01-10 13:02:21 -0800 | |
commit | 335ac08951e427500de34d55b14713cced6c12bd (patch) | |
tree | d7ae7d9d1c7903181b1ecb9a6131d81926a5dea0 /Source/Dafny/Cloner.cs | |
parent | dd8d1baa05c4ca1bcbe594ec96a65c41f991604b (diff) |
A better fix to deal with StaticReceiverTypes affected by autoReq.
Diffstat (limited to 'Source/Dafny/Cloner.cs')
-rw-r--r-- | Source/Dafny/Cloner.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Cloner.cs b/Source/Dafny/Cloner.cs index fa6d635c..6a3052fe 100644 --- a/Source/Dafny/Cloner.cs +++ b/Source/Dafny/Cloner.cs @@ -201,7 +201,7 @@ namespace Microsoft.Dafny } else if (expr is LiteralExpr) {
var e = (LiteralExpr)expr;
if (e is StaticReceiverExpr) {
- return new StaticReceiverExpr(e.tok, e.Type);
+ return new StaticReceiverExpr(e.tok, CloneType(e.Type));
} else if (e.Value == null) {
return new LiteralExpr(Tok(e.tok));
} else if (e.Value is bool) {
|