aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@csail.mit.edu>2017-07-12 16:23:51 -0400
committerGravatar Adam Chlipala <adamc@csail.mit.edu>2017-07-12 16:23:51 -0400
commit6d9522c001574db729262073cadb96c75f0f7c44 (patch)
tree2f3cb126d919b552b7cabefbc88be1abcbd45689 /tests
parent979ad6b8246e50d5c1f685afd0bd41ec0298696b (diff)
Allow inexhaustive patterns for lefthand sides of top-level 'val' declarations
Diffstat (limited to 'tests')
-rw-r--r--tests/topLevelPattern.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/topLevelPattern.ur b/tests/topLevelPattern.ur
new file mode 100644
index 00000000..e272c30c
--- /dev/null
+++ b/tests/topLevelPattern.ur
@@ -0,0 +1,5 @@
+val (x, y) = (1, 2)
+
+fun main () : transaction page = return <xml>
+ {[x]} + {[y]} = {[x + y]}
+</xml>