diff options
author | 2014-01-08 16:59:22 -0800 | |
---|---|---|
committer | 2014-01-08 16:59:22 -0800 | |
commit | 709f460287dac7b6646fe770d3e01ed7cf26c9eb (patch) | |
tree | 41a6b4fd1f59b411cb6b84be871a36969f73c6b0 /Source/Dafny/Cloner.cs | |
parent | 2dab50557b2584a82ffc7be8759d6a8a4720d1f9 (diff) |
:autoReq now works with static functions.
This required fixing a small bug in how StaticReceiverExpr's were being handled
Diffstat (limited to 'Source/Dafny/Cloner.cs')
-rw-r--r-- | Source/Dafny/Cloner.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Dafny/Cloner.cs b/Source/Dafny/Cloner.cs index 55b23827..ba30af5c 100644 --- a/Source/Dafny/Cloner.cs +++ b/Source/Dafny/Cloner.cs @@ -200,7 +200,9 @@ namespace Microsoft.Dafny return null;
} else if (expr is LiteralExpr) {
var e = (LiteralExpr)expr;
- if (e.Value == null) {
+ if (e is StaticReceiverExpr) {
+ return new StaticReceiverExpr(e.tok, e.Type);
+ } else if (e.Value == null) {
return new LiteralExpr(Tok(e.tok));
} else if (e.Value is bool) {
return new LiteralExpr(Tok(e.tok), (bool)e.Value);
|