diff options
author | qunyanm <unknown> | 2015-05-15 11:29:44 -0700 |
---|---|---|
committer | qunyanm <unknown> | 2015-05-15 11:29:44 -0700 |
commit | be103552b0a81d48afcc7883ca48d9b5194e63f8 (patch) | |
tree | 33a0fa7dc3b9a3c7ce6cf81b9e5edd23d1a9a341 /Test/dafny4/Bug79.dfy | |
parent | 454909184e73582e425cad56a526956d91b88dcc (diff) |
Fix issue #79. Allow tuple pattern matching with parenthesis only.
Diffstat (limited to 'Test/dafny4/Bug79.dfy')
-rw-r--r-- | Test/dafny4/Bug79.dfy | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/dafny4/Bug79.dfy b/Test/dafny4/Bug79.dfy new file mode 100644 index 00000000..49f2421b --- /dev/null +++ b/Test/dafny4/Bug79.dfy @@ -0,0 +1,10 @@ +// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function foo(s:int) : (int, int)
+
+function bar(s:int) : bool
+{
+ var (x, rest) := foo(s);
+ x > 0
+}
\ No newline at end of file |