summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-28 13:29:57 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-28 13:29:57 -0400
commite42ea5dbeb92bf49da6a73962c9f44a86fa989c2 (patch)
tree55f8f3dfe65d4d4b3bccb37419c90051fdc80a13 /tests
parent4637d2c9d9cf43d60c78a1c4a982cf37f46cd2d2 (diff)
Shorthand for multi-binding con 'fn'
Diffstat (limited to 'tests')
-rw-r--r--tests/cargs.lac7
-rw-r--r--tests/recBad.lac2
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/cargs.lac b/tests/cargs.lac
new file mode 100644
index 00000000..4aba9860
--- /dev/null
+++ b/tests/cargs.lac
@@ -0,0 +1,7 @@
+con id = fn t :: Type => t
+con id2 = fn (t :: Type) => id t
+con id3 = fn t => id2 t
+
+con pair = fn (t :: Type) (u :: Type) => (t, u)
+con pair2 = fn t u => pair t u
+con pair3 = fn t (u :: Type) => pair2 t u
diff --git a/tests/recBad.lac b/tests/recBad.lac
index bfff8daf..8d844efb 100644
--- a/tests/recBad.lac
+++ b/tests/recBad.lac
@@ -6,4 +6,4 @@ val rec append : t ::: Type -> list t -> list t -> list t = fn t ::: Type => fn
| Cons (h, t) => Cons (h, append t ls2)
(*val rec ones : list int = Cons (1, ones)*)
-val rec ones : unit -> list int = fn () => Cons (1, ones ())
+val rec ones = fn () => Cons (1, ones ())