summaryrefslogtreecommitdiff
path: root/Test/dafny4/Bug113.dfy
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2015-12-03 11:14:28 -0800
committerGravatar qunyanm <unknown>2015-12-03 11:14:28 -0800
commite2bab8d4be0805bf22f7295be2014a39d1e18535 (patch)
tree36d9e925ff3cfde9b7aa94f281972e9d4d3732ad /Test/dafny4/Bug113.dfy
parent24cce2bc8b6414b6d8fd1989e4d7ce8d04a41298 (diff)
Fix issue 113. Make sure the tempVar name used in ToString() method doesn't
collide with the names of its formals.
Diffstat (limited to 'Test/dafny4/Bug113.dfy')
-rw-r--r--Test/dafny4/Bug113.dfy10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/dafny4/Bug113.dfy b/Test/dafny4/Bug113.dfy
new file mode 100644
index 00000000..8f5ddf9f
--- /dev/null
+++ b/Test/dafny4/Bug113.dfy
@@ -0,0 +1,10 @@
+// RUN: %dafny /compile:3 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+datatype D = D(q:int, r:int, s:int, t:int)
+
+method Main()
+{
+ print D(10, 20, 30, 40);
+ print "\n";
+} \ No newline at end of file