summaryrefslogtreecommitdiff
path: root/Test/dafny4/Bug107.dfy
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2015-11-17 13:13:40 -0800
committerGravatar qunyanm <unknown>2015-11-17 13:13:40 -0800
commit2cde0265070d65f738b9ee236f7246e765536f08 (patch)
treea73a6005d3f1367af628a21e0c5566e5332e2414 /Test/dafny4/Bug107.dfy
parent962052e98513945981e3fed49e374642d1ed4aa0 (diff)
Fix issue 107. Instead of writing out StaticReceiverExpr as null valued
LiteralExpr, write out its type instead.
Diffstat (limited to 'Test/dafny4/Bug107.dfy')
-rw-r--r--Test/dafny4/Bug107.dfy16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/dafny4/Bug107.dfy b/Test/dafny4/Bug107.dfy
new file mode 100644
index 00000000..56965d92
--- /dev/null
+++ b/Test/dafny4/Bug107.dfy
@@ -0,0 +1,16 @@
+// RUN: %dafny /compile:3 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+method Main()
+{
+ var f := Inc;
+ print(f(4));
+}
+
+function method Inc(x: int): int
+{
+ x + 2
+}
+
+
+