summaryrefslogtreecommitdiff
path: root/tests/eq.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 15:15:41 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 15:15:41 -0400
commit6a144b5f5a7e85a02465aa25a19c3b5686e062cb (patch)
tree9b8ec9f45e09d619e326c40706e38599a4ed9851 /tests/eq.ur
parent0ca7aad45b1581ab86d136aaf7829418e093bb24 (diff)
'eq' type class
Diffstat (limited to 'tests/eq.ur')
-rw-r--r--tests/eq.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/eq.ur b/tests/eq.ur
new file mode 100644
index 00000000..0c5cde60
--- /dev/null
+++ b/tests/eq.ur
@@ -0,0 +1,5 @@
+val b1 = 1 = 1
+val b2 = "Good" = "Bad"
+
+fun eq_pair (t1 :: Type) (t2 :: Type) (eq1 : eq t1) (eq2 : eq t2) (x : t1 * t2) (y : t1 * t2) =
+ x.1 = y.1