summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-08 13:00:12 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-08 13:00:12 -0400
commitd44758dd02286c136aecaab935fb692761bdc9a6 (patch)
tree38a367b08031b8dfccb11bd3d62043664b5a8b67 /tests
parent32115a531d5ed6cafa25dc7d3b88c2679e5142a5 (diff)
Implicit constructor arguments
Diffstat (limited to 'tests')
-rw-r--r--tests/impl.lac5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/impl.lac b/tests/impl.lac
new file mode 100644
index 00000000..91f5c52b
--- /dev/null
+++ b/tests/impl.lac
@@ -0,0 +1,5 @@
+val id = fn t :: Type => fn x : t => x
+val id_self = id [t :: Type -> t -> t] id
+
+val idi = fn t ::: Type => fn x : t => x
+val idi_self = idi idi