diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-28 13:57:12 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-28 13:57:12 -0400 |
commit | 59cfa9f433c17202e1df89de6cdda4cedfae594d (patch) | |
tree | 125253e6b788e7599069b49c78140607fef57357 /tests | |
parent | d0814411127a382b18b5d14a68942b430e291276 (diff) |
Shorthand for multi-binding exp 'fn'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/eargs.lac | 5 |
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 |