summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-28 13:57:12 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-28 13:57:12 -0400
commit59cfa9f433c17202e1df89de6cdda4cedfae594d (patch)
tree125253e6b788e7599069b49c78140607fef57357 /tests
parentd0814411127a382b18b5d14a68942b430e291276 (diff)
Shorthand for multi-binding exp 'fn'
Diffstat (limited to 'tests')
-rw-r--r--tests/eargs.lac5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/eargs.lac b/tests/eargs.lac
new file mode 100644
index 00000000..d4d6fdf4
--- /dev/null
+++ b/tests/eargs.lac
@@ -0,0 +1,5 @@
+val id1 = fn n : int => n
+val id2 = fn n => id1 n
+
+val pair1 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) => (x1, x2)
+val pair2 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) () => pair1 x1 x2