From be103552b0a81d48afcc7883ca48d9b5194e63f8 Mon Sep 17 00:00:00 2001 From: qunyanm Date: Fri, 15 May 2015 11:29:44 -0700 Subject: Fix issue #79. Allow tuple pattern matching with parenthesis only. --- Test/dafny4/Bug79.dfy | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Test/dafny4/Bug79.dfy (limited to 'Test/dafny4/Bug79.dfy') 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 -- cgit v1.2.3