From 2cde0265070d65f738b9ee236f7246e765536f08 Mon Sep 17 00:00:00 2001 From: qunyanm Date: Tue, 17 Nov 2015 13:13:40 -0800 Subject: Fix issue 107. Instead of writing out StaticReceiverExpr as null valued LiteralExpr, write out its type instead. --- Test/dafny4/Bug107.dfy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Test/dafny4/Bug107.dfy (limited to 'Test/dafny4/Bug107.dfy') 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 +} + + + -- cgit v1.2.3