summaryrefslogtreecommitdiff
path: root/Test/dafny4/Bug71.dfy
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2015-04-16 09:50:34 -0700
committerGravatar qunyanm <unknown>2015-04-16 09:50:34 -0700
commitd95b2c8dd46bb52c6c84f2b764d3e6211b403346 (patch)
treea6e44c901525b057117315afbb39511e0ad9613f /Test/dafny4/Bug71.dfy
parent38134c5587ea53e71290e2e8ea9915062172865b (diff)
Fix issue #71. When substitute the forall's variables for those of the
fn in fixupRevealLemma substitute the types as well.
Diffstat (limited to 'Test/dafny4/Bug71.dfy')
-rw-r--r--Test/dafny4/Bug71.dfy10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/dafny4/Bug71.dfy b/Test/dafny4/Bug71.dfy
new file mode 100644
index 00000000..1c3fcf61
--- /dev/null
+++ b/Test/dafny4/Bug71.dfy
@@ -0,0 +1,10 @@
+// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function{:opaque} MapSetToSet<X, Y>(xs:set<X>, f:X->Y):set<Y>
+//function MapSetToSet<X, Y>(xs:set<X>, f:X->Y):set<Y>
+ reads f.reads;
+ requires forall x :: f.requires(x);
+{
+ set x | x in xs :: f(x)
+} \ No newline at end of file