summaryrefslogtreecommitdiff
path: root/Test/dafny4/Bug111.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/dafny4/Bug111.dfy')
-rw-r--r--Test/dafny4/Bug111.dfy18
1 files changed, 18 insertions, 0 deletions
diff --git a/Test/dafny4/Bug111.dfy b/Test/dafny4/Bug111.dfy
new file mode 100644
index 00000000..730d44d3
--- /dev/null
+++ b/Test/dafny4/Bug111.dfy
@@ -0,0 +1,18 @@
+// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+datatype A = A(i:int)
+datatype B = B1(a1:A) | B2(a2:A)
+
+function f(b:B):int
+{
+ match b
+ {
+ case B1(A(i)) => i
+ case B2(A(j)) => j
+ }
+}
+
+
+
+