summaryrefslogtreecommitdiff
path: root/Test/dafny4/Bug108.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/dafny4/Bug108.dfy')
-rw-r--r--Test/dafny4/Bug108.dfy11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/dafny4/Bug108.dfy b/Test/dafny4/Bug108.dfy
new file mode 100644
index 00000000..17cb9f12
--- /dev/null
+++ b/Test/dafny4/Bug108.dfy
@@ -0,0 +1,11 @@
+// RUN: %dafny /compile:3 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+method Main() {
+ var A := map[0 := 1];
+ var B := map x | x in (set y | y in A) :: A[x];
+ print A, "\n";
+ print B, "\n";
+}
+
+